Changes between Version 16 and Version 17 of BuildingWindowsDependencies


Ignore:
Timestamp:
Jul 11, 2020, 2:56:55 PM (4 years ago)
Author:
Itms
Comment:

Minor update for zlib/libpng

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWindowsDependencies

    v16 v17  
    183183* CMake GUI-based build:
    184184        * [http://www.libpng.org/pub/png/libpng.html Download libpng] source .zip and extract somewhere (`X:\path\to\lpng1xxx`)
    185         * Open cmake-gui (v3.8 in this example)
     185        * Open cmake-gui (v3.16 in this example)
    186186        * Set source location to the `X:\path\to\lpng1xxx`
    187187        * Set build location to `X:\path\to\lpng1xxx\build` (so the build files will be separate from the source)
    188188        * Press '''Configure'''
    189189          * Choose '''Yes''' to create the build directory if it doesn't exist
    190         * 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
     190        * Choose '''Visual Studio 14 2015''' default native compiler as generator. Set the value of '''Optional toolset to use''' to '''v140_xp''' (to use the XP compatible toolset), then Finish
    191191        * There should be an error because it can't find zlib yet
    192192        * Set `ZLIB_ROOT` to the install path of the zlib build output
     
    195195        * Press '''Generate'''
    196196        * Press '''Open project'''
    197         * Open `png` project properties, select '''Debug''' configuration. Under '''Configuration Properties > Linker > Input > Additional Dependencies''', add a "d" onto the end of the zlib1 .lib filename (so it uses the zlib debug build in this case)
    198197        * Optional DLL version info: Right-click on the `png` project, click '''Add > Existing element''' and select `lpng1xxx\scripts\pngwin.rc`
    199198        * Build solution for '''Debug''' configuration, there should be no errors. Build the INSTALL project to copy files to the install folders set up earlier
     
    346345}}}
    347346        That way, the debug DLL will be called `zlib1d.dll` and not `zlibd1.dll`. See https://github.com/madler/zlib/issues/273.
    348         * Open cmake-gui (v3.8 in this example)
     347        * Open cmake-gui (v3.16 in this example)
    349348        * Set source location to the `X:\path\to\zlib-x.x.x` folder
    350349        * Set build location to `X:\path\to\zlib-x.x.x\build` (this way the build files will be separate from the source)
    351350        * Press '''Configure'''
    352351          * Choose '''Yes''' to create the build directory if it doesn't exist
    353         * 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
     352        * Choose '''Visual Studio 14 2015''' default native compiler as generator. Set the value of '''Optional toolset to use''' to '''v140_xp''' (to use the XP compatible toolset), then Finish
    354353        * Change `CMAKE_INSTALL_PREFIX` to `X:\path\to\zlib-x.x.x\install`
    355354        * Delete all the `INSTALL_*` group entries and press Configure again. They should now all follow the path you specified during the previous step