Build failure on current master
A clean build of the current master (commit 1b1912) fails for me (OS X, Qt 5.9.7) with error messages:
- redefinition of 'Score'
- redefinition of 'Preferences'
on file inspectorplugin.h
Does anyone know what is causing this / how to fix it ?
Comments
inspectorplugin shouldn't be included in the build target (someone was working on fixing this)
I believe there was another bug as well Mac OS X specific though...
EDIT: see also https://musescore.org/en/node/278909
That redefine thing is fixed meanwhile I believe, with fb019e06, maybe that didn't fix it and e7463521 broke it at a different, earlier spot?
But see also #279242: No development builds for Mac since Nov 27
In reply to That redefine thing is fixed… by Jojo-Schmitz
Unfortunately, I am at the latest and greatest including commit fb019e06, but it still doesn't build.
In reply to Unfortunately, I am at the… by Leon Vinken
That fix probably requires you to make clean and/or rerun cmake (or whatever the mac equivalent is)
In reply to That fix probably requires… by jeetee
Already did a clean build, did not help :-(.
In reply to Already did a clean build,… by Leon Vinken
Update CMake? That's what fixed in on Travis as far as I can see, 075341a
In reply to Update CMake? That's what… by Jojo-Schmitz
Will try that too.
In reply to Will try that too. by Leon Vinken
You may also join us with Telegram at https://t.me/musescoreeditorchat
In reply to Will try that too. by Leon Vinken
Updating CMake from 3.4.3 to latest (3.13.1) fixed my issue. Thanks for the help.
In reply to Updating CMake from 3.4.3 to… by Leon Vinken
Maybe we need to update the Mac build instruction in the Developers' handbook?
In reply to Maybe we need to update the… by Jojo-Schmitz
Sounds like a good idea. The only facts I know for sure are:
- am using Xcode 8.1 and Qt 5.9.7 on OS X El Capitan (10.11.6)
- up until commit a4e6ad8 of Nov 22 building with CMake 3.4.3 worked OK
- as of commit 1b1912d of Dec 1 the build was broken (a.o. error "redefinition of 'Score'" on file inspectorplugin.h
- upgrading CMake from 3.4.3 to latest (3.13.1) fixed it
Note that I do not know what commit broke it, what the root cause is and what the minimum CMake version is that solves it. I do agree that the information summarised above could be useful to other Mac developers and should be added to the Developers' handbook.