Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building on Windows Qt and Cmake vcpkg #108

Open
jonbragado opened this issue Jun 25, 2024 · 2 comments
Open

Error building on Windows Qt and Cmake vcpkg #108

jonbragado opened this issue Jun 25, 2024 · 2 comments

Comments

@jonbragado
Copy link

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,

@jonbragado
Copy link
Author

Can anyone help on this issue please?

@mpkepic
Copy link
Contributor

mpkepic commented Aug 8, 2024

The download for Qt is still available, you just need to enable the archived versions in the installer, go back through the installer and check the filters on the installer and make sure to have it refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants