Qt4: the qmake executable could not be added in QtCreator
-
Hi all,
I have compiled a Qt4 i386 on Linux 64 bit, then I have made the install apparently without issues.When I try to add qmake in QT Versions in QtCreator I see the following issue and I don’t know why.

The qmake seems to be executable and 32 bits as expected, but I can't add in QtCreator.

--

Thanks in advance for your help
CP71 -
C Christian Ehrlicher moved this topic from General and Desktop on
-
Hi all,
I have compiled a Qt4 i386 on Linux 64 bit, then I have made the install apparently without issues.When I try to add qmake in QT Versions in QtCreator I see the following issue and I don’t know why.

The qmake seems to be executable and 32 bits as expected, but I can't add in QtCreator.

--

Thanks in advance for your help
CP71Qt : 4.8.7
qmake: 2.01a
issue : impossible to add qmake in “Qt versions”
cause : qmake -query returns only a property ( QT_INSTALL_PREFIX )
fix : call “qmake -set <property> <data>” for all missed propertiesOk,
finally I have found the reason because QtCreator doesn’t add qmake in “Qt Versions”.
It was not easy, I have had to discover what QtCreator does when someone selects qmake, QtCreator runs “qmake -query” for selected qmake.So I have compared the output of two “qmake -query” (one good and one my compiled Qt 4) and I have seen:
- good qmake provides more proprieties about qt
- my compiled qmake provides only one property (QT_INSTALL_PREFIX)
It is very strange for me, because If I require a specific missed property (e.g. “qmake -query QT_INSTALL_BINS”) qmake provides the property info, but it is not be provided if I run “qmake -query”.
So, the solution that I have found it is run “qmake -set” for all missed properties ( e.g. “qmake -set QT_INSTALL_BINS <folder bin>” ).
Then when I call “ qmake -query” I see all properties.
Now I am able to add qmake in QtCreator. -
C CP71 has marked this topic as solved on