Cannot compile 2.1 on OSX
Following the guide at:
https://musescore.org/en/developers-handbook/compilation/compile-instruc...
I ran into three separate problems, two of which I managed to overcome.
1) Current QT version (5.8) has a faulty QtUiPlugin on OSX (https://bugreports.qt.io/browse/QTBUG-57656). Therefore had to downgrade to 5.6 as recommended in the guide. This is just for info, as there is nothing MS devs can do about that.
2) It complains about not finding the header file in #include < QtWebKit > (in all.h I believe). This was easy to circumvent by setting BUILD_WEBKIT="OFF" in Makefile.osx . This does disable some functionality, so you may want to look into that too, but this is non-critical for me.
3) After this, the compile process goes 95% of the way through, but then crashes at pluginDocumentation step with:
=== BUILD TARGET genManual OF PROJECT mscore WITH CONFIGURATION Release ===
Check dependencies
=== BUILD AGGREGATE TARGET pluginDocumentation OF PROJECT mscore WITH CONFIGURATION Release ===
Check dependencies
Write auxiliary files
write-file /Users/margusniitsoo/MuseScore/build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-EA055D666C84434B9BE8831B.sh
chmod 0755 /Users/margusniitsoo/MuseScore/build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-EA055D666C84434B9BE8831B.sh
write-file /Users/margusniitsoo/MuseScore/build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-AF9B91AE342641228C5776E8.sh
chmod 0755 /Users/margusniitsoo/MuseScore/build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-AF9B91AE342641228C5776E8.sh
PhaseScriptExecution CMake\ Rules build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-AF9B91AE342641228C5776E8.sh
cd /Users/margusniitsoo/MuseScore
/bin/sh -c /Users/margusniitsoo/MuseScore/build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-AF9B91AE342641228C5776E8.sh
make[1]: Nothing to be done for `all'.
PhaseScriptExecution CMake\ PostBuild\ Rules build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-EA055D666C84434B9BE8831B.sh
cd /Users/margusniitsoo/MuseScore
/bin/sh -c /Users/margusniitsoo/MuseScore/build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-EA055D666C84434B9BE8831B.sh
/Users/margusniitsoo/MuseScore/build.release/manual/Release/genManual /Users/margusniitsoo/MuseScore /Users/margusniitsoo/MuseScore/build.release/share/manual
dyld: Library not loaded: @rpath/QtDesigner.framework/Versions/5/QtDesigner
Referenced from: /Users/margusniitsoo/MuseScore/build.release/manual/Release/genManual
Reason: image not found
make[1]: *** [pluginDocumentation_buildpart_0] Abort trap: 6
Command /bin/sh failed with exit code 2
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution CMake\ PostBuild\ Rules build.release/manual/mscore.build/Release/pluginDocumentation.build/Script-EA055D666C84434B9BE8831B.sh
(1 failure)
make: *** [release] Error 65
=====================================================
Googling the issue revealed that @rpath is most likely set wrong (it should include ~/Qt/5.6/clang_64/lib which is where the framework it is not finding is situated).
Considering the step that fails is building plugin documentation, I would like to know if there is an easy way of disabling that step alltogether, just to get it working?
Comments
see #201481: Mac OS compile fails