[SOLVED] Mac deployment Qt Quick 2.0 Qt 5.3.1
-
Holy crap, shav, you made my day !
I was experiencing the macdeployqt problem and was googling for a solution and found this thread.
Download your source, used it and my app now works on a non-Qt Mac !THANK YOU !!!!
Nils
-
Hi Shav: I downloaded from the latest commit in the repo. The program works just fine, if non-qml programs are used but shows the same QML errors as before, my app can't find the Qt Quick modules. Is there some output I could trap for you from the console. Alternatively I could put the app in question into Gitorious and you could pull a copy and see for yourself. Thanks.
-
Hi gbgsoft,
As I remember your app using the Qt Quick right? If so you need to set QML files folder. It's need because macdeployqt will analyse your QML's files and found plugins which will be coped to your app bundle. If you doesn't set QML files macdeployqt tool doesn't copy any QtQuick plugins to your app and you will see the errors about "can’t find the Qt Quick modules". I think you should set QML files in app.
I've added docs about my tool. You can find it "here":http://www.dshav.com/my_projects/qt-projects/qt-app-mac-deploy/documentation/. If you find some issues in doc let me know.
Thanks!
-
Hi Shav: yes I'm using Qt Quick. The path I am specifying is the path to my applications source folder. This folder contains main.qml and other qml files. There is also a sub-folder which also contains qml files. Should I be specifying the path to the qml files or the fully qualified path to main.qml itself?
e,g, ....myapp/src/main.qml
-
Hi Shave: I have successfully deployed 2 applications using your tool: one pure desktop and and other a Qt Quick application. However when I try to deploy the app that lead to my original post, the QML foldes Are not copied to myapp.app/Contents/Resources/qml. I don't even think it's finding main.qml. I'd like to get to the bottom of this. Is there any thing that you can suggest?
-
Hi gbgsoft!
My tool used macdeployqt tool form Qt. This tool copy libs, frameworks to application bundle. But for QML the tool copy special plugins. If you see folder <you_app_name>.app/Contents/Resources/qml you can see some folders. Inside of folders you can find dynamic libs of QtQuick.
So when you set the QML path in my tool this options said to macdeplyoyqt about copy QtQuick plugins to your application bundle.
If you want read more about deploy try to read "this article":http://qt-project.org/doc/qt-5/macosx-deployment.html.
By the way in your application you use Qt resource to save QML files?