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

Compiling Qt with VS2022 and CMAKE_INTERPROCEDURAL_OPTIMIZATION=TRUE fails to link

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10.0
    • Core: Other
    • None
    • Windows

      Probably not a Qt bug because it looks a lot like a bug in visual studio 2022   

      Ut fails to link at least Qt6MultimediaQuick and Qt6WebEngineQuick

      with the following error.

       

      Creating library qtbase\lib\Qt6WebEngineQuick.lib and object qtbase\lib\Qt6WebEngineQuick.exp
      unity_0_cxx.cxx.obj : error LNK2001: unresolved external symbol "public: __cdecl QExplicitlySharedDataPointer<struct QWebEnginePermissionPrivate>::~QExplicitlySharedDataPointer<struct QWebEnginePermissionPrivate>(void)" (??1?$QExplicitlySharedDataPointer@UQWebEnginePermissionPrivate@@@@QEAA@XZ)
      webenginequick_qmltyperegistrations.cpp.obj : error LNK2001: unresolved external symbol "public: __cdecl QExplicitlySharedDataPointer<class QWebEngineExtensionInfoPrivate>::~QExplicitlySharedDataPointer<class QWebEngineExtensionInfoPrivate>(void)" (??1?$QExplicitlySharedDataPointer@VQWebEngineExtensionInfoPrivate@@@@QEAA@XZ)
      qtbase\bin\Qt6WebEngineQuick.dll : fatal error LNK1120: 2 unresolved externals
      [

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

            thiago Thiago Macieira
            thierryb Thierry Bastian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes