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.
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: Applications/ Qt/plugins/ {imageformats, iconengines} ${CMAKE_ INSTALL_ PREFIX} /MacOS
cp -pr /Developer/
to: INSTALL_ PREFIX} /plugins Applications/ Qt/plugins/ {imageformats, iconengines} ${CMAKE_ INSTALL_ PREFIX} /plugins
mkdir ${CMAKE_
cp -pr /Developer/
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.