Generate the binary by following the steps below, and copy it to the External/zstd/lib
folder depending on the platform.
-
Install the following Visual Studio 2017 components:
- Windows SDK 8.1
- Windows Universal CRT SDK
-
Download zstd v1.5.2 and extract to a folder.
-
Go to where zstd was extracted and execute the following:
$ cd build\VS2010
$ devenv zstd.sln /upgrade
$ msbuild zstd.sln /p:Configuration=Release /p:Platform=x64
- Install Homebrew
- Install zstd via Homebrew and confirm that its version is 1.5.2.
$ brew install zstd $ zstd --version
libzstd.a
will be installed under /opt/homebrew/Cellar/zstd/1.5.2/lib
folder by default.
- Download zstd v1.5.2 and extract to a folder.
- Go to where zstd was extracted and execute the following:
$ cd build/cmake
$ cmake . -DCMAKE_POSITION_INDEPENDENT_CODE=ON && cmake --build .
libzstd.a
will be generated under build/cmake/lib
folder