Add qt version check in cmake
Apparently it's necessary to have qt 5.4 to compilehttp://musescore.org/en/developers-handbook/compilation/compile-instruc…. It'd be good to check that in `cmake` and make it fail rather than start a compilation which is destined to fail.
Comments
I think there is a check already, but it may need to get updated to a newer Qt version
Qt 5.4 is not required. It should work with Qt 5.3, even maybe Qt 5.2. Anyone tried?
The check is here https://github.com/musescore/MuseScore/blob/master/CMakeLists.txt#L158
I was just relying on your [own compile instructions][1] ("UPDATE: It is now necessary to install Qt5.4 (or later)"). If that's not the case I'll investigate further because a lot of `cmake` tests don't seem to fail properly in my case (see #52641: Handle error "You must build your code with position independent code if Qt was built with -reduce-relocations. " in cmake[1] as well).
Open an issue for adjusting the compile instructions?
[1]:http://musescore.org/en/developers-handbook/compilation/compile-instruc…
[2]:http://musescore.org/en/node/52641
Just checked, we need Qt 5.3 because of QQuickWidget. I will update the CMakeLists.txt.
http://doc.qt.io/qt-5/qquickwidget.html
Fixed in 59132f4d22
Handbook updated too.
Automatically closed -- issue fixed for 2 weeks with no activity.