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.4k 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 last edited by Fikrat
    #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??

    JoeCFDJ 1 Reply Last reply
    0
    • F Fikrat

      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??

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on 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
      0
      • JoeCFDJ JoeCFD

        @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 last edited by Fikrat
        #3

        Dear @JoeCFD,

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

        JoeCFDJ 1 Reply Last reply
        0
        • F Fikrat

          Dear @JoeCFD,

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

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #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
          0
          • JoeCFDJ JoeCFD

            @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 last edited by Fikrat
            #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

            JoeCFDJ jsulmJ 2 Replies Last reply
            0
            • F Fikrat

              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

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

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

              1 Reply Last reply
              0
              • F Fikrat

                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

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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
                0
                • jsulmJ jsulm

                  @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 last edited by Fikrat
                  #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

                  • Login

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