Thanks Oliver, I definitely need to understand better how to use install_name_tool. I'll look into that, but I think my case it should be simpler, as I don't use any 3rd party library.
Em Mon Feb 09 2015 at 6:33:40 PM, Daniel França <daniel.fra...@gmail.com> escreveu: > 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 (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> > 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> 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-deplo >> y-qt-5-2-quick-app-to-mac-osx >> >> You can see people with similar problems: http://qt-project.or >> g/forums/viewthread/48391 >> 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 >> http://lists.qt-project.org/mailman/listinfo/interest >> >> >>
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest