qmake and mkspec folder
Hi , I wanted to ask that where does qmake looks for mkspec folder. Is it hardcoded inside the qmake during compile time ?
Hi and welcome to devnet,
You can query qmake for that information.
See here for more information.
Thanks for the answer. To give more context, I am building qt with prefix option. After the build is completed it is moved to a different location.
When i run qmake -query I get the following paths which are incorrect
so running qmake on my project results in mkspec not found. If i set QMAKESPEC it works but it then fails at
Project ERROR: Could not find feature force_asserts.
For a relocatable Qt build, see this article.
Thanks. Is this feature available in 5.12.10 ? Also we compile qt with static and shared version
Interestingly it used to work with 5.9.1
Apparently 5.12.10 it does not support the feature
ERROR: Enabling/Disabling unknown feature 'relocatable'.
can i get away by setting all the variables using qmake -set QT_INSTALL_PREFIX "something" -set .... ?
As the blog article says, it has started with Qt 5.14.
What is your current issue ?