zlibを Windows ビルドする

zlibダウンロードビルド

git clone https://github.com/madler/zlib
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022" -A x64 -T host=x64 ^
msbuild /P:Configuration=Release  ALL_BUILD.vcxproj

ビルド先

"D:\WinPython\content\zlib\build\Release\zlib.dll"

C++,windows

Posted by eightban