Comment 4 for bug 1005155

Revision history for this message
RalphBln (schaef) wrote :

Another thing: The Qt plugins should be copied to the plugins directory (as stated in qt.conf) instead of the MacOS dir.

In macosx_bundle.sh:

Change line 22:
cp -pr /Developer/Applications/Qt/plugins/{imageformats,iconengines} ${CMAKE_INSTALL_PREFIX}/MacOS

to:
mkdir ${CMAKE_INSTALL_PREFIX}/plugins
cp -pr /Developer/Applications/Qt/plugins/{imageformats,iconengines} ${CMAKE_INSTALL_PREFIX}/plugins

Otherwise Qt finds and uses the plugins in /Developer/Applications/Qt/plugins on machines where Qt is installed. The plugins there in turn include links back to the Qt frameworks in /Library/Frameworks which leads to the Qt frameworks being loaded twice resulting in "Class XYZ is implemented in both .../stellarium-0.11.3/builds/macosx/Stellarium.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined." messages an stellarium crashing.