I had the same problem when building TFS 1.3 x64 and OTServBR-Global x64. Reinstalling everything have solved nothing.
My solution was to rebuild cryptopp lib.
In case if someone need some help with that.
Steps I followed to fix the problem (Using Visual Studio 2017, not tested on 2019 but probably should work):
- Clone cryptopp from weidai11/cryptopp (https://github.com/weidai11/cryptopp)
- Open cryptest.vcxproj
- In Solution Explorer on "cryptest": RMB > Properties
Configuration: Release, Platform: x64
Configuration Properties > C/C++ > Code Generation
Runtime Library has to be set to: Multi-threaded DLL (/MD)
Configuration: Debug, Platform: x64
Configuration Properties > C/C++ > Code Generation
Runtime Library has to be set to: Multi-threaded Debug DLL (/MDd)
- Build "cryptest" Debug x64 and Release x64
- Go to "cryptopp\x64\Output\Release" and "cryptopp\x64\Output\Debug" change filenames from cryptlib.lib to "cryptopp-static.lib"
- Go to "vcpkg\installed\x64-windows\lib" and replace the existing "cryptopp-static.lib" with the new built one from "cryptopp\x64\Output\Release"
- Go to "vcpkg\installed\x64-windows\debug\lib" and replace the existing "cryptopp-static.lib" with the new built one from "cryptopp\x64\Output\Debug".
- Rebuild "theforgottenserver".
I'm not sure if debug version of cryptopp is really needed but anyway it brings no harm to build it.