I have trying to deploy QtQuick on Mac OS without success.
Qt Version: 5.2.1
Using qml files inside a resource file, pro file:
http://pastebin.com/Hw60JDa8
I used macdeploy to generate a dmg file:
~/Qt/Qt5.2.1/5.2.1/clang_64/bin/macdeployqt my.app -dmg
But, when I run the app, i got the following errors:
Warning
: QQmlApplicationEngine failed to load component
(qml
/qqmlapplicationengine.
cpp:133,
void QQmlApplicationEnginePrivate
::_q_finishLoad
(QObject *))Warning: qrc:///qml/Main.qml:1 module "QtQuick" is not installed
qrc:///qml/Main.qml:3 module "QtQuick.Layouts" is not installed
qrc:///qml/Main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/Main.qml:1 module "QtQuick" is not installed
qrc:///qml/Main.qml:3 module "QtQuick.Layouts" is not installed
qrc:///qml/Main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/Main.qml:1 module "QtQuick" is not installed
qrc:///qml/Main.qml:3 module "QtQuick.Layouts" is not installed
qrc:///qml/Main.qml:2 module "QtQuick.Controls" is not installed
Warning: QQmlApplicationEngine failed to load component (qml/qqmlapplicationengine.cpp:133, void QQmlApplicationEnginePrivate::_q_finishLoad(QObject *))
Warning: qrc:///qml/Main.qml:1 module "QtQuick" is not installed
qrc:///qml/Main.qml:3 module "QtQuick.Layouts" is not installed
qrc:///qml/Main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/Main.qml:1 module "QtQuick" is not installed
qrc:///qml/Main.qml:3 module "QtQuick.Layouts" is not installed
qrc:///qml/Main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/Main.qml:1 module "QtQuick" is not installed
qrc:///qml/Main.qml:3 module "QtQuick.Layouts" is not installed
qrc:///qml/Main.qml:2 module "QtQuick.Controls" is not installed
To copy to clipboard, switch view to plain text mode
otool -L my.app/Contents/MacOS/my
my.app/Contents/MacOS/my:
@executable_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtQml.framework/Versions/5/QtQml (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtSerialPort.framework/Versions/5/QtSerialPort (compatibility version 5.2.0, current version 5.2.1)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.19.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
my.app/Contents/MacOS/my:
@executable_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtQml.framework/Versions/5/QtQml (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.2.0, current version 5.2.1)
@executable_path/../Frameworks/QtSerialPort.framework/Versions/5/QtSerialPort (compatibility version 5.2.0, current version 5.2.1)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.19.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
To copy to clipboard, switch view to plain text mode
thx6.app/Contents/Frameworks $ ls
QtCore.framework QtNetwork.framework QtQml.framework QtSerialPort.framework
QtGui.framework QtPrintSupport.framework QtQuick.framework QtWidgets.framework
thx6.app/Contents/Frameworks $ ls
QtCore.framework QtNetwork.framework QtQml.framework QtSerialPort.framework
QtGui.framework QtPrintSupport.framework QtQuick.framework QtWidgets.framework
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks