Sorry, I haven’t checked. I have just written directly. I think it’s best to start with an empty project.
As Till Oliver said, you must be careful with additional dependencies. If you don’t depend from nothing else than Qt itself you should have no problem. Below is one working example for my case. I’m on: /Users/nsantos/workspace/ My project source is on: /Users/nsantos/workspace/lkbridge To deploy I run ~/Qt/5.4/clang_64_src/bin/macdeployqt build-lkbridge-Qt_5_4_Custom_Build-Debug/LKBRIDGE.app -qmldir=lkbridge/ on /Users/nsantos/workspace/ Try with a new project first. Nuno > On 09 Feb 2015, at 17:33, Daniel França <daniel.fra...@gmail.com> wrote: > > I think the first parameter of macdeployqt must be the app bundle. > > Trying this command I get a: > ERROR: no file at "/opt/local/lib/libz.1.dylib" > ERROR: no file at "/opt/local/lib/libz.1.dylib" > ERROR: no file at "/opt/local/lib/libz.1.dylib" > ERROR: no file at "/opt/local/lib/libz.1.dylib" > > > To fix that I run the script on the answer here: > http://qt-project.org/forums/viewthread/50118 > <http://qt-project.org/forums/viewthread/50118> (Obs: It works only if I run > the script after generates the app bundle) > > Then I've to rebuild my app, and add the -executable option to macdeployqt > > And then I can have a working .dmg... but now complaining that it can't find > the sqlite driver can't be loaded... now I'm digging into how it finds the > sqlite driver. > > Em Mon Feb 09 2015 at 6:16:06 PM, Nuno Santos <nunosan...@imaginando.pt > <mailto:nunosan...@imaginando.pt>> escreveu: > > Daniel, > > To deploy a Mac OSX Qt Quick app do the following: > > Imagine that your build was made to /tmp/build_YOUR_APP_NAME_clang_64_Release > > cd /tmp > /PATH_TO_YOUR_QT/clang_64/bin/macdeployqt -qmldir=/path_to_your_app_source > YOUR_APP_NAME.app > > You need to run macdeployqt with the qmldir option, specifying the path of > your qml files. This way, macdeployqt will analyse your qml source files and > copy the respective plugins to the bundle. > > Regards, > > Nuno > > >> On 09 Feb 2015, at 16:46, Daniel França <daniel.fra...@gmail.com >> <mailto:daniel.fra...@gmail.com>> wrote: >> > >> Hi guys, >> I know the subject is a little rude, but 2 years ago I'd a lot of problems >> trying to deploy an app to OS X, as you can see here: >> http://stackoverflow.com/questions/20895398/cant-deploy-qt-5-2-quick-app-to-mac-osx >> >> <http://stackoverflow.com/questions/20895398/cant-deploy-qt-5-2-quick-app-to-mac-osx> >> >> You can see people with similar problems: >> http://qt-project.org/forums/viewthread/48391 >> <http://qt-project.org/forums/viewthread/48391> >> http://qt-project.org/forums/viewthread/50118 >> <http://qt-project.org/forums/viewthread/50118> >> >> The solutions usually involves some custom script/app/macdeployqt. >> >> Anyway, at that time I was able to deploy, but it sucked. >> Now, 2 years later and with the fresh new Qt5.4, I'm again deploying Qt to >> OSX and I faced similar problems. >> Which led me to the question: Is anyone looking on that? Or am I doing >> something terrible wrong? >> >> I can't image that in 2 years no one cared about deployment on OSX. >> >> Any feedback is welcome. >> >> Best, >> Daniel >> >> > >> _______________________________________________ >> Interest mailing list >> Interest@qt-project.org <mailto:Interest@qt-project.org> >> http://lists.qt-project.org/mailman/listinfo/interest >> <http://lists.qt-project.org/mailman/listinfo/interest> >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest