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

Building with qmake uses wrong library name

    XMLWordPrintable

Details

    • 1f391d58e84a798e876d1c7d243a3c17566350ef (qt/qt3d/dev) 646777ed76a4a548174019a8f60bec6d15a9400f (qt/qt3d/6.0)

    Description

      Building qt6 with cmake, then building another project (like the qt3d examples) produces build errors:

      for some targets, it uses the wrong library name, like `-lQt::3DInput` rather than `-l3DInput`

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.15 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/Shared/Developer/build-qt.dev-macos/qtbase/lib -o simple-cpp.app/Contents/MacOS/simple-cpp .obj/main.o .obj/orbittransformcontroller.o .obj/moc_orbittransformcontroller.o   /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt63DExtras_debug.dylib -lQt::3DInput -lQt::3DLogic /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Concurrent_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt63DRender_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt63DRender_debug.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6OpenGL_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt63DInput_debug.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt63DCore_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt63DCore_debug.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Network_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6OpenGL_debug.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Gui_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Gui_debug.dylib -framework AppKit -framework ImageIO -framework Metal /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Network_debug.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Concurrent_debug.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Core_debug.6.0.0.dylib /Users/Shared/Developer/build-qt.dev-macos/qtbase/lib/libQt6Core_debug.dylib -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL   ld: library not found for -lQt::3DInput

       

       In particular, the generated lib/libQt63DExtras_debug.prl contains those wrong lib names. 3DExtras module depends on 3DInput and 3DLogic

       

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              mkrus Mike Krus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes