Qt chooser issue on Ubuntu 22.04
-
wrote on 23 Aug 2022, 16:11 last edited by JoeCFD
I just made some changes in my app, but could not see the changes in a new build with cmake. Running the app in QtCreator + pro file is fine.
I noticed the difference is that cmake finds Qt with Qt chooser while Qt creator uses /usr/lib/qt5/bin directly. After I set /usr/lib/qt5/bin in the PATH, the build made by cmake is ok as well. The weird thing is qchooser -print-env outputs
QTTOOLDIR="/usr/lib/qt5/bin" since I have only default Qt 5.15.3 in the machine. It should be the same thing. However, the builds are different. I tried my builds by removing the build dir completely.g++ 11.2 is nice and even showed some bugs I did not see before.
-
I just made some changes in my app, but could not see the changes in a new build with cmake. Running the app in QtCreator + pro file is fine.
I noticed the difference is that cmake finds Qt with Qt chooser while Qt creator uses /usr/lib/qt5/bin directly. After I set /usr/lib/qt5/bin in the PATH, the build made by cmake is ok as well. The weird thing is qchooser -print-env outputs
QTTOOLDIR="/usr/lib/qt5/bin" since I have only default Qt 5.15.3 in the machine. It should be the same thing. However, the builds are different. I tried my builds by removing the build dir completely.g++ 11.2 is nice and even showed some bugs I did not see before.
@JoeCFD said in Qt chooser issue on Ubuntu 22.04:
but could not see the changes in a new build with cmake
Do you mean changes in your code?
1/2