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

Can not launch Qt examples after installation on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • None
    • 6.6.3, 6.7.1
    • Build System
    • macOS13 x64 branch 6.7
    • macOS

      Install Qt 6.7.1 macOS binaries, use e.g. charts/chartgallery example (reproduces with others too).

      Configure:

      /Users/qt/RTA/Qt_6.7.1/6.7.1/macos/bin/qt-cmake -S /Users/qt/RTA/Qt_6.7.1/Examples/Qt-6.7.1/charts/chartsgallery -B /Users/qt/RTA/Qt_6.7.1/Examples/Qt-6.7.1/charts/chartsgallery/bld_macos -GNinja 

      ->Build files have been written to: /Users/qt/RTA/Qt_6.7.1/Examples/Qt-6.7.1/charts/chartsgallery/bld_macos

      Build:

      cmake --build . --parallel in /Users/qt/RTA/Qt_6.7.1/Examples/Qt-6.7.1/charts/chartsgallery/bld_macos 

      -> [64/64] Linking CXX executable chartsgallery.app/Contents/MacOS/chartsgallery

      Launch:

      /Users/qt/RTA/Qt_6.7.1/Examples/Qt-6.7.1/charts/chartsgallery/bld_macos/chartsgallery.app/Contents/MacOS/chartsgallery

      -> application launches fine

      Install:

      cmake --install . --prefix /Users/qt/RTA/Qt_6.7.1/example_install 

      -> ..

      – Installing: /Users/qt/RTA/Qt_6.7.1/example_install/examples/charts/chartsgallery/chartsgallery.app/Contents/MacOS/chartsgallery
      – Installing: /Users/qt/RTA/Qt_6.7.1/example_install/examples/charts/chartsgallery/chartsgallery.app/Contents/Info.plist

      Launch:

      /Users/qt/RTA/Qt_6.7.1/example_install/examples/charts/chartsgallery/chartsgallery.app/Contents/MacOS/chartsgallery 

      Fails:

      dyld[14356]: Library not loaded: @rpath/QtCharts.framework/Versions/A/QtCharts
        Referenced from: <F97F0CD4-8139-383D-BEDC-63ADAD1F978D> /Users/qt/RTA/Qt_6.7.1/example_install/examples/charts/chartsgallery/chartsgallery.app/Contents/MacOS/chartsgallery
        Reason: tried: '/Users/qt/RTA/Qt_6.7.1/example_install/examples/charts/chartsgallery/chartsgallery.app/Contents/Frameworks/QtCharts.framework/Versions/A/QtCharts' (no such file)
        /Users/qt/RTA/Qt_6.7.1/example_install/examples/charts/chartsgallery/chartsgallery.app/Contents/Frameworks/QtCharts.framework/Versions/A/QtCharts (no such file)
        /Library/Frameworks/QtCharts.framework/Versions/A/QtCharts (no such file)
        /System/Library/Frameworks/QtCharts.framework/Versions/A/QtCharts (no such file, not in dyld cache) 

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

            qtbuildsystem Qt Build System Team
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes