AcademySoftwareFoundation / AcademySoftwareFoundation/xstudio
Error building on Windows Qt and Cmake vcpkg
- Dominant language
- C++
- Stars
- 769
- Forks
- 129
- Avg merge
- 9d 1m
- Merged PRs (30d)
- 10
Description
```
CMake Error at build/vcpkg/scripts/buildsystems/vcpkg.cmake:857 (_find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed. C:\xstudio-windows\build/vcpkg/scripts/buildsystems/vcpkg.cmake 857
```
I have tried to find by reading online documentation how to pass that module and where to put it. In the CMakePresets.json file i have put the path to the Qt5_DIR thinking it would be enough.
0- Where should I put the file or whatever this thing is asking? I'd appreciate precise instructions, as I am not a coder.
1- Does it have to be built with Qt5? Seems the download for that version is not available anymore.
2- I installed Qt6 with Qt5 compatibility. Would this be enough? If not where would you find the installer it only allows version 6.
Thanks,
Contributor guide
Research direction
Start with CMakePresets.json and the reported build/vcpkg/scripts/buildsystems/vcpkg.cmake location at line 857. Reproduce the Windows configure step, check whether Qt5Config.cmake or qt5-config.cmake is available, and compare the installed Qt version with the project's requirements. Done means the configure/build no longer fails while looking for Qt5.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100