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

qmake projects try to link to static qt libraries with hardcoded CI paths (no such file or directory)

    XMLWordPrintable

    Details

    • Platform/s:
      Integrity, iOS/tvOS/watchOS, WebAssembly
    • Commits:
      754512a64d (qt/qtbase/dev) 754512a64d (qt/tqtc-qtbase/dev) c504f56aeb (qt/tqtc-qtbase/6.2) dd26c4234b (qt/qtbase/6.4) dd26c4234b (qt/tqtc-qtbase/6.4) 3f530e2b1e (qt/qtbase/6.3) 3f530e2b1e (qt/tqtc-qtbase/6.3) c504f56aeb (qt/tqtc-qtbase/6.2.5)

      Description

      The problem can be reproduced using the qt provided clocks demo project (clocks.pro)
      [built on macOS Bug Sur (11.6.7)]

      Gives the errors in the code box below:

      It appear that the linking code is using a fixed qt folder for locating the qt libraries rather than the Qt install directory.

       

      warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'clocks' from project 'clocks')
      Ld /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/Debug-iphonesimulator/clocks.app/clocks normal (in target 'clocks' from project 'clocks')
          cd /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug
          /Users/peter/Develop/XCodes/Xcode_13_2_1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-ios13.0-simulator -isysroot /Users/peter/Develop/XCodes/Xcode_13_2_1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -L/Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/Debug-iphonesimulator -L/Users/peter/QtCom/6.3.1/ios/plugins/platforms -L/Users/peter/QtCom/6.3.1/ios/lib/objects-Debug/Gui_resources_1/.rcc -L/Users/peter/Develop/XCodes/Xcode_13_2_1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/ -L/Users/peter/QtCom/6.3.1/ios/plugins/iconengines -L/Users/peter/QtCom/6.3.1/ios/plugins/imageformats -L/Users/peter/QtCom/6.3.1/ios/lib -L/Users/peter/QtCom/6.3.1/ios/plugins/qmltooling -L/Users/peter/QtCom/6.3.1/ios/qml/QtQml/objects-Debug/Qml_resources_1/.rcc -L/Users/peter/QtCom/6.3.1/ios/qml/QtQuick/objects-Debug/Quick_resources_1/.rcc -L/Users/peter/QtCom/6.3.1/ios/lib/objects-Debug/Quick_resources_2/.rcc -L/Users/peter/QtCom/6.3.1/ios/qml/QtQml/Models/objects-Debug/QmlModels_resources_1/.rcc -L/Users/peter/QtCom/6.3.1/ios/plugins/networkinformation -L/Users/peter/QtCom/6.3.1/ios/plugins/tls -L/Users/peter/QtCom/6.3.1/ios/qml/QtQuick -L/Users/peter/QtCom/6.3.1/ios/qml/QtQml -L/Users/peter/QtCom/6.3.1/ios/qml/QtQml/Models -L/Users/peter/QtCom/6.3.1/ios/qml/QtQml/WorkerScript -L/Users/peter/QtCom/6.3.1/ios/qml/QtQml/WorkerScript/objects-Debug/QmlWorkerScript_resources_1/.rcc -F/Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/Debug-iphonesimulator -filelist /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/clocks.build/Debug-iphonesimulator/clocks.build/Objects-normal/x86_64/clocks.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/clocks.build/Debug-iphonesimulator/clocks.build/Objects-normal/x86_64/clocks_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib\=libc++ -Wl,-rpath,@executable_path/Frameworks /Users/qt/work/qt/qtbase/build/target/plugins/platforms/libqios_debug.a -framework AssetsLibrary /Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqgif_debug.a /Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqico_debug.a /Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqjpeg_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_debugger_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_inspector_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_local_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_messages_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_native_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_nativedebugger_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_preview_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_profiler_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_quickprofiler_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_server_debug.a /Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_tcp_debug.a /Users/qt/work/qt/qtdeclarative/build/target/lib/libQt6Quick_debug.a /Users/qt/work/qt/qtbase/build/target/lib/libQt6OpenGL_debug.a /Users/qt/work/qt/qtbase/build/target/lib/libQt6Gui_debug.a /Users/qt/work/qt/qtdeclarative/build/target/lib/libQt6QmlModels_debug.a /Users/qt/work/qt/qtdeclarative/build/target/lib/libQt6Qml_debug.a /Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/libqtquick2plugin_debug.a /Users/qt/work/qt/qtdeclarative/build/target/qml/QtQml/libqmlplugin_debug.a /Users/qt/work/qt/qtdeclarative/build/target/qml/QtQml/Models/libmodelsplugin_debug.a /Users/qt/work/qt/qtdeclarative/build/target/qml/QtQml/WorkerScript/libworkerscriptplugin_debug.a -lm -framework MobileCoreServices -lz -framework OpenGLES -Wl,-e,_qt_main_wrapper -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/clocks.build/Debug-iphonesimulator/clocks.build/clocks.app-Simulated.xcent -lqios_debug -framework AudioToolbox -framework QuartzCore -lqsvgicon_debug -lqgif_debug -lqico_debug -lqjpeg_debug -lQt6BundledLibjpeg_debug -lqsvg_debug -lQt6Svg_debug -lqmldbg_debugger_debug -lqmldbg_inspector_debug -lqmldbg_local_debug -lqmldbg_messages_debug -lqmldbg_native_debug -lqmldbg_nativedebugger_debug -lqmldbg_preview_debug -lqmldbg_profiler_debug -lqmldbg_quickprofiler_debug -lqmldbg_server_debug -lQt6PacketProtocol_debug -lqmldbg_tcp_debug -lqscnetworkreachability_debug -lqsecuretransportbackend_debug -lqtquick2plugin_debug -lQt6Quick_debug -lQt6OpenGL_debug -lQt6Gui_debug -framework ImageIO -framework CoreGraphics -lQt6BundledHarfbuzz_debug -framework CoreText -lQt6BundledFreetype_debug -lQt6BundledLibpng_debug -framework Metal -lqmlplugin_debug -lmodelsplugin_debug -lQt6QmlModels_debug -lworkerscriptplugin_debug -lQt6QmlWorkerScript_debug -lQt6Qml_debug -lQt6Network_debug -lQt6Core_debug -framework Foundation -lQt6BundledPcre2_debug -framework UIKit -framework CoreFoundation -framework Security -framework SystemConfiguration -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/clocks.build/Debug-iphonesimulator/clocks.build/Objects-normal/x86_64/clocks_dependency_info.dat -o /Users/peter/QtCom/Examples/Qt-6.3.1/demos/build-clocks-Qt_6_3_1_for_iOS_Simulator-Debug/Debug-iphonesimulator/clocks.app/clocks
      clang: error: no such file or directory: '/Users/qt/work/qt/qtbase/build/target/plugins/platforms/libqios_debug.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqgif_debug.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqico_debug.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqjpeg_debug.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/plugins/qmltooling/libqmldbg_debugger_debug.a'
      ...

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              pcheeseman Peter Cheeseman
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: