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):

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.
So I fiddled around with v141 vs v142 builds.

So if someone could try it and verify my results.

The v142 build took me about 9 mins 30 seconds for a full debug build.
The v141 build took me about 13 mins 30 seconds for a full debug build.
Thread Rating:
  • 0 Vote(s) - 0 Average

Logout Mark Read Team Forum Stats Members Help