Handle error "You must build your code with position independent code if Qt was built with -reduce-relocations. " in cmake

• Mar 26, 2015 - 01:57
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]").

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?