Is it possible to use the “Open with Visual Studio” option on GitHub to successfully compile SC? If so, what am I doing wrong?
I would like to compile the SC code and make a build of SC with the hope of eventually contributing to
SC. On the GitHub SC repo, I noticed that under the code button there is an “Open with Visual Studio” option. I chose this option and was able to get to a point where cmake would give me this error:
Severity Code Description Project File Line Suppression State
Error CMake Error at QtCollider/CMakeLists.txt:30 (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" (requested
version 5.7) 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:\Users\pedro\Source\Repos\supercollider\QtCollider/CMakeLists.txt 30
I see that the instructions in README_WINDOWS.md require Qt >= 5.7
The Qt installer offers 5.9.9, but there is no MSVC 2019 option, only earlier and they did not seem to work.
I saw another post on here which said that Qt 5.15 works, but that post is a year old.
I went with Qt 5.15.2 and MSVC 2019 64-bit.
I then added the following set() commands in the offending CMakeLists.txt file, which did not change the error message.
find_package(Qt5 ${REQUIRED_QT_VERSION} COMPONENTS ${QT_COMPONENTS} REQUIRED)
set(Qt5_DIR C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5)
set(CMAKE_PREFIX_PATH Qt5)
(I tried each set command individually and put them under the above find_packages line.)