Changes between Version 4 and Version 5 of BuildingWindowsDependencies


Ignore:
Timestamp:
Jul 4, 2017, 11:21:12 PM (7 years ago)
Author:
Itms
Comment:

zlib instructions

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWindowsDependencies

    v4 v5  
    252252* CMake GUI-based build:
    253253        * [http://www.zlib.net/ Download zlib source] .zip and extract somewhere (`X:\path\to\zlib-x.x.x`)
    254         * Open cmake-gui (v3.2 in this example)
     254        * Open cmake-gui (v3.8 in this example)
    255255        * Set source location to the `X:\path\to\zlib-x.x.x` folder
    256256        * Set build location to `X:\path\to\zlib-x.x.x\build` (this way the build files will be separate from the source)
    257257        * Press '''Configure'''
    258258          * Choose '''Yes''' to create the build directory if it doesn't exist
    259         * Choose '''Visual Studio 12 2013''' default native compiler as generator, then Finish
    260         * Add Entry, `CMAKE_GENERATOR_TOOLSET` as a String, and set the value to '''v120_xp''' (to use the XP compatible toolset)
     259        * Choose '''Visual Studio 12 2013''' default native compiler as generator. Set the value of '''Optional toolset to use''' to '''v120_xp''' (to use the XP compatible toolset), then Finish
    261260        * Change `CMAKE_INSTALL_PREFIX` to `X:\path\to\zlib-x.x.x\install`
    262         * Change `INSTALL_*` group entries to `X:\path\to\zlib-x.x.x\install\*`
     261        * Delete all the `INSTALL_*` group entries and press Configure again. They should now all follow the path you specified during the previous step
     262        * Add a new `BUILD_SHARED_LIBS` entry and set its value to `TRUE`
    263263        * Press '''Configure''' until there are no errors or red entries
    264264        * Press '''Generate'''
    265         * In `zlib-x.x.x\build`, there should be a `zlib.sln` solution you can open in Visual Studio 2013. Open it
     265        * Press '''Open project'''
    266266        * Build solution for '''Debug''' configuration, there should be no errors
    267267          * Build the '''INSTALL''' project by right-clicking on it (to copy files to the install folders set up earlier)
    268268        * Repeat for '''Release''' configuration
    269269        * `zlib-x.x.x\install` should contain all the newly built libs
     270        * Rename the static libs to add the `1` to the file names.