----Using ---
Edition Windows 10 Home
Version 21H2
Installed on 21/03/2021
OS build 19044.2130
Experience Windows Feature Experience Pack 120.2212.4180.0
-- Error encounter ---
Used two different methods. 1st tried using the Visual studio community compiler (2017 & 2022), 2nd tried using the Visual studio build tools 2022 & 2.1. Visual studio build tools 2017.
1. Visual Studio community compiler - 2017 & 2022 (They both render the same error and both used practically the same Build process)
Compiled the solution and received the following error:
Spoiler
"D:\Archivos de Programa\Games\rathena\rAthena.sln" (default target) (1) ->
"D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target) (2) ->
"D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default target) (13) ->
(_CheckWindowsSDKInstalled target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsS
DK.targets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Win
dows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting
"Retarget solution". [D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
Then proceeded to change the SDK version as follows: https://stackoverflow.com/questions/68161684/control-windows-sdk-version-from-msbuild-command-line
Made sure I was using the correct Platform Toolset "v141" & that the SKD was 10.0 (I tried the following versions: 10.0.10240.0; 10.0.10586.0; 10.0.15063.0; 10.0.16299.0; 10.0.17134.0; 10.0.17763.0; 10.0.18362.0; 10.0.19041.0; 10.0.20348.0)
Also checked the location of "ryml.vcxproj", but to no avail.
Having runned out of ideas, I proceeded to try MSBUILD
2. Visual Studio Build tools (2022)
Encounter the Error while using:
D:\Archivos de Programa\Games\rathena>MSBUILD "rAthena.sln" /p:PlatformToolset=v141 /m
MSBuild version 17.3.1+2badb37d1 for .NET Framework
Build started 20/10/2022 12:53:00.
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|Win32".
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathe
na\src\common\common.vcxproj.metaproj" (2) on node 1 (default targets).
2>Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos
de Programa\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (12) on node 2 (default targets).
12>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.tlog\unsuccessfulbui
ld" because "AlwaysCreate" was specified.
2>Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos
de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (13) on node 3 (default targets).
13>C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK
.targets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Windo
ws SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "
Retarget solution". [D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
13>Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default targets)
-- FAILED.
12>ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
libconfig.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\libconfig.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.pdb" to "D:
\Archivos de Programa\Games\rathena\.vs\build\libconfig.pdb".
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathe
na\src\tool\mapcache.vcxproj.metaproj" (7) on node 1 (default targets).
7>Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (7) is building "D:\Archivos
de Programa\Games\rathena\src\common\common-minicore.vcxproj" (14) on node 4 (default targets).
14>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore.tlog\uns
uccessfulbuild" because "AlwaysCreate" was specified.
12>FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.tlog\unsuccessf
ulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.tlog\libconfig.lastb
uildstate".
12>Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (default targ
ets).
2>Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target
s) -- FAILED.
14>ClCompile:
All outputs are up-to-date.
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathe
na\src\tool\csv2yaml.vcxproj.metaproj" (8) on node 1 (default targets).
8>Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (8) is building "D:\Archivos
de Programa\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (15) on node 5 (default targets).
15>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.tlog\unsuccessfulbuild
" because "AlwaysCreate" was specified.
14>Lib:
All outputs are up-to-date.
common-minicore.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore
.pdb" to "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore.tlo
g\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore.tlog\com
mon-minicore.lastbuildstate".
14>Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common-minicore.vcxproj" (default target
s).
15>ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
yaml-cpp.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.pdb" to "D:\A
rchivos de Programa\Games\rathena\.vs\build\yaml-cpp.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.tlog\unsuccessful
build".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.tlog\yaml-cpp.lastbuil
dstate".
15>Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (default target
s).
8>Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (default target
s) -- FAILED.
7>Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (7) is building "D:\Archivos
de Programa\Games\rathena\src\tool\mapcache.vcxproj" (16) on node 1 (default targets).
16>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\Win32\Debug\mapcache.tlog\unsuccessfulbuild
" because "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
mapcache.vcxproj -> D:\Archivos de Programa\Games\rathena\mapcache.exe
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\Win32\Debug\mapcache.tlog\unsuccessful
build".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\Win32\Debug\mapcache.tlog\mapcache.lastbuil
dstate".
16>Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj" (default targets).
7>Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (default target
s).
1>Done Building Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (default targets) -- FAILED.
Build FAILED.
"D:\Archivos de Programa\Games\rathena\rAthena.sln" (default target) (1) ->
"D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target) (2) ->
"D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default target) (13) ->
(_CheckWindowsSDKInstalled target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsS
DK.targets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Win
dows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting
"Retarget solution". [D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
cd C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build
Then runned "vcvarsall.bat"
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build>vcvarsall.bat
[ERROR:vcvarsall.bat] Error in script usage. The correct usage is:
Syntax:
vcvarsall.bat [arch] [platform_type] [winsdk_version] [-vcvars_ver=vc_version] [-vcvars_spectre_libs=spectre_mode]
where :
[arch]: x86 | amd64 | x86_amd64 | x86_arm | x86_arm64 | amd64_x86 | amd64_arm | amd64_arm64
[platform_type]: {empty} | store | uwp
[winsdk_version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK.
[vc_version] : {none} for default VS 2017 VC++ compiler toolset |
"14.0" for VC++ 2015 Compiler Toolset |
"14.1x" for the latest 14.1x.yyyyy toolset installed (e.g. "14.11") |
"14.1x.yyyyy" for a specific full version number (e.g. 14.11.25503)
[spectre_mode] : {none} for default VS 2017 libraries without spectre mitigations |
"spectre" for VS 2017 libraries with spectre mitigations
The store parameter sets environment variables to support Universal Windows Platform application
development and is an alias for 'uwp'.
For example:
vcvarsall.bat x86_amd64
vcvarsall.bat x86_amd64 10.0.10240.0
vcvarsall.bat x86_arm uwp 10.0.10240.0
vcvarsall.bat x86_arm onecore 10.0.10240.0 -vcvars_ver=14.0
vcvarsall.bat x64 8.1
vcvarsall.bat x64 store 8.1
Please make sure either Visual Studio or C++ Build SKU is installed.
From what I understood I'd need to specify the arch & winsdk_version: (Note: I've tried running the following SDK versions > 10.0.10240.0; 10.0.10586.0; 10.0.15063.0; 10.0.16299.0; 10.0.17134.0; 10.0.17763.0; 10.0.18362.0; 10.0.19041.0; 10.0.20348.0)
In case it is relevant. I not only tried installing a version at a time, but also restarted the computer in once changed the SDK. Finally, out of desesperation, I installed all the mentioned SDKs and tried running each one of them with "vcvarsall.bat", one by one as follows.
Also tried using all the SDKs using: x86 & x86_amd64
Lastly, and like mentioned in StackOverflow's solution. I runned: > set UseEnv=true (also tried the whole process using "True")
Then went directly to the rAthena folder:
D:\Archivos de Programa\Games\rathena>MSBUILD "rAthena.sln" /p:PlatformToolset=v141
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 20/10/2022 13:38:41.
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x64".
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathena\src\
common\common.vcxproj.metaproj" (2) on node 1 (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos de Prog
rama\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.tlog\unsuccessfulbuild" becau
se "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
libconfig.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\libconfig.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.pdb" to "D:\Archivos
de Programa\Games\rathena\.vs\build\libconfig.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.tlog\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.tlog\libconfig.lastbuildstate
".
Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos de Prog
rama\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (4) on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.target
s(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Windows SDK or chan
ge the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [
D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default targets) -- FAIL
ED.
Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default targets) -- F
AILED.
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathena\src\
tool\mapcache.vcxproj.metaproj" (9) on node 1 (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (9) is building "D:\Archivos de Prog
rama\Games\rathena\src\common\common-minicore.vcxproj" (10) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.tlog\unsuccessful
build" because "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
common-minicore.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.pdb" to
"D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.tlog\unsucce
ssfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.tlog\common-minic
ore.lastbuildstate".
Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common-minicore.vcxproj" (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (9) is building "D:\Archivos de Prog
rama\Games\rathena\src\tool\mapcache.vcxproj" (11) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\x64\Debug\mapcache.tlog\unsuccessfulbuild" because
"AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
mapcache.vcxproj -> D:\Archivos de Programa\Games\rathena\mapcache.exe
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\x64\Debug\mapcache.tlog\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\x64\Debug\mapcache.tlog\mapcache.lastbuildstate".
Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj" (default targets).
Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (default targets).
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathena\src\
tool\csv2yaml.vcxproj.metaproj" (12) on node 1 (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (12) is building "D:\Archivos de Pro
grama\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (13) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.tlog\unsuccessfulbuild" because
"AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
yaml-cpp.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.pdb" to "D:\Archivos d
e Programa\Games\rathena\.vs\build\yaml-cpp.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.tlog\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.tlog\yaml-cpp.lastbuildstate".
Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (default targets).
Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (default targets) -- F
AILED.
Done Building Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (default targets) -- FAILED.
Build FAILED.
"D:\Archivos de Programa\Games\rathena\rAthena.sln" (default target) (1) ->
"D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target) (2) ->
"D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default target) (4) ->
(_CheckWindowsSDKInstalled target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.targ
ets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Windows SDK or ch
ange the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
[D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.42
Looking to hear possible solutions! Thank you for taking your time upon reading my problem.
Question
shohen
----Using ---
Edition Windows 10 Home
Version 21H2
Installed on 21/03/2021
OS build 19044.2130
Experience Windows Feature Experience Pack 120.2212.4180.0
Downloaded rathena from: https://github.com/rathena/rathena
Downloaded and followed the install instructions for Windows: https://github.com/rathena/rathena/wiki/Install-on-Windows and additionally, followed this guide by @annacondaqq.
-- Error encounter ---
Used two different methods. 1st tried using the Visual studio community compiler (2017 & 2022), 2nd tried using the Visual studio build tools 2022 & 2.1. Visual studio build tools 2017.
1. Visual Studio community compiler - 2017 & 2022 (They both render the same error and both used practically the same Build process)
Compiled the solution and received the following error:
"D:\Archivos de Programa\Games\rathena\rAthena.sln" (default target) (1) ->
"D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target) (2) ->
"D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default target) (13) ->
(_CheckWindowsSDKInstalled target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsS
DK.targets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Win
dows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting
"Retarget solution". [D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
Then proceeded to change the SDK version as follows: https://stackoverflow.com/questions/68161684/control-windows-sdk-version-from-msbuild-command-line
Made sure I was using the correct Platform Toolset "v141" & that the SKD was 10.0 (I tried the following versions: 10.0.10240.0; 10.0.10586.0; 10.0.15063.0; 10.0.16299.0; 10.0.17134.0; 10.0.17763.0; 10.0.18362.0; 10.0.19041.0; 10.0.20348.0)
Also checked the location of "ryml.vcxproj", but to no avail.
Having runned out of ideas, I proceeded to try MSBUILD
2. Visual Studio Build tools (2022)
Encounter the Error while using:
Result:
D:\Archivos de Programa\Games\rathena>MSBUILD "rAthena.sln" /p:PlatformToolset=v141 /m
MSBuild version 17.3.1+2badb37d1 for .NET Framework
Build started 20/10/2022 12:53:00.
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|Win32".
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathe
na\src\common\common.vcxproj.metaproj" (2) on node 1 (default targets).
2>Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos
de Programa\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (12) on node 2 (default targets).
12>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.tlog\unsuccessfulbui
ld" because "AlwaysCreate" was specified.
2>Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos
de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (13) on node 3 (default targets).
13>C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK
.targets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Windo
ws SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "
Retarget solution". [D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
13>Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default targets)
-- FAILED.
12>ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
libconfig.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\libconfig.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.pdb" to "D:
\Archivos de Programa\Games\rathena\.vs\build\libconfig.pdb".
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathe
na\src\tool\mapcache.vcxproj.metaproj" (7) on node 1 (default targets).
7>Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (7) is building "D:\Archivos
de Programa\Games\rathena\src\common\common-minicore.vcxproj" (14) on node 4 (default targets).
14>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore.tlog\uns
uccessfulbuild" because "AlwaysCreate" was specified.
12>FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.tlog\unsuccessf
ulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\Win32\Debug\libconfig.tlog\libconfig.lastb
uildstate".
12>Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (default targ
ets).
2>Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target
s) -- FAILED.
14>ClCompile:
All outputs are up-to-date.
1>Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathe
na\src\tool\csv2yaml.vcxproj.metaproj" (8) on node 1 (default targets).
8>Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (8) is building "D:\Archivos
de Programa\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (15) on node 5 (default targets).
15>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.tlog\unsuccessfulbuild
" because "AlwaysCreate" was specified.
14>Lib:
All outputs are up-to-date.
common-minicore.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore
.pdb" to "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore.tlo
g\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\Win32\Debug\common-minicore.tlog\com
mon-minicore.lastbuildstate".
14>Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common-minicore.vcxproj" (default target
s).
15>ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
yaml-cpp.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.pdb" to "D:\A
rchivos de Programa\Games\rathena\.vs\build\yaml-cpp.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.tlog\unsuccessful
build".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\Win32\Debug\yaml-cpp.tlog\yaml-cpp.lastbuil
dstate".
15>Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (default target
s).
8>Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (default target
s) -- FAILED.
7>Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (7) is building "D:\Archivos
de Programa\Games\rathena\src\tool\mapcache.vcxproj" (16) on node 1 (default targets).
16>InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\Win32\Debug\mapcache.tlog\unsuccessfulbuild
" because "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
mapcache.vcxproj -> D:\Archivos de Programa\Games\rathena\mapcache.exe
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\Win32\Debug\mapcache.tlog\unsuccessful
build".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\Win32\Debug\mapcache.tlog\mapcache.lastbuil
dstate".
16>Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj" (default targets).
7>Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (default target
s).
1>Done Building Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (default targets) -- FAILED.
Build FAILED.
"D:\Archivos de Programa\Games\rathena\rAthena.sln" (default target) (1) ->
"D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target) (2) ->
"D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default target) (13) ->
(_CheckWindowsSDKInstalled target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsS
DK.targets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Win
dows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting
"Retarget solution". [D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:04.10
2.1 Visual Studio Build tools (2017)
First I tried the same procedure, but encountered the same result. Therefore, I googled and found different solutions that did not work. This are the following solution links that I found relevant:
1. Wanted to make sure that the SKD/s where properly installed, therefore I checked this link: https://stackoverflow.com/questions/50590700/how-do-i-install-windows-10-sdk-for-use-with-visual-studio-2017
2. Checked why the SKD 10.0 was not found: https://stackoverflow.com/questions/68720536/msbuild-the-windows-sdk-version-10-0-19041-0-was-not-found-even-though-its-in and tried the suggested solution by running "vcvarsall.bat"
3. Then tried modifying the "UAP.props" file like mentioned in: https://developercommunity.visualstudio.com/t/msb8036-the-windows-sdk-version-100183620-was-not/761788#T-N896486
None worked. However I can show the 2nd process on how I did it, that seemed to get me closer to the solution:
Runned BuildTools-2017:
cd C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build
Then runned "vcvarsall.bat"
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build>vcvarsall.bat [ERROR:vcvarsall.bat] Error in script usage. The correct usage is: Syntax: vcvarsall.bat [arch] [platform_type] [winsdk_version] [-vcvars_ver=vc_version] [-vcvars_spectre_libs=spectre_mode] where : [arch]: x86 | amd64 | x86_amd64 | x86_arm | x86_arm64 | amd64_x86 | amd64_arm | amd64_arm64 [platform_type]: {empty} | store | uwp [winsdk_version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK. [vc_version] : {none} for default VS 2017 VC++ compiler toolset | "14.0" for VC++ 2015 Compiler Toolset | "14.1x" for the latest 14.1x.yyyyy toolset installed (e.g. "14.11") | "14.1x.yyyyy" for a specific full version number (e.g. 14.11.25503) [spectre_mode] : {none} for default VS 2017 libraries without spectre mitigations | "spectre" for VS 2017 libraries with spectre mitigations The store parameter sets environment variables to support Universal Windows Platform application development and is an alias for 'uwp'. For example: vcvarsall.bat x86_amd64 vcvarsall.bat x86_amd64 10.0.10240.0 vcvarsall.bat x86_arm uwp 10.0.10240.0 vcvarsall.bat x86_arm onecore 10.0.10240.0 -vcvars_ver=14.0 vcvarsall.bat x64 8.1 vcvarsall.bat x64 store 8.1 Please make sure either Visual Studio or C++ Build SKU is installed.
From what I understood I'd need to specify the arch & winsdk_version: (Note: I've tried running the following SDK versions > 10.0.10240.0; 10.0.10586.0; 10.0.15063.0; 10.0.16299.0; 10.0.17134.0; 10.0.17763.0; 10.0.18362.0; 10.0.19041.0; 10.0.20348.0)
In case it is relevant. I not only tried installing a version at a time, but also restarted the computer in once changed the SDK. Finally, out of desesperation, I installed all the mentioned SDKs and tried running each one of them with "vcvarsall.bat", one by one as follows.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build>vcvarsall.bat x64 10.0.10240.0 ********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.0 ** Copyright (c) 2017 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64'
Also tried using all the SDKs using: x86 & x86_amd64
Lastly, and like mentioned in StackOverflow's solution. I runned: > set UseEnv=true (also tried the whole process using "True")
Then went directly to the rAthena folder:
cd D:\Archivos de Programa\Games\rathena
Following MSBUILD:
Result:
D:\Archivos de Programa\Games\rathena>MSBUILD "rAthena.sln" /p:PlatformToolset=v141
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 20/10/2022 13:38:41.
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x64".
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathena\src\
common\common.vcxproj.metaproj" (2) on node 1 (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos de Prog
rama\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.tlog\unsuccessfulbuild" becau
se "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
libconfig.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\libconfig.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.pdb" to "D:\Archivos
de Programa\Games\rathena\.vs\build\libconfig.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.tlog\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\libconfig\x64\Debug\libconfig.tlog\libconfig.lastbuildstate
".
Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\libconfig\libconfig.vcxproj" (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (2) is building "D:\Archivos de Prog
rama\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (4) on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.target
s(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Windows SDK or chan
ge the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [
D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default targets) -- FAIL
ED.
Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default targets) -- F
AILED.
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathena\src\
tool\mapcache.vcxproj.metaproj" (9) on node 1 (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (9) is building "D:\Archivos de Prog
rama\Games\rathena\src\common\common-minicore.vcxproj" (10) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.tlog\unsuccessful
build" because "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
common-minicore.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.pdb" to
"D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.tlog\unsucce
ssfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\common-minicore\x64\Debug\common-minicore.tlog\common-minic
ore.lastbuildstate".
Done Building Project "D:\Archivos de Programa\Games\rathena\src\common\common-minicore.vcxproj" (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (9) is building "D:\Archivos de Prog
rama\Games\rathena\src\tool\mapcache.vcxproj" (11) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\x64\Debug\mapcache.tlog\unsuccessfulbuild" because
"AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
mapcache.vcxproj -> D:\Archivos de Programa\Games\rathena\mapcache.exe
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\x64\Debug\mapcache.tlog\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\mapcache\x64\Debug\mapcache.tlog\mapcache.lastbuildstate".
Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj" (default targets).
Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\mapcache.vcxproj.metaproj" (default targets).
Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (1) is building "D:\Archivos de Programa\Games\rathena\src\
tool\csv2yaml.vcxproj.metaproj" (12) on node 1 (default targets).
Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (12) is building "D:\Archivos de Pro
grama\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (13) on node 1 (default targets).
InitializeBuildStatus:
Creating "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.tlog\unsuccessfulbuild" because
"AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
yaml-cpp.vcxproj -> D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp.lib
CopyFilesToOutputDirectory:
Copying file from "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.pdb" to "D:\Archivos d
e Programa\Games\rathena\.vs\build\yaml-cpp.pdb".
FinalizeBuildStatus:
Deleting file "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.tlog\unsuccessfulbuild".
Touching "D:\Archivos de Programa\Games\rathena\.vs\build\yaml-cpp\x64\Debug\yaml-cpp.tlog\yaml-cpp.lastbuildstate".
Done Building Project "D:\Archivos de Programa\Games\rathena\3rdparty\yaml-cpp\yaml-cpp.vcxproj" (default targets).
Done Building Project "D:\Archivos de Programa\Games\rathena\src\tool\csv2yaml.vcxproj.metaproj" (default targets) -- F
AILED.
Done Building Project "D:\Archivos de Programa\Games\rathena\rAthena.sln" (default targets) -- FAILED.
Build FAILED.
"D:\Archivos de Programa\Games\rathena\rAthena.sln" (default target) (1) ->
"D:\Archivos de Programa\Games\rathena\src\common\common.vcxproj.metaproj" (default target) (2) ->
"D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj" (default target) (4) ->
(_CheckWindowsSDKInstalled target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.targ
ets(46,5): error MSB8036: The Windows SDK version 10.0 was not found. Install the required version of Windows SDK or ch
ange the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
[D:\Archivos de Programa\Games\rathena\3rdparty\rapidyaml\ryml.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.42
Looking to hear possible solutions! Thank you for taking your time upon reading my problem.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.