[Development] Puzzled by desktop development priorities, Mac OS specifically [Warning: Rant]

R. Reucher rene.reucher at batcom-it.net
Tue Aug 6 10:07:03 CEST 2013


On Tuesday 06 August 2013 09:57:42 qtnext wrote:
> I always package the qml in a ressource file. That is not the issue
It's the QML imports that aren't deployed properly, but that's already an 
issue in Qt 4.

I fixed that with the attached script that's called after macdeployqt...

HTH, René
-------------- next part --------------
#!/bin/bash
QT_INSTALL_IMPORTS=`qmake -query QT_INSTALL_IMPORTS`
rsync -avP $QT_INSTALL_IMPORTS/ MyApp.app/Contents/MacOS/
for i in `find MyApp.app/Contents/MacOS -name "*.dylib"`; do
        QTLIBS=`otool -L $i | egrep ".*Qt.*framework.*Qt.*" | awk '{ print $1 }'`
        for j in $QTLIBS; do
                qtlib=""
                for k in $(echo $j | tr "/" " "); do
                        qtlib=$k
                done
                install_name_tool -change $j @executable_path/../Frameworks/$qtlib.framework/Versions/4/$qtlib $i
        done
done


More information about the Development mailing list