building QGC with cmake and Qt creator
-
CMake Error at CMakeLists.txt:80 (find_package):
Could not find a package configuration file provided by "Qt6" (requested version 6.6.2) with any of the following names:Qt6Config.cmake qt6-config.cmakeAdd the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR" to a directory containing one of the above files. If "Qt6" provides a separate development package or SDK, be sure it has been installed.
This is the error im getting while i try to configure in cmake. i did try few solutions but isnt working. please help me solve this error it would be really greatful. -
CMake Error at CMakeLists.txt:80 (find_package):
Could not find a package configuration file provided by "Qt6" (requested version 6.6.2) with any of the following names:Qt6Config.cmake qt6-config.cmakeAdd the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR" to a directory containing one of the above files. If "Qt6" provides a separate development package or SDK, be sure it has been installed.
This is the error im getting while i try to configure in cmake. i did try few solutions but isnt working. please help me solve this error it would be really greatful. -
@RUXX Please provide more information.
On which platform are you?
How did you install Qt?
How do you execute CMake (inclusively parameters)?@jsulm hey jsulm thank you for replying.
im working on windows 64bit and i have installed Qt-unified-windowsx64-4.6.1 version from Qt online installer.i actually did not get the last question can u tell me more on how do you excecute cmake i.e inclusively parameters.
-
@jsulm hey jsulm thank you for replying.
im working on windows 64bit and i have installed Qt-unified-windowsx64-4.6.1 version from Qt online installer.i actually did not get the last question can u tell me more on how do you excecute cmake i.e inclusively parameters.
@RUXX said in building QGC with cmake and Qt creator:
Qt-unified-windowsx64-4.6.1
This is not Qt version, this is the version of the Qt installer.
"i actually did not get the last question" - well, you're executing CMake (you even wrote: "This is the error im getting while i try to configure in cmake"). Either directly on command line or in QtCreator - you did not say anything about that. So, how are you trying to build that project please?
-
@RUXX said in building QGC with cmake and Qt creator:
Qt-unified-windowsx64-4.6.1
This is not Qt version, this is the version of the Qt installer.
"i actually did not get the last question" - well, you're executing CMake (you even wrote: "This is the error im getting while i try to configure in cmake"). Either directly on command line or in QtCreator - you did not say anything about that. So, how are you trying to build that project please?
-
@jsulm ohh okay i got you. Qt 6.6.2 is the version i have installed and about the cmake i was directly trying to configure in cmake gui application and not on command line or Qt creator.
-
@RUXX If you're on Windows you should use the Qt preconfigured terminal (cmd.exe) which you can find in the Windows start menu.