Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Only kit Qt5.5.1 found with QtCreator
Forum Updated to NodeBB v4.3 + New Features

Only kit Qt5.5.1 found with QtCreator

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
16 Posts 2 Posters 1.3k 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.
  • J Offline
    J Offline
    Jogchum
    wrote on last edited by
    #1

    Hi,
    I'm using QtCreator 9.0.1, based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64)
    On OpenSuse tumbleweed, one of the latest snapshots.

    I have Qt5 and 6 installed, with devel-files in both versions for the modules I want to use.

    Yet, when I want to create a new project, is sees only kit Qt 5.5.1 (System).
    Anyone an idea how to change that, so as to have Qt6 included?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      if the installed qt5 has version 5.5.1, that means your OS is pretty old. Not sure how you could install qt6. I would suggest you upgrade your OS first.

      And what is your gcc version?

      J 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        if the installed qt5 has version 5.5.1, that means your OS is pretty old. Not sure how you could install qt6. I would suggest you upgrade your OS first.

        And what is your gcc version?

        J Offline
        J Offline
        Jogchum
        wrote on last edited by Jogchum
        #3

        @JoeCFD Tumbleweed is not old, on the contrary more bleeding edge, with snapshots nearly each working day. And as said, I am on one of the latest snapshots (a few days before now).
        It offers both Qt5 as Qt6, as shown by invoking /usr/bin/qcreator, which starts the version I showed above.

        gcc -v gives gcc version 12.2.1 20221020

        JoeCFDJ 1 Reply Last reply
        0
        • J Jogchum

          @JoeCFD Tumbleweed is not old, on the contrary more bleeding edge, with snapshots nearly each working day. And as said, I am on one of the latest snapshots (a few days before now).
          It offers both Qt5 as Qt6, as shown by invoking /usr/bin/qcreator, which starts the version I showed above.

          gcc -v gives gcc version 12.2.1 20221020

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          @Jogchum gcc is very good and Tumbleweed is the latest Open Suse. How did you install Qt5 and Qt6? Qt 5.5.1 is pretty old.

          J 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            @Jogchum gcc is very good and Tumbleweed is the latest Open Suse. How did you install Qt5 and Qt6? Qt 5.5.1 is pretty old.

            J Offline
            J Offline
            Jogchum
            wrote on last edited by
            #5

            @JoeCFD Hi Joe, to be honest, I'm not very much interested in the version of Qt5, because I want to use Qt6.
            But the version of Qt5 on my system is 5.15.7.
            The problem is: qtcreator (as said version 9.0.1, based on Qt 6.4.1) only sees a Qt5 kit, and, as becomes apparent, even an older version as is installed on the system.
            Why is that? How does qtcreator find the kits available? Why does it find a version not even available on the system, and not those that are available?

            1 Reply Last reply
            0
            • JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              Yes, 5.15.7 makes more sense. I guess default Qt version is Qt5. type
              which qmake and
              qmake --version
              you will be able to see it.
              use qtchooser to set qt to qt6. I posted messages about this before. Check it out from my messages.
              Then qtcreator will be able to find it.

              https://forum.qt.io/topic/141071/qt-designer-6-on-ubuntu-22-04-jammy/8

              J 1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                Yes, 5.15.7 makes more sense. I guess default Qt version is Qt5. type
                which qmake and
                qmake --version
                you will be able to see it.
                use qtchooser to set qt to qt6. I posted messages about this before. Check it out from my messages.
                Then qtcreator will be able to find it.

                https://forum.qt.io/topic/141071/qt-designer-6-on-ubuntu-22-04-jammy/8

                J Offline
                J Offline
                Jogchum
                wrote on last edited by
                #7

                @JoeCFD Apparently, qtchooser is dead upstream (see https://bugs.launchpad.net/ubuntu/+source/qtchooser/+bug/1964763 #5), and it can't be found any more on Tumbleweed repos....

                JoeCFDJ 1 Reply Last reply
                0
                • J Jogchum

                  @JoeCFD Apparently, qtchooser is dead upstream (see https://bugs.launchpad.net/ubuntu/+source/qtchooser/+bug/1964763 #5), and it can't be found any more on Tumbleweed repos....

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  @Jogchum then purge qt5 from your machine. Install Qt6 under /opt/Qt and set the path in the shell.

                  J 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @Jogchum then purge qt5 from your machine. Install Qt6 under /opt/Qt and set the path in the shell.

                    J Offline
                    J Offline
                    Jogchum
                    wrote on last edited by
                    #9

                    @JoeCFD I'mnot sure if purging at5 from my system is a good idea: there are lots of dependencies on parts of qt5, without a qt6 counterpart.

                    I'm still puzzled by why ctcreator only sees a qt5 environment, a too old one even. It should be possible to convince qtcreator from the existence of the qt6 environment, shouldn't it?
                    Question is, how...

                    JoeCFDJ 1 Reply Last reply
                    0
                    • J Jogchum

                      @JoeCFD I'mnot sure if purging at5 from my system is a good idea: there are lots of dependencies on parts of qt5, without a qt6 counterpart.

                      I'm still puzzled by why ctcreator only sees a qt5 environment, a too old one even. It should be possible to convince qtcreator from the existence of the qt6 environment, shouldn't it?
                      Question is, how...

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #10

                      @Jogchum try
                      export QT6DIR="/opt/Qt/6.4.1"
                      if you installed qt6 by default. Otherwise, use your own path.

                      J 1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        @Jogchum try
                        export QT6DIR="/opt/Qt/6.4.1"
                        if you installed qt6 by default. Otherwise, use your own path.

                        J Offline
                        J Offline
                        Jogchum
                        wrote on last edited by
                        #11

                        @JoeCFD I think /usr/include/qt6/ would be the path to export in my case. In /opt there is nothing. opensuse doesn't use /opt.

                        So I ran

                        export QTDIR=/usr/include/qt6/; qtcreator
                        

                        -> didn't change a thing....

                        JoeCFDJ 1 Reply Last reply
                        0
                        • J Jogchum

                          @JoeCFD I think /usr/include/qt6/ would be the path to export in my case. In /opt there is nothing. opensuse doesn't use /opt.

                          So I ran

                          export QTDIR=/usr/include/qt6/; qtcreator
                          

                          -> didn't change a thing....

                          JoeCFDJ Offline
                          JoeCFDJ Offline
                          JoeCFD
                          wrote on last edited by
                          #12

                          @Jogchum no, it can not be there. Do you have /usr/lib/qt6? If yes, export QT6DIR=/usr/lib/qt6.

                          1 Reply Last reply
                          0
                          • JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by JoeCFD
                            #13

                            I just tested it and it does not work. But I add it manually on Options->Kits->Qt Versions and click Add button to add qmake of qt6 with path. This is Ubuntu. Then switch to Kits tab and add DesktopQt6(or any name you like) manually. Click it and add Qt6 to it by selecting Qt Version to Qt6.4.1.

                            This is kind of messy and there may be a better way to do it. But it works. I just tested a small example and qt6 libs are linked to the executable. The example runs well.

                            Kit Qt6 not found with QtCreator because qmake of Qt6 is not defined in the PATH since qmake of Qt5 is the default one in the PATH

                            J 1 Reply Last reply
                            0
                            • JoeCFDJ JoeCFD

                              I just tested it and it does not work. But I add it manually on Options->Kits->Qt Versions and click Add button to add qmake of qt6 with path. This is Ubuntu. Then switch to Kits tab and add DesktopQt6(or any name you like) manually. Click it and add Qt6 to it by selecting Qt Version to Qt6.4.1.

                              This is kind of messy and there may be a better way to do it. But it works. I just tested a small example and qt6 libs are linked to the executable. The example runs well.

                              Kit Qt6 not found with QtCreator because qmake of Qt6 is not defined in the PATH since qmake of Qt5 is the default one in the PATH

                              J Offline
                              J Offline
                              Jogchum
                              wrote on last edited by
                              #14

                              @JoeCFD My setup is slightly different it seems, I see no Options choice anywhere. But, in he Kit Selection dialogue box, if I hover with the mouse beside the "Qt 5.5.1 (System)"messages, a new button Manage pops up. Then comes a dialogue box, with, among others, a "Qt Versions" tab. In that tab, one can add (in my case) /usr/bin/qmake6), which then recognizes the correct Qt version (6.4.1 i my case).
                              It gives the option "Link with Qt", but that doesn'work in my case.
                              However, I can go further now.
                              The 5.5.1 maybe comes from one of the files in/under ~/.config/QtProject/, where I see various occurences of that version number.

                              So something is not yet right here, but anyway, I can move on.
                              Thanks for your help!

                              JoeCFDJ 1 Reply Last reply
                              0
                              • J Jogchum

                                @JoeCFD My setup is slightly different it seems, I see no Options choice anywhere. But, in he Kit Selection dialogue box, if I hover with the mouse beside the "Qt 5.5.1 (System)"messages, a new button Manage pops up. Then comes a dialogue box, with, among others, a "Qt Versions" tab. In that tab, one can add (in my case) /usr/bin/qmake6), which then recognizes the correct Qt version (6.4.1 i my case).
                                It gives the option "Link with Qt", but that doesn'work in my case.
                                However, I can go further now.
                                The 5.5.1 maybe comes from one of the files in/under ~/.config/QtProject/, where I see various occurences of that version number.

                                So something is not yet right here, but anyway, I can move on.
                                Thanks for your help!

                                JoeCFDJ Offline
                                JoeCFDJ Offline
                                JoeCFD
                                wrote on last edited by JoeCFD
                                #15

                                @Jogchum One step is missing in your settings. You have added to Qt 6.4.1. But no Qt6 kit is set.
                                Switch to Kits tab and press Add Button to add DesktopQt6(or any name you like) manually. Click it and add Qt6 to it by selecting Qt Version to Qt6.4.1.
                                qtversion.jpg kits.jpg

                                Then use DesktopQt6 to build your projects. That is Qt6.

                                J 1 Reply Last reply
                                0
                                • JoeCFDJ JoeCFD

                                  @Jogchum One step is missing in your settings. You have added to Qt 6.4.1. But no Qt6 kit is set.
                                  Switch to Kits tab and press Add Button to add DesktopQt6(or any name you like) manually. Click it and add Qt6 to it by selecting Qt Version to Qt6.4.1.
                                  qtversion.jpg kits.jpg

                                  Then use DesktopQt6 to build your projects. That is Qt6.

                                  J Offline
                                  J Offline
                                  Jogchum
                                  wrote on last edited by
                                  #16

                                  @JoeCFD After some trying I manage to define the Qt version, and now it should work as expected - thanks!

                                  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