I have a C++ Qt program. It compiles using qmake && make.
It always ends up compiling using Qt 5.2.1. I want to use Qt 5.5 that I downloaded.
$ qtchooser -l
4
5
default
qt4-i386-linux-gnu
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5None of those were new after I downloaded and installed Qt 5.5.
I used the Qt Creator program to 'remove' the old version of Qt such that 5.5 is the only one there now, but still it's stuck on 5.2.1 when I compile.
I want to know the official way to do this as I need to write instructions for others to compile my program.
I'm using the opensource versions of Qt.
71 Answer
The answer is posted here , you can use the first answer and then edit default.conf in /usr/lib/x86_64-linux-gnu/qtchooser like I did here:
#/usr/lib/x86_64-linux-gnu/qt5/bin
#/usr/lib/x86_64-linux-gnu
/usr/lib/debug/opt/qt54/bin
/usr/lib/debug/opt/qt54/libor you can go with the second answer. (up to you)
5