Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111884

FTBFS: qtbase can't be built in static mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.5.0, 6.5
    • Build System
    • None
    • MSVC 2022 17.5.1
    • eaae969ac (dev), af83a4c1a (6.5), 96da9eeb7 (6.4)

    Description

      When building qtbase in static mode, the compilation failed with the following message on my machine:

      qmakelibraryinfo.cpp.obj : error LNK2019: unresolved external symbol "public: bool __cdecl QByteArray::isNull(void)const " (?isNull@QByteArray@@QEBA_NXZ) referenced in function "public: __cdecl QByteArrayView::QByteArrayView<class QByteArray,1>(class QByteArray const &)" (??$?0VQByteArray@@$00@QByteArrayView@@QEAA@AEBVQByteArray@@@Z)
      bin\qtpaths.exe : fatal error LNK1120: 1 unresolved externals
      

      My full CMake params:

      cmake -Wno-dev -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DQT_DISABLE_DEPRECATED_UP_TO=0x070000 -DQT_BUILD_TESTS=OFF -DQT_BUILD_EXAMPLES=OFF -DFEATURE_relocatable=ON -DFEATURE_system_zlib=OFF -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -GNinja ../qtbase
      

      UPDATE: Removing "-DQT_DISABLE_DEPRECATED_UP_TO=0x070000" fixes the issue.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ivan.solovev Ivan Solovev
              wangwenx190 赵 宇航
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes