Mac OS compile fails
Following the guide at:
https://musescore.org/en/developers-handbook/compilation/compile-instru…
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? A full and proper fix to the system would also help, of course :)
Comments
I'm not a Mac user, but help with compiling should be posted to the forms. Only until you have determined and can clearly describe the bug or feature request should you post to this issue tracker.
1) Musescore 2.1 is supposed to be compiled with Qt 5.4.2
2) See 1). Webkit is not part of Qt 5.6
3) Not sure but I guess it's related to 1 and 2.
Thank you. You may want to edit the guide to that effect too, as it currently explicitly mentions 5.6.
This is (or was) true for builing from master, not for building any 2.x Version.
See https://musescore.org/en/node/12581/revisions/171336/view, an older version of that page.
I believe for master we're now using Qt 5.8 for all platforms, and may switch to 5.9 shortly