qt4-mac and macdeployqt

Petr Vanek petr at scribus.info
Wed Feb 2 08:36:57 PST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all,

it looks like the macdeployqt is broken in qt4-mac (since the port use dylibs instead of frameworks)

When I create a simple app

How to reproduce:

1) just create a minimal main.cpp in eg. deploytest directory

#include <QApplication>
int main(int argc, char ** argv)
{
        QApplication a(argc, argv);
        return a.exec();
}

2) qmake -project;qmake;make

3) open deploytest.app

It works.

4) macdeployqt deploytest.app

5) tree deploytest.app
deploytest.app/
`-- Contents
    |-- Frameworks
    |   |-- libQtCore.4.dylib
    |   |-- libQtGui.4.dylib
    |   |-- libpng14.14.dylib
    |   `-- libz.1.dylib
    |-- Info.plist
    |-- MacOS
    |   `-- deploytest
    |-- PkgInfo
    `-- Resources
        |-- empty.lproj
        `-- qt.conf

6) open deploytest.app
crash here.

running binary directly:
rimmer:deploytest pvanek$ ./deploytest.app/Contents/MacOS/deploytest 
Qt internal error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework/Versions/Current/Resources/  or in the resources directory of your application bundle.
Abort trap

rimmer:deploytest pvanek$ cp -r /opt/local//lib/Resources/qt_menu.nib deploytest.app/Contents/Resources/
rimmer:deploytest pvanek$ tree deploytest.app/
deploytest.app/
`-- Contents
    |-- Frameworks
    |   |-- libQtCore.4.dylib
    |   |-- libQtGui.4.dylib
    |   |-- libpng14.14.dylib
    |   `-- libz.1.dylib
    |-- Info.plist
    |-- MacOS
    |   `-- deploytest
    |-- PkgInfo
    `-- Resources
        |-- empty.lproj
        |-- qt.conf
        `-- qt_menu.nib
            |-- classes.nib
            |-- info.nib
            `-- keyedobjects.nib

and now it works.

Is it macports issue or should report it upstream?

thanks,
petr

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJNSYgpAAoJEC8yRjM4uE2tt58IAIjaa7mQGfpFqMyoEqSBfQUw
WY9l0ZHE/IQN6ZrK2I6RUJXMtJh11qU+P9qziLBjP7a1jF3RImH4Czmrh9aQdtk5
66LxPgzdsZyuwuOpXUpYP5ClVbUvEd/dDVbGqjYKnXwnvsXTKkocCcWWuQv1/H7V
PrFQbXePY4mS9WsbgkFmtnQZQup0H3Tpb5xCPfMXXk1aI0FzEbhW+lRw/mgNCDCq
ZyCV/VvM1w+Cvm35KrXadVBc6WY69ClcmG42la/kWR5CHUbfAjhxDZLSyVsCgq/g
Oedf9aT2yQrm1G3kG0h8208Uid0O6MCh9eq5MezwKhyktH+mtbhr/HYF+IiMDzw=
=bIw0
-----END PGP SIGNATURE-----


More information about the macports-dev mailing list