[Qt-interest] macdeplyqt problems

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Tue Nov 9 13:26:46 CET 2010


On 2010-11-09 Simion simion ploscariu wrote:
> ...
> I want to package a Qt application and it seams that macdeployqt can do
> this for simple projects, I get this errors ERROR: file copy failed from
> "/Developer/Applications/Qt/plugins/accessible/libqtaccessiblewidgets.dyl
> ib" ERROR:  to
> "SimpleCapture.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dyl
> ib" ERROR: file copy failed from

It worked for me out of the box, also with the Qt 4.7 SDK (Qt 4.7 + Qt Creator), on Mac OS 10.6.4., with the tool 'macdeployqt'.

Do you have a case-sensitive filesystem? If so, do the paths have the expected spelling? Is the application package actually built successful, i.e. can you run it on your development machine (before you try to deploy the Qt framework into it)? You must have read-permissions on the Qt framework (otherwise you would not be able to compile/link your app - but better double-check ;)?

Is the package (target) path as expected? Did you set the TARGET variable (or DEST or whatever it is called in qmake) to some unusual value? What happens if you try to manually copy the involved files (given the paths '/Developer/Applications/Qt/plugins/accessible/libqtaccessiblewidgets.dylib' and ' SimpleCapture.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib', for example?)

What is the exact command line and where (in the path) do you execute it? That is, where is the actual Application bundle located relative to the working directory (where you execute 'macdeployqt'?

IIRC you call 'macdeployqt' in the same directory where the application.app bundle is located.

p.s. You might also want to "strip" the unused architectures from the Qt framework, it contains both 64 bit and 32 bit Intel executables! Depending on how you built your application (e.g. 64 bit only) you might want to reduce the size by almost a factor of 2 of your app ;) See "lipo" tool (Mac development tool) on how to "strip" libraries.

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22






More information about the Qt-interest-old mailing list