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. Hi i want to check is possible to generate cmake project for Qt Creator 4.13.2 Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) ?
Forum Updated to NodeBB v4.3 + New Features

Hi i want to check is possible to generate cmake project for Qt Creator 4.13.2 Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) ?

Scheduled Pinned Locked Moved Solved General and Desktop
18 Posts 3 Posters 959 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.
  • Q Qt embedded developer

    @Christian-Ehrlicher then what i should change ?

    Christian EhrlicherC Online
    Christian EhrlicherC Online
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #7

    Nothing - why should you?

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    1 Reply Last reply
    0
    • Q Qt embedded developer

      @Christian-Ehrlicher then what i should change ?

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

      @Qt-embedded-developer said in Hi i want to check is possible to generate cmake project for Qt Creator 4.13.2 Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) ?:

      then what i should change ?

      I don't get your question: do you have a problem or why do you want to change something? If you have a problem then please tell us what the problem is...

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

      Q 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Qt-embedded-developer said in Hi i want to check is possible to generate cmake project for Qt Creator 4.13.2 Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) ?:

        then what i should change ?

        I don't get your question: do you have a problem or why do you want to change something? If you have a problem then please tell us what the problem is...

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by Qt embedded developer
        #9

        @jsulm when i run
        cmake ..

        @Christian-Ehrlicher i get error :

        CMake Error at CMakeLists.txt:12 (find_package):
          Could not find a package configuration file provided by "QT" with any of
          the following names:
        
            Qt5Config.cmake
            qt5-config.cmake
            Qt6Config.cmake
            qt6-config.cmake
        
          Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to
          a directory containing one of the above files.  If "QT" provides a separate
          development package or SDK, be sure it has been installed.
        
        

        my line 12 is :

        find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)
        

        i have mentioned the information of qt creator related is :

        Qt Creator 4.13.2
        Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)

        my project is qmake based. now my project need to use cmake instead qmake. so when i use qmake2cmake i got above error.

        jsulmJ 1 Reply Last reply
        0
        • Q Qt embedded developer

          @jsulm when i run
          cmake ..

          @Christian-Ehrlicher i get error :

          CMake Error at CMakeLists.txt:12 (find_package):
            Could not find a package configuration file provided by "QT" with any of
            the following names:
          
              Qt5Config.cmake
              qt5-config.cmake
              Qt6Config.cmake
              qt6-config.cmake
          
            Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to
            a directory containing one of the above files.  If "QT" provides a separate
            development package or SDK, be sure it has been installed.
          
          

          my line 12 is :

          find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)
          

          i have mentioned the information of qt creator related is :

          Qt Creator 4.13.2
          Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)

          my project is qmake based. now my project need to use cmake instead qmake. so when i use qmake2cmake i got above error.

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

          @Qt-embedded-developer Did you also install Qt?

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

          Q 2 Replies Last reply
          0
          • jsulmJ jsulm

            @Qt-embedded-developer Did you also install Qt?

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by Qt embedded developer
            #11

            @jsulm yes my same project work in qmake. i have installed using offline installer.

            and i have Qt5.15.2 folder available in my home directory.

            Christian EhrlicherC 1 Reply Last reply
            0
            • Q Qt embedded developer

              @jsulm yes my same project work in qmake. i have installed using offline installer.

              and i have Qt5.15.2 folder available in my home directory.

              Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #12

              @Qt-embedded-developer And how should QtCreator know when you don't set it up in the Kit settings?

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              Q 1 Reply Last reply
              1
              • Christian EhrlicherC Christian Ehrlicher

                @Qt-embedded-developer And how should QtCreator know when you don't set it up in the Kit settings?

                Q Offline
                Q Offline
                Qt embedded developer
                wrote on last edited by Qt embedded developer
                #13

                @Christian-Ehrlicher Can you help me what i should do to convert this qmake working project into cmake base project ?

                because when i use qmake2cmake step and try to run cmake .. i get above error.

                what is reference to resolve this type of problem ?

                Christian EhrlicherC 1 Reply Last reply
                0
                • Q Qt embedded developer

                  @Christian-Ehrlicher Can you help me what i should do to convert this qmake working project into cmake base project ?

                  because when i use qmake2cmake step and try to run cmake .. i get above error.

                  what is reference to resolve this type of problem ?

                  Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  Looks like even using google is to hard nowadays... https://www.google.com/search?q=qt+creator+kit+setup

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  Q 1 Reply Last reply
                  2
                  • Christian EhrlicherC Christian Ehrlicher

                    Looks like even using google is to hard nowadays... https://www.google.com/search?q=qt+creator+kit+setup

                    Q Offline
                    Q Offline
                    Qt embedded developer
                    wrote on last edited by Qt embedded developer
                    #15

                    @Christian-Ehrlicher Can you tell me why when qt is installed though this error comes ?

                    why this line gives error ?

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Qt-embedded-developer Did you also install Qt?

                      Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by
                      #16

                      @jsulm yes i have installed the qt

                      Q 1 Reply Last reply
                      0
                      • Q Qt embedded developer

                        @jsulm yes i have installed the qt

                        Q Offline
                        Q Offline
                        Qt embedded developer
                        wrote on last edited by
                        #17

                        @Qt-embedded-developer yes its possible. but actually i don't know why qmake2cmake generated cmakefile.txt when i run at that time it gives error ?

                        Q 1 Reply Last reply
                        0
                        • Q Qt embedded developer

                          @Qt-embedded-developer yes its possible. but actually i don't know why qmake2cmake generated cmakefile.txt when i run at that time it gives error ?

                          Q Offline
                          Q Offline
                          Qt embedded developer
                          wrote on last edited by
                          #18

                          @Qt-embedded-developer THE SOLUTION IS LINK THE PATH OF QT INSTALLATION DIRECTORY USING CMAKE_PREFIX_PATH

                          1 Reply Last reply
                          0
                          • Q Qt embedded developer has marked this topic as solved on

                          • Login

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