xstudio icon indicating copy to clipboard operation
xstudio copied to clipboard

Error building on Windows Qt and Cmake vcpkg

Open jonbragado opened this issue 1 year ago • 2 comments

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 avatar Jun 25 '24 18:06 jonbragado

Can anyone help on this issue please?

jonbragado avatar Jul 22 '24 22:07 jonbragado

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.

mpkepic avatar Aug 08 '24 13:08 mpkepic