Herein are configured a minimum set of files required to compile a static library of zlib on Windows, Linux/FreeBSD and macOS, for linking with Ultima Offline eXperiment 3 and utilized to access Ultima Online data files and packets. Build setups can be found in the make/ folder, but extraneous build files and folders have been removed from this configuration. For the full, official zlib project complete with compilation solutions for other platforms and third party contributions, visit https://github.com/madler/zlib
For detailed instructions on compiling and using this zlib configuration with UOX3, check out https://github.com/UOX3DevTeam/UOX3. Alternatively, follow the below instructions at your own peril:
Windows
- Open zlib.sln in the make/[VS2017/VS2022]/ folder
- Choose Release/Debug build type from dropdown menu
- Go Build -> Build zlib-static
- Open Developer Command Prompt for VS2017 or Developer Powershell for VS2022
- Traverse to the make/cmake folder, and enter the following commands:
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release