June 15, 2011

Hedge Hedge
Lab Rat
196 posts

Qt internal error: qt_menu.nib could not be loaded.

 

I’m deploying a shared library application on OSX.

All dependencies have been fixed as described here: http://developer.qt.nokia.com/forums/viewthread/6641/#39177

Only the qt_menu.nib is giving me a hard time.
It shall be located inside: QtGui.framework/Versions/Current/Resources/

the Versions-folder looks like this:

  1. drwxr-xr-x  4 imm  staff  136 14 Jun 21:24 4
  2. lrwxr-xr-x  1 imm  staff    1 14 Jun 16:56 4.0 -> 4
  3. lrwxr-xr-x  1 507  wheel    1 14 Jun 16:56 Current -> 4

I fixed the symlink by using:

  1. rm Current
  2. ln -s 4 Current

but still get this error upon starting my application:

  1. 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.

My application works when I put the qt_menu.nib inside the Resources-folder of the .app but I’d rather have this link-thing sorted out for a clean solution.

4 replies

June 16, 2011

Volker Volker
Ant Farmer
5428 posts

Is it in the original installation of your Qt libs? eg. in /usr/local/Trolltech/Qt-4.7.3/lib/QtGui.framework/Versions/4/Resources

And watch out, qt_menu.nib is a directory!

June 16, 2011

Hedge Hedge
Lab Rat
196 posts

Yes it pointed to the original installation. Now it points to correct file inside the .app but the error is still there.

June 19, 2011

Volker Volker
Ant Farmer
5428 posts

Did you copy the framework yourself or was it by utilizing the macdeployqt tool?

June 19, 2011

Hedge Hedge
Lab Rat
196 posts

I copied it myself.

 
  ‹‹ Building qt      How to compile QtDeclarative without QtXmlPatterns, QtSvg and QtSql ››

You must log in to post a reply. Not a member yet? Register here!