Pre-made Visual Studio projects are no longer provided. Instead, use cmake-gui to generate a Visual Studio solution on demand.
Follow these steps:
- Launch
cmake-gui. - Set
source-dir to the zlib source directory. - Set
build-dir to your desired build directory. - Click Configure. Select your Visual Studio version and platform details.
- Review the available options and descriptions that appear after the configuration run.
- Select the desired options.
- Click Configure again to ensure all dependencies are located. If any dependencies are missing (e.g.,
bzip2 for minizip), either install the dependency or deactivate the corresponding option. Repeat until no errors (red text) remain. - Click Generate.
- Click Open Project to launch Visual Studio.
Once Visual Studio is open, use Build > Build solution to compile the library.
1. Start cmake-gui.
2. Point source-dir to the source.
3. Point build-dir to the dir where you want to build.
4. Hit configure -- there you can select details.
5. Select the options you want, which are shown with descriptions after the
configure run is complete.
6. Hit configure again to assure that everything that is needed is found.
7. For those not found, deactivate the option or install the dependency, e.g.
bzip2 for minizip, and go back to step 6 until there is no red.
8. Hit generate.
9. Hit open project.