Important: Please read the Qt Code of Conduct -

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:

    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:

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

    I fixed the symlink by using:

    @rm Current
    ln -s 4 Current@

    but still get this error upon starting my application:

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

  • 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!

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

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

  • I copied it myself.

Log in to reply