Blocked installing GT6.5 on ubuntu 22.04 due to old QT5
-
I have attempted to install QT6.5 (both studio and creator) on ubuntu 22.04. Several name/file associations are in conflict or broken.
I have followed various steps to remove QT5 and uninstalled and reinstalled several times.
One result is that none of the examples build
Invoking
qmake
from the command line results in
qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directoryfind_package(Qt6 6.5 REQUIRED COMPONENTS Gui Qml Quick)
Fails
There are numerous posts about modifying the CMakeFiles.txt file to fix this, but this requires modifying each example CMakeLists.txt file which seems wrong and looks like a hack.
It appears that something is going very wrong with the QT6.5 install and I've been struggling with this for several days.
I have attempted to change CMAKE_PREFIX_PATH in the projects section with no success. It is currently set to
%{Qt:QT_INSTALL_PREFIX}Part of the problem is ambiguity between linux environment variables, QT environment variables, CMake command line variables and CMake CMakeLists.txt variables - all of which are referred to as "environment variables."
Is there a way to fix the actual installation so all distribution CMakeLists.txt files work without modification?
Please do not answer with case by case modifications to the CMakeLists.txt files for each project.
-
@BobT said in Blocked installing GT6.5 on ubuntu 22.04 due to old QT5:
I have attempted to install QT6.5
How? Using online installer?
When calling qmake try to use absolute path to make sure you're calling the one from Qt6.5