[CMake] Current CVS CMake can't build Qt/Cocoa OS X bundle that doesn't crash

kent williams nkwmailinglists at gmail.com
Tue May 11 13:03:48 EDT 2010


OS X 10.5.8, Qt-4.6.2, g++-4.2 gcc-4.2

../cmake/bootstrap --prefix=/scratch/kent/opt --qt-gui
--qt-qmake=/opt/Qt-4.6.2/bin/qmake
make
make install

/scratch/kent/opt/CMake\ 2.9-20100511.app/Contents/MacOS/CMake\ 2.9-20100511
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

This looks like a different problem than the one I agonized over a
couple weeks ago with respect to qt_menu.nib.  There is a qtmenu.nib:

/scratch/kent/opt/CMake
2.9-20100511.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib

ls -l /scratch/kent/opt/CMake\
2.9-20100511.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib
total 32
-rw-r--r--  1 kent  user  1451 May 11 11:52 classes.nib
-rw-r--r--  1 kent  user   471 May 11 11:52 info.nib
-rw-r--r--  1 kent  user  5567 May 11 11:52 keyedobjects.nib

What it looks like to me is that when the QtGui framework gets copied,
something is messed up in the paths fixups during fixup_bundle.


More information about the CMake mailing list