MuseScore 3.6.1 not compiling with Qt 5.12.8

• Jan 29, 2021 - 22:06
Reported version
3.6
Type
Development
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
Yes
Workaround
No
Project

Since MuseScore 3.6.1 doesn't even start compiling with Qt 5.15 (see https://musescore.org/en/node/299758), I moved back to Qt 5.12.8 and it gives a different error right at the beginning of the compilation process:

No rule to make target 'all.h', needed by 'CMakeFiles/mops1'. Stop.

The version 3.4 used to compile fine with this same Qt version, same installation.

System: Linux Ubuntu 20.04
Qt 5.12.8
QtCreator 5.14.0


Comments

After switching to branch 3.6 and switching back to 3.6.1, I managed to get it to start compiling and to get to another error:

/media/luiz/Volume/Downloads/MuseScoreMaster/build-MuseScore-Qt_5_12_8_PATH-Debug/thirdparty/qt-google-analytics/qt-google-analytics_autogen/EWIEGA46WW/moc_ganalytics.cpp:290: error: ‘QT_INIT_METAOBJECT’ does not name a type
In file included from /media/luiz/Volume/Downloads/MuseScoreMaster/build-MuseScore-Qt_5_12_8_PATH-Debug/thirdparty/qt-google-analytics/qt-google-analytics_autogen/mocs_compilation.cpp:2:
/media/luiz/Volume/Downloads/MuseScoreMaster/build-MuseScore-Qt_5_12_8_PATH-Debug/thirdparty/qt-google-analytics/qt-google-analytics_autogen/EWIEGA46WW/moc_ganalytics.cpp:290:1: error: ‘QT_INIT_METAOBJECT’ does not name a type
  290 | QT_INIT_METAOBJECT const QMetaObject GAnalytics::staticMetaObject = { {
      | ^~~~~~~~~~~~~~~~~~