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é
#!/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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to