Issue with macdeployqt and QtQuick3D
-
Hello,
We are trying to create a deployable application for macOS that uses QtQuick3D.
We used the macdeployqt command:
macdeployqt <our app>
Unfortunately when we launch the application we get this error:
QQmlApplicationEngine failed to load component
qrc:/<OUR APP>/main.qml:4:1: module "QtQuick3D" plugin "qquick3dplugin" not foundYou can reproduce the problem with the customgeometry example
Thanks in advance for your help
-
Hi and welcome to devnet,
You should add which version of Qt you are using as there might have been fixes added in between if you are not using the latest.
-
Thank you for your feedback,
My version of Qt is 6.3.2
In the meantime I have found two errors. The first is that I forgot to specify where my qml files were with the -qmldir option.
The second one is from using a Mac M1 and Xcode 14. With this combination the macdeployqt command generates an error when calling install_name_tool
See: https://bugreports.qt.io/browse/QTBUG-105056
In short, on Mac Intel and with the -qmldir option macdeployqt works perfectly with QtQuick3D :-)
Thanks again, it's nice to be supported here.