Search code examples
qtubuntuqmake

qmake -query returns an old Qt installation


I would like to build Qt, The command qmake -query returns an old Qt installation (5.7)

I searched at .config to look for some qmake.conf or qt.conf. I found the trolltech.conf file and QtProject folder. those two dont't contain any line returned by qmake -query.

I uninstalled qt4-qmake and qt5-qmake packages without success. The command is still returning the same output.

I tried to unset variables with qmake -unset VARIABLE but, it has effect only in variables i set with qmake -set VARIABLE VALUE.

I'm on Linux/Ubuntu 16.04 LTS and i would like to know how to do that qmake to do not point any Qt installation. Thank you !


Solution

  • It's on you to invoke the correct qmake. It doesn't "just happen" by magic. Qt is meant to have multiple versions installed in parallel.

    Alas, to build Qt itself you shouldn't be invoking qmake manually anyway. A Qt build, on all platforms, consists of two or three commands:

    1. configure ...
    2. make -j# / gmake -j# / jom -j# / nmake.
    3. make -j# install / etc.