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. install qt6 on ubuntu20.04.06
Forum Updated to NodeBB v4.3 + New Features

install qt6 on ubuntu20.04.06

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 1.5k 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.
  • F Offline
    F Offline
    Fikrat
    wrote on 2 Mar 2023, 14:25 last edited by Fikrat 3 Feb 2023, 14:26
    #1

    Hi,

    I installed several times qt6 via qt-unified-linux-x64-4.5.1-online.run installer, following this, it is installed in the path of local like ~/Qt.

    After this, whenever i open qt creator to create project with qt widget, it provides an error to me about package finding, as it is seen, project can not find qt libraries and packages. Could you please help me to debug
    this problem??

    J 1 Reply Last reply 2 Mar 2023, 14:32
    0
    • F Fikrat
      2 Mar 2023, 14:25

      Hi,

      I installed several times qt6 via qt-unified-linux-x64-4.5.1-online.run installer, following this, it is installed in the path of local like ~/Qt.

      After this, whenever i open qt creator to create project with qt widget, it provides an error to me about package finding, as it is seen, project can not find qt libraries and packages. Could you please help me to debug
      this problem??

      J Offline
      J Offline
      JoeCFD
      wrote on 2 Mar 2023, 14:32 last edited by
      #2

      @Fikrat ~/Qt is not in the PATH. You need to add qmake to the PATH and qtcreator can pick it up. Or you can manually add qmake path in QtCreator. Better to Install Qt under /opt which is user name independent.

      F 1 Reply Last reply 2 Mar 2023, 14:39
      0
      • J JoeCFD
        2 Mar 2023, 14:32

        @Fikrat ~/Qt is not in the PATH. You need to add qmake to the PATH and qtcreator can pick it up. Or you can manually add qmake path in QtCreator. Better to Install Qt under /opt which is user name independent.

        F Offline
        F Offline
        Fikrat
        wrote on 2 Mar 2023, 14:39 last edited by Fikrat 3 Feb 2023, 14:39
        #3

        Dear @JoeCFD,

        I already installed also /opt directory before, as well as i am using cmake not qmake actually. Problem was remained

        J 1 Reply Last reply 2 Mar 2023, 14:51
        0
        • F Fikrat
          2 Mar 2023, 14:39

          Dear @JoeCFD,

          I already installed also /opt directory before, as well as i am using cmake not qmake actually. Problem was remained

          J Offline
          J Offline
          JoeCFD
          wrote on 2 Mar 2023, 14:51 last edited by JoeCFD 3 Feb 2023, 14:53
          #4

          @Fikrat
          add this in your cmake file
          set( CMAKE_PREFIX_PATH "~/Qt/path/gcc-64/lib/cmake")

          I do not use cmake in qtcreator. I guess you add qmake to the kit and qtcreator will be able to find it for cmake as well.

          F 1 Reply Last reply 2 Mar 2023, 15:34
          0
          • J JoeCFD
            2 Mar 2023, 14:51

            @Fikrat
            add this in your cmake file
            set( CMAKE_PREFIX_PATH "~/Qt/path/gcc-64/lib/cmake")

            I do not use cmake in qtcreator. I guess you add qmake to the kit and qtcreator will be able to find it for cmake as well.

            F Offline
            F Offline
            Fikrat
            wrote on 2 Mar 2023, 15:34 last edited by Fikrat 3 Feb 2023, 15:37
            #5

            Dear @JoeCFD,
            Thank you!
            I did as you explained, but problem is remained. I dont have any clue about this problem. I am completely stuck.Before, I used a lot qt on ubuntu18.04.06, but with ubuntu 20.04.06 i can not resolve it

            J J 2 Replies Last reply 2 Mar 2023, 19:16
            0
            • F Fikrat
              2 Mar 2023, 15:34

              Dear @JoeCFD,
              Thank you!
              I did as you explained, but problem is remained. I dont have any clue about this problem. I am completely stuck.Before, I used a lot qt on ubuntu18.04.06, but with ubuntu 20.04.06 i can not resolve it

              J Offline
              J Offline
              JoeCFD
              wrote on 2 Mar 2023, 19:16 last edited by
              #6

              @Fikrat https://doc.qt.io/qtcreator/creator-project-cmake.html

              1 Reply Last reply
              0
              • F Fikrat
                2 Mar 2023, 15:34

                Dear @JoeCFD,
                Thank you!
                I did as you explained, but problem is remained. I dont have any clue about this problem. I am completely stuck.Before, I used a lot qt on ubuntu18.04.06, but with ubuntu 20.04.06 i can not resolve it

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 3 Mar 2023, 05:29 last edited by
                #7

                @Fikrat Did you set up a Kit in QtCreator for the Qt version you installed?
                Do you use QtCreator installed in ~/Qt or the one provided by Ubuntu?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                F 1 Reply Last reply 3 Mar 2023, 09:17
                0
                • J jsulm
                  3 Mar 2023, 05:29

                  @Fikrat Did you set up a Kit in QtCreator for the Qt version you installed?
                  Do you use QtCreator installed in ~/Qt or the one provided by Ubuntu?

                  F Offline
                  F Offline
                  Fikrat
                  wrote on 3 Mar 2023, 09:17 last edited by Fikrat 3 Mar 2023, 09:18
                  #8

                  @jsulm THANKS

                  I found solution in the link.

                  https://stackoverflow.com/questions/68967408/failed-to-find-qt-component-widgets-config-file-at

                  Problem is solved!

                  1 Reply Last reply
                  0

                  1/8

                  2 Mar 2023, 14:25

                  • Login

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