Handle error "You must build your code with position independent code if Qt was built with -reduce-relocations. " in cmake
Type
Development
Severity
S4 - Minor
Status
needs info
Regression
No
Workaround
No
Project
It'd be more elegant to handle the `qt` error "You must build your code with position independent code if Qt was built with -reduce-relocations. " in `cmake` because it'd provide more visibility than in `make`.
experienced with c887ce2106e23743ba0dfeea6f59fffd9b4757eb with qt 4.8.6 build on Ubuntu 14.10 amd64 with Linux 3.19.2
Comments
MuseScore git version will not work with 4.8.6. Can you explain what you mean by in cmake instead of make? How would you do that? pull request welcome.
> MuseScore git version will not work with 4.8.6.
That is exactly what I mean what `cmake` should check and refuse (i.e. fail). Currently it doesn't fail and `make` produces cryptic compilation errors ("cryptic" in comparison to a `cmake` error message like "QT 5.4 not found." or "QT 5.4 not found. Get it from [URL]").
That check is in https://github.com/musescore/MuseScore/blob/master/CMakeLists.txt#L158 and since a long time.
It doesn't work at all, i.e. absence of qt5 and presence of 4.8.6 installation from source doesn't make `cmake` fail, but therefore `make` as described. How to debug?
Updated link to the Qt version check:
https://github.com/musescore/MuseScore/blob/bc86b71c15f1f04af034d49c17f…
(the bar got raised to 5.7 or 5.8.)