Mscore compilation fails after pulling the most recent updates with git pull

• Dec 15, 2016 - 11:04
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
closed
Project

I'm running the mscore compilation in Fedora 25: after pulling the todays source, the compilation fails:

[ 40%] Built target pluginDocumentation
[ 40%] Building CXX object libmscore/CMakeFiles/libmscore.dir/ottava.cpp.o
/muse/MuseScore/libmscore/measure.cpp: In member function ‘bool Ms::Measure::corrupted(int) const’:
/muse/MuseScore/libmscore/measure.cpp:288:94: error: ‘class Ms::MStaff’ has no member named ‘corrupted’
bool Measure::corrupted(int staffIdx) const { return _mstaves[staffIdx]->corrupted(); }
^~~~~~~~~
/muse/MuseScore/libmscore/measure.cpp: In member function ‘void Ms::Measure::setCorrupted(int, bool)’:
/muse/MuseScore/libmscore/measure.cpp:289:87: error: ‘class Ms::MStaff’ has no member named ‘setCorrupted’
void Measure::setCorrupted(int staffIdx, bool val) { _mstaves[staffIdx]->setCorrupted(val); }
^~~~~~~~~~~~
[ 40%] Building CXX object libmscore/CMakeFiles/libmscore.dir/page.cpp.o
libmscore/CMakeFiles/libmscore.dir/build.make:1169: recipe for target 'libmscore/CMakeFiles/libmscore.dir/measure.cpp.o' failed


Comments

Works fine here, Windows 7 and 10. Works fine on Travis and for the nightly builds too, so this got to be some problem local to you?

Do you use `git pull --rebase upstream/master`?

Exact same error here, Windows 10 32bit, git 8051b42, Qt 5.60. Trying a clean recompile now. I'll also try compiling at work in an hour.

EDIT: clean recompile failed as well.

As said it just works here, Windows 7 and 10, 64bit, Qt 5.6.2, and, as of yesterday, Qt Creator 4.2 (was 4.1 before)

But indeed that MStaff stuff is something Werner changed yesterday afternoon.

I doubt it, the error messages clearly point at MuseScore's source. Still 5.6.x is the version the master branch gets built against für the nightly builds (and 5.4.x is what 2.1 gets built against), and that ain't gonna change in the forseable future, as Qt 5.6 is a Long Term Support version.

Ah, you need to use a DEBUG build, corrupted() and setCorrupted() are only defined when NDEBUG is not set, so it won't compile in RELEASE mode