why rc1 not release version?because macdeploy of release version has more bugs rc1
the qml simple
import qtquick 2.1 rectangle{ width: 400 height: 300 color: "black" }
my .pro
qt += core gui qml quick config += c++11 sources += \ main.cpp other_files += \ main.qml
but can't deploy simple app
my scrips
#******copy main.qml bundle********** cp /users/qt/program/experiment_apps_and_libs/qmltest2/main.qml /users/qt/program/experiment_apps_and_libs/qmltest2/qmltest2.app/contents/macos #*******create folder , copy plugins bundle********** mkdir qmltest2.app/contents/plugins mkdir qmltest2.app/contents/plugins/qtquick mkdir qmltest2.app/contents/plugins/qtquick/localstorage cp /users/yyyy/qt5.1.0rc1/5.1.0-rc1/clang_64/qml/qtquick/localstorage/libqmllocalstorageplugin.dylib qmltest2.app/contents/plugins/qtquick/localstorage cp /users/yyyy/qt5.1.0rc1/5.1.0-rc1/clang_64/qml/qtquick/localstorage/plugins.qmltypes qmltest2.app/contents/plugins/qtquick/localstorage cp /users/yyyy/qt5.1.0rc1/5.1.0-rc1/clang_64/qml/qtquick/localstorage/qmldir qmltest2.app/contents/plugins/qtquick/localstorage mkdir qmltest2.app/contents/plugins/qtquick.2 cp /users/yyyy/qt5.1.0rc1/5.1.0-rc1/clang_64/qml/qtquick.2/libqtquick2plugin.dylib qmltest2.app/contents/plugins/qtquick.2 cp /users/yyyy/qt5.1.0rc1/5.1.0-rc1/clang_64/qml/qtquick.2/plugins.qmltypes qmltest2.app/contents/plugins/qtquick.2 cp /users/yyyy/qt5.1.0rc1/5.1.0-rc1/clang_64/qml/qtquick.2/qmldir qmltest2.app/contents/plugins/qtquick.2 #**********call macdeployqt*************** macdeployqt /users/qt/program/experiment_apps_and_libs/qmltest2/qmltest2.app -verbose=3
i run otool -l on every plugins added, of them become relative path after macdeployqt
when run program lldb, give me error messages
**file:///users/qt/program/experiment_apps_and_libs/qmltest2/main.qml:23:1: module “qtquick” not installed import qtquick 2.1 **
i stuck staring @ blank white screen no information on doing wrong. no document, current document useless because bugs of macdeploy haven't fixed since qt5.0.1, , have no idea when fix it(maybe never fixed). no information telling me dylib need.it highly frustrating! know how deploy qtquick2 apps on mac os x?
if keep going, maybe better keep on using qwidget, atleast don't have suffer deployment trouble again. pretty surprise spend lot of times develop qtquick2 not release useful document teach how deploy apps on targeted platforms.
check out answer. miks131, maximalien , lasconic.
remember enter correct qmldir, else macdeploy not copy qtquick2 , qtquick folder bundle
Comments
Post a Comment