I am trying to deploy a Qt C ++ application on another Mac that does not have Qt. I get an internal Qt error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework / Versions / Current / Resources / or in the resource directory of your application package.
I tried packing qt_menu.lib in both suggested places, without success:
$ ls ./arya.app/Resources/ qt_menu.nib $ ./arya.app/Contents/MacOS/arya 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.
or
$ mkdir QtGui.framework $ mkdir QtGui.framework/Versions/ $ mkdir QtGui.framework/Versions/Current/ $ mkdir QtGui.framework/Versions/Current/Resources $ mv ./arya.app/Resources/qt_menu.nib QtGui.framework/Versions/Current/Resources/ $ ./arya.app/Contents/MacOS/arya 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.
I'm not sure if there could be any connection, but before that I had problems with dylib paths. After stumbling with install_name_tool, I "solved" them with:
export DYLD_LIBRARY_PATH=.
before running the application.
Create an application using
CONFIG -= app_bundle
irrelevant.
source share