Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 6.8.2 doesn't install properly on Linux Mint 22.1
QtWS25 Last Chance

Qt 6.8.2 doesn't install properly on Linux Mint 22.1

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 550 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Colins2
    wrote on last edited by Colins2
    #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

    Pl45m4P 1 Reply Last reply
    0
    • C Colins2

      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

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Colins2

      What are these errors? Did it find a proper configured kit?
      It can take some time for the code model to realize where the actual targets/includes are.

      So you say projects that don't include widgets are working?!


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Colins2
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Colins2
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Colins2
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Colins2
              wrote on last edited by
              #6

              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!

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved