You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built Qt on macos using the arm64-osx-dynamic.cmake triplet.
I am attempting to follow the Qt instructions for deploying a QML application using cmake and I keep running into, what I assume are, library issues with launching the application.
I am able to run my application from its build directory just fine. Only when I install the bundle and attempt to run my application from the bundle do I start seeing issues with my application running.
I've posted my CMakeLists.txt, directory structure, and otool output in the stackoverflow post but here is the gist of what it happening.
user@users-MacBook-Pro MacOS % ./demo
objc[63562]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.dylib (0x106018608) and /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.7.2.dylib (0x1055c0608). One of the two will be used. Which one is undefined.
objc[63562]: Class KeyValueObserver is implemented in both /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.dylib (0x106018630) and /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.7.2.dylib (0x1055c0630). One of the two will be used. Which one is undefined.
objc[63562]: Class RunLoopModeTracker is implemented in both /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.dylib (0x106018680) and /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.7.2.dylib (0x1055c0680). One of the two will be used. Which one is undefined.
objc[63562]: Class QDarwinPermissionHandler is implemented in both /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.dylib (0x1060186f8) and /Users/user/Developer/demo/build-release/installed/demo.app/Contents/Frameworks/libQt6Core.6.7.2.dylib (0x1055c06f8). One of the two will be used. Which one is undefined.
Cannot add multiple registrations for QtQml.Models
zsh: abort ./demo
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I attempted to ask this question on stackoverflow but I'm not sure how to ask this without getting downvoted.
https://stackoverflow.com/questions/78827941/cannot-add-multiple-registrations-for-qtqml-models
I built Qt on macos using the
arm64-osx-dynamic.cmake
triplet.I am attempting to follow the Qt instructions for deploying a QML application using cmake and I keep running into, what I assume are, library issues with launching the application.
I am able to run my application from its build directory just fine. Only when I install the bundle and attempt to run my application from the bundle do I start seeing issues with my application running.
I've posted my CMakeLists.txt, directory structure, and otool output in the stackoverflow post but here is the gist of what it happening.
Beta Was this translation helpful? Give feedback.
All reactions