2019-07-27, 02:26
So you decided to install vs2019 and blow away vs2015 or vs2017. Well now you have quite the pickle trying to create the sln file for kodi.
You follow the build steps and get to the step to create the sln file
cmake -G "Visual Studio 15 Win64" -T host=x64 %userprofile%\kodi
You get this nice error.
CMake Error at CMakeLists.txt:2 (project):
Generator
Visual Studio 15 2017 Win64
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/users/youruser/kodi/kodi-build/CMakeFiles/CMakeOutput.log".
Well that is not cool....
So I changed that step to this.
cmake -G "Visual Studio 16 2019" -A x64 -T v141 %userprofile%\kodi
If you are using BuildSetup.bat that will be broke as well until vswhere.bat has some corrections.
If you skip the '-T v141' part it will use v142 to build with. It does seem to build at least.
You follow the build steps and get to the step to create the sln file
cmake -G "Visual Studio 15 Win64" -T host=x64 %userprofile%\kodi
You get this nice error.
CMake Error at CMakeLists.txt:2 (project):
Generator
Visual Studio 15 2017 Win64
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/users/youruser/kodi/kodi-build/CMakeFiles/CMakeOutput.log".
Well that is not cool....
So I changed that step to this.
cmake -G "Visual Studio 16 2019" -A x64 -T v141 %userprofile%\kodi
If you are using BuildSetup.bat that will be broke as well until vswhere.bat has some corrections.
If you skip the '-T v141' part it will use v142 to build with. It does seem to build at least.