Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7.0
-
None
-
-Brew installation of Qt6.7
-plugandpaint example cloned from git
Description
Hi,
I am trying to bundle a qt application on macOS.
My problem is reproducable with the example project from macos-deployment
This tutortial uses the plugandpaint example.
Steps:
cd qtbase/tests/manual/examples/widgets/tools/plugandpaint mkdir build && cd build cmake .. make -j2 # everything compiles fine, the binary resides in # ./app/plugandpaint.app/Contents/MacOS/plugandpaint and is executable macdeployqt app/plugandpaint.app # Now, QtWidgets and QtGui reside in #./app/plugandpaint.app/Contents/Frameworks brew unlink qt6 ./app/plugandpaint.app/Contents/MacOS/plugandpaint
This fails with
dyld[53046]: Library not loaded: @rpath/QtDBus.framework/Versions/A/QtDBus
Referenced from: <FB742F7D-2B2A-3B21-8102-B1F427D38DDC> /Users/username/Dev/qtbase/tests/manual/examples/widgets/tools/plugandpaint/build/app/plugandpaint.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui
Reason: tried: '/Users/username/Dev/qtbase/tests/manual/examples/widgets/tools/plugandpaint/build/app/plugandpaint.app/Contents/Frameworks/QtGui.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Users/username/Dev/qtbase/tests/manual/examples/widgets/tools/plugandpaint/build/app/plugandpaint.app/Contents/Frameworks/QtWidgets.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/opt/homebrew/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/opt/homebrew/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/QtDBus.framework/Versions/A/QtDBus' (no such file)
[1] 53046 abort ./app/plugandpaint.app/Contents/MacOS/plugandpaint
Which makes somewhat sense: QtDBus is not copied to
./app/plugandpaint.app/Contents/Frameworks
I assume, because it is not directly needed by the App. But it is linked from QtGui.