Qt 6.8.2 doesn't install properly on Linux Mint 22.1
-
I am running Linux Mint 22.1.
I downloaded the installer for the community edition and I have now run it about 6 times, without success.
I have tried the custom and the basic 6.8 desktop options but neither work.
The installer aske all the questions and then starts the download/installation process.
It appears to finish and I get the option to run QtCreator.
This is OK. If I start a console app then it all works fine, but obviously no actual Qt components are used.
If I try and create a Qt Widget application, it fails immediately as it can't seem to find the widgets files - this is without any code being written, just the template being loaded. There are convoluted error messages directing to different .config files but all values are macros of some sort and pretty much imposible to follow.
I did also try and download the 6.7 version as my previous Qt install was 6.7.0 and I have various little apps that I wrote and successfully ran but the same thing happened there.
I have had Qt running on Mint since the early Qt 5 releases and upgraded Mint and Qt over the years and have never run into this problem.
Any tips or other info very welcome.
Thanks Colin -
I am running Linux Mint 22.1.
I downloaded the installer for the community edition and I have now run it about 6 times, without success.
I have tried the custom and the basic 6.8 desktop options but neither work.
The installer aske all the questions and then starts the download/installation process.
It appears to finish and I get the option to run QtCreator.
This is OK. If I start a console app then it all works fine, but obviously no actual Qt components are used.
If I try and create a Qt Widget application, it fails immediately as it can't seem to find the widgets files - this is without any code being written, just the template being loaded. There are convoluted error messages directing to different .config files but all values are macros of some sort and pretty much imposible to follow.
I did also try and download the 6.7 version as my previous Qt install was 6.7.0 and I have various little apps that I wrote and successfully ran but the same thing happened there.
I have had Qt running on Mint since the early Qt 5 releases and upgraded Mint and Qt over the years and have never run into this problem.
Any tips or other info very welcome.
Thanks Colin -
@Pl45m4
If I just select a console application, the default template is a basic hello world project. This compiles and runs without problems.
If I select a Qt Widgets application I get an error in the bulid settings:
"CMake project configuration failed. No CMake configuration for build type "Release" found. Check General Messages for more information." The same message appears with the debug build.
General Meaasges has this:
CMake Error at CMakeLists.txt:13 (find_package):
[cmake] Found package configuration file:
[cmake]
[cmake] /home/colins2/Qt6/6.8.2/gcc_64/lib/cmake/Qt6/Qt6Config.cmake
[cmake]
[cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
[cmake] FOUND. Reason given by package:
[cmake]
[cmake] Failed to find required Qt component "Widgets".
[cmake]
[cmake] Expected Config file at
[cmake] "/home/colins2/Qt6/6.8.2/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
[cmake] exists
This is a new, default Qt installation on a fresh Linux Mint 22.1 installation. I have never seen these messages before and cannot understand what the problem is. I have tried following the macros in the various config files but gave up. -
I also get the following, under the previous message:
Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the
[cmake] package was not found.
[cmake]
[cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
[cmake] of the path variables that find_package uses to try and find the package.Where should I put those directives?
-
Seems like it's (another) Linux Mint problem. I just did a fresh install on an almost new straight Debian system and Qt 6.8.2 works perfectly.
On the last message, I put the -DQT_DEBUG_FIND_PACKAGE=ON in the cmake section of the Mint installation and basically it told me that it found all the packages. Searching with file manager confirmed that they are all there, so I am at a total loss why Qt can't find them. -
I've amended the title of the post because the problem seems to be just with Mint 22.1.
It is still strange why it won't work though, given that it has worked on all Mint systems for the past 7 years or so.
I'm still hoping someone has an idea because rebooting just to work on a project is very inconvenient, to say the least!