vs2019 -> vs2022
#1
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.
Reply
#2
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.
Reply
#3
So if you decide to use vs2022.

cmake -G "Visual Studio 17 2022" -A x64 -T v143 c:\path\to\kodi\source

142 should still work if you install that sdk.  The default is 143.
Reply

Logout Mark Read Team Forum Stats Members Help
vs2019 -> vs20220