MuseScore compile issue on macOS 10.11.6 / Xcode 8.2.1 / Qt 5.9.8
(I have a 12y-old iMac which is the only computer I have access to install the software (work PC is locked down). I am trying to compile MuseScore on the above combination of macOS/Xcode/Qt, to help with some problematic strings that have bugging me for a while)
I have been following the instructions from
Compile instructions (macOS 10.10+) - Git
Step 1 states "Install the latest version of Xcode from the Mac App Store"
Xcode 10.3 is the latest available version
Xcode 8.2.1 is the latest supported version of Xcode on macOS 10.11.6 as per Wikipedia:Xcode . I managed to install this version.
I used brew to install the prerequisite packages
Other than the older version of Xcode, I was able to meet all other requirements.
Are there any older versions of Xcode known not to work (e.g. is Xcode 8.2.1 known to be too old?)
As part of step
make -f Makefile.osx release
I get the below error message
Undefined symbols for architecture x86_64:
"Ms::ApiInfo::apiKeyHeader", referenced from:
Ms::ApiRequest::buildRequest() const in loginmanager.o
Ms::ApiWebEngineRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo&) in loginmanager.o
"Ms::ApiInfo::clientIdHeader", referenced from:
Ms::ApiRequest::buildRequest() const in loginmanager.o
Ms::ApiWebEngineRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo&) in loginmanager.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build.release/mscore/Release/mscore.app/Contents/MacOS/mscore normal x86_64
(1 failure)
make: *** [release] Error 65
Any help would be greatly appreciated. I am also on Telegram, riaanvn.
Comments
Looks like the WebEngine component of Qt is missing?
Thanks
du -ms 5.9.8
2558 5.9.8
https://musescore.org/en/node/296524
export PATH=$PATH:~/Qt/5.9/clang_64/bin in .bash_profile (echo $PATH reflects it)
If you think there is a point, I can remove and re-install QT 5.9.8/WebEngine but I doubt that this is the issue.
In reply to Thanks a) Running Qt's… by Riaan van Niekerk
Might be an XCode issue. Try asking on the developer's chat ;-)
I always apply this patch when building with Xcode 8.
In reply to I always apply this patch… by mattmcclinch
Any reason to not have this in the code base? And ill effects outside XCode 8?
In reply to I always apply this patch… by mattmcclinch
Thanks mattmcclinch. Until we get this merged (or in case we don't), could you provide the command(s) to pull the patch, patch the source tree, as well as exclude/revert the patch so it does not get included with a PR (or anything else you consider relevant)? (those are the things I can think of). I will expand the macOS 10.10 GIT page.
Issue: #298668: MuseScore compile issue on macOS 10.11.6 / Xcode 8.2.1 / Qt 5.9.8 created