diff --git a/doc/COMPILING/COMPILING-VS-VCPKG.md b/doc/COMPILING/COMPILING-VS-VCPKG.md index 3591143a5231c..a2a31592d409c 100644 --- a/doc/COMPILING/COMPILING-VS-VCPKG.md +++ b/doc/COMPILING/COMPILING-VS-VCPKG.md @@ -31,7 +31,7 @@ In a `cmd.exe` shell: REM cd to the appropriate folder first git clone https://github.com/Microsoft/vcpkg.git cd vcpkg -git checkout 3b57fb2e1ff55613db14d2aaf0a30529289c7050 +git pull .\bootstrap-vcpkg.bat -disableMetrics .\vcpkg integrate install ``` @@ -40,11 +40,13 @@ In a Git Bash shell, the commands are almost the same except the filesystem path # cd to the appropriate folder first git clone https://github.com/Microsoft/vcpkg.git cd vcpkg -git checkout 3b57fb2e1ff55613db14d2aaf0a30529289c7050 +git pull ./bootstrap-vcpkg.bat -disableMetrics ./vcpkg.exe integrate install ``` +If during the compilation you're getting a vcpkg error along the lines of `error: no version database entry for sdl2 at 2.26.5`, that probably means that your vcpkg install is too old. Running a `git pull` in vcpkg directory should fix the issue. + ## Cloning and compilation: 1. Clone Cataclysm-DDA repository with following command line: diff --git a/msvc-full-features/vcpkg.json b/msvc-full-features/vcpkg.json index 3da3ddb9ab313..ccec4ae0a9779 100644 --- a/msvc-full-features/vcpkg.json +++ b/msvc-full-features/vcpkg.json @@ -2,7 +2,10 @@ "name": "cdda-vcpkg-dependencies", "version-string": "0.I", "dependencies": [ - "sdl2", + { + "name": "sdl2", + "version>=": "2.26.4#0" + }, { "name": "sdl2-image", "features": [ "libjpeg-turbo" ] @@ -12,6 +15,10 @@ "features": [ "libflac", "mpg123", "libmodplug" ] }, "sdl2-ttf", - "pdcurses" - ] + { + "name": "pdcurses", + "version>=": "3.9#4" + } + ], + "builtin-baseline": "5b11232d00476c66724c81adfe5e3777a9aec38f" }