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