![]() ![]() Reason given by package:ġ> Target "Qt6::Core" was not found.ġ> Call Stack (most recent call first):ġ> D:/Qt/6.3.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake:213 (find_package)ġ> D:/vcpkg/scripts/buildsystems/vcpkg.cmake:816 (_find_package)ġ> CMakeLists.txt:16 (find_package)ġ> - Could NOT find Qt6WidgetsTools (missing: Qt6WidgetsTools_DIR)ġ> D:/Qt/6.3.0/msvc2019_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmakeġ> but it set Qt6Widgets_FOUND to FALSE so package "Qt6Widgets" is consideredġ> to be NOT FOUND. 1> - Could NOT find Qt6CoreTools (missing: Qt6CoreTools_DIR)ġ> CMake Warning at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:816 (_find_package):ġ> Found package configuration file:ġ> D:/Qt/6.3.0/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreConfig.cmakeġ> but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to beġ> NOT FOUND. Note that I am using vcpkg for other dependencies, but I don't have any Qt version installed in vcpkg. But it spits out the following lengthy error. I wasn't sure which path to exactly set it to, but from what I could gather, this should be the correct one. Now I don't want to mess with my CMAKE_PREFIX_PATH, so I follow the suggestion and do: set(Qt6_DIR "D:/Qt/6.3.0/msvc2019_64/lib/cmake/Qt6"). If "Qt6" provides aġ> separate development package or SDK, be sure it has been installed. ![]() When I do find_package(Qt6 REQUIRED COMPONENTS Core Widgets), I get the following error (sort of expectedly): 1> CMake Error at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:816 (_find_package):ġ> By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project hasġ> asked CMake to find a package configuration file provided by "Qt6", butġ> Could not find a package configuration file provided by "Qt6" with any ofġ> Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"ġ> to a directory containing one of the above files. I've installed Qt from the official Qt installer ( MaintenanceTool.exe). Also, explicitly set the resulting CMake cache variable C_CHAR_UNSIGNED according to the results on the native 64 bit host.I'm using Qt 6.3 and CMake 3.22. Possible workaround: run those configure tests on a 64 bit Windows host and copy the file "config/include/dcmtk/config/arith.h" into your build directory. Normally (if I remember my implementation correctly) CMake should warn about that instead of the cryptic warning you got, but that is (I presume) because you did not tell CMake that it is cross-compiling. I presume that CMake cannot run those executables because they are 64 bit and cannot be launched on your 32 bit OS. Regarding the actual problem: there are two configuration tests that require running an executable to detect some runtime specific behavior: Did you use a CMake Toolchain file, or specify the compilers manually, that is: does CMake know you are cross-compiling? You are indeed cross-compiling, but not between entirely different systems (Linux -> Windows) but instead (Windows 32bit -> Windows 64bit) It took me a minute to understand what you are doing, so let me first confirm my current assumptions:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |