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. How to have the most updated QT libraries?

How to have the most updated QT libraries?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 899 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    lucaszanella
    wrote on last edited by
    #1

    I'm trying to compile a big project that uses QT through cmake. The problem is that the compilation fails because QInterface class does not have some properties, because it's old in my system. I installed the latest qt creator with everything included, but the problem persists.

    So how can I have the newest qt libraries in my system and use them on qt? I believe I have them on installation but they're not being used by cmake

    jsulmJ 1 Reply Last reply
    0
    • L lucaszanella

      I'm trying to compile a big project that uses QT through cmake. The problem is that the compilation fails because QInterface class does not have some properties, because it's old in my system. I installed the latest qt creator with everything included, but the problem persists.

      So how can I have the newest qt libraries in my system and use them on qt? I believe I have them on installation but they're not being used by cmake

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @lucaszanella Use Qt Online Installer to install and update Qt.
      If you already have latest Qt then check whether you're actually using it - you need to select the Kit for that Qt version in QtCreator when you're loading your project.

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

      1 Reply Last reply
      2
      • L Offline
        L Offline
        lucaszanella
        wrote on last edited by
        #3

        the problem is that the project doesn't use qt creator, only cmake, so I don't know how to make cmake load these new libs. Yes, I used the installer

        J.HilkJ aha_1980A jsulmJ 3 Replies Last reply
        0
        • L lucaszanella

          the problem is that the project doesn't use qt creator, only cmake, so I don't know how to make cmake load these new libs. Yes, I used the installer

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          Hi @lucaszanella

          make sure you actually have the latest Qt-libs, because QtCreator != QtLibary and if you really installed with everything included that would, depending on the system, include up to 100Gb of memory.

          One usually only installs the precompiled libs for the compiler one uses. Or downloads the sources and compiles the QtLib for any compilers not included in the downloader


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          2
          • L lucaszanella

            the problem is that the project doesn't use qt creator, only cmake, so I don't know how to make cmake load these new libs. Yes, I used the installer

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @lucaszanella you can open and build CMake projects from Qt Creator...

            Qt has to stay free or it will die.

            1 Reply Last reply
            2
            • L lucaszanella

              the problem is that the project doesn't use qt creator, only cmake, so I don't know how to make cmake load these new libs. Yes, I used the installer

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake

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

              L SGaistS 3 Replies Last reply
              1
              • jsulmJ jsulm

                @lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake

                L Offline
                L Offline
                lucaszanella
                wrote on last edited by
                #7

                @jsulm said in How to have the most updated QT libraries?:

                -DCMAKE_PREFIX_PATH=

                shouldn't I also pass the include folder? Because the error still happens

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake

                  L Offline
                  L Offline
                  lucaszanella
                  wrote on last edited by
                  #8

                  @jsulm said in How to have the most updated QT libraries?:

                  DCMAKE_PREFIX_PATH

                  I did make VERBOSE=1 to see which paths were being used and the path I passed isn't

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @jsulm said in How to have the most updated QT libraries?:

                    @lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake

                    Hi,

                    The correct call is

                    cmake -D CMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake /path/to/your_project
                    

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    2

                    • Login

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