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) ?
-
Hi i want to generate the cmake project for the qt creator
Qt Creator 4.13.2
Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)is it possible ?
If yes then what should replace into below line
find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)
-
@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 ?
@Qt-embedded-developer THE SOLUTION IS LINK THE PATH OF QT INSTALLATION DIRECTORY USING CMAKE_PREFIX_PATH
-
Hi i want to generate the cmake project for the qt creator
Qt Creator 4.13.2
Based on Qt 5.15.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)is it possible ?
If yes then what should replace into below line
find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)
@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) ?:
If yes then what should replace into below line
This has nothing to do with QtCreator. Or do you want to implement a QtCreator plug-in?
-
@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) ?:
If yes then what should replace into below line
This has nothing to do with QtCreator. Or do you want to implement a QtCreator plug-in?
@jsulm I think qt creator started to support cmake instead qmake. they prefare the cmake.
So i want to know it .
-
@jsulm I think qt creator started to support cmake instead qmake. they prefare the cmake.
So i want to know it .
QtCreator supports CMake since ages.
-
QtCreator supports CMake since ages.
@Christian-Ehrlicher then what i should change ?
-
@jsulm I think qt creator started to support cmake instead qmake. they prefare the cmake.
So i want to know it .
@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) ?:
So i want to know it
Know what?
As @Christian-Ehrlicher wrote: QtCreator supports CMake, so just use it.
Regarding "find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)" - why do you want to replace something there? -
@Christian-Ehrlicher then what i should change ?
Nothing - why should you?
-
@Christian-Ehrlicher then what i should change ?
@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...
-
@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...
@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.
-
@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.
@Qt-embedded-developer Did you also install Qt?
-
@Qt-embedded-developer Did you also install Qt?
@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.
-
@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.
@Qt-embedded-developer And how should QtCreator know when you don't set it up in the Kit settings?
-
@Qt-embedded-developer And how should QtCreator know when you don't set it up in the Kit settings?
@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-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 ?
Looks like even using google is to hard nowadays... https://www.google.com/search?q=qt+creator+kit+setup
-
Looks like even using google is to hard nowadays... https://www.google.com/search?q=qt+creator+kit+setup
@Christian-Ehrlicher Can you tell me why when qt is installed though this error comes ?
why this line gives error ?
-
@Qt-embedded-developer Did you also install Qt?
@jsulm yes i have installed the qt
-
@jsulm yes i have installed the qt
@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 ?
-
@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 ?
@Qt-embedded-developer THE SOLUTION IS LINK THE PATH OF QT INSTALLATION DIRECTORY USING CMAKE_PREFIX_PATH
-