Changes between Version 16 and Version 17 of BuildingWindowsDependencies
- Timestamp:
- Jul 11, 2020, 2:56:55 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingWindowsDependencies
v16 v17 183 183 * CMake GUI-based build: 184 184 * [http://www.libpng.org/pub/png/libpng.html Download libpng] source .zip and extract somewhere (`X:\path\to\lpng1xxx`) 185 * Open cmake-gui (v3. 8in this example)185 * Open cmake-gui (v3.16 in this example) 186 186 * Set source location to the `X:\path\to\lpng1xxx` 187 187 * Set build location to `X:\path\to\lpng1xxx\build` (so the build files will be separate from the source) 188 188 * Press '''Configure''' 189 189 * Choose '''Yes''' to create the build directory if it doesn't exist 190 * Choose '''Visual Studio 1 2 2013''' default native compiler as generator. Set the value of '''Optional toolset to use''' to '''v120_xp''' (to use the XP compatible toolset), then Finish190 * 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 191 191 * There should be an error because it can't find zlib yet 192 192 * Set `ZLIB_ROOT` to the install path of the zlib build output … … 195 195 * Press '''Generate''' 196 196 * 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)198 197 * Optional DLL version info: Right-click on the `png` project, click '''Add > Existing element''' and select `lpng1xxx\scripts\pngwin.rc` 199 198 * Build solution for '''Debug''' configuration, there should be no errors. Build the INSTALL project to copy files to the install folders set up earlier … … 346 345 }}} 347 346 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. 8in this example)347 * Open cmake-gui (v3.16 in this example) 349 348 * Set source location to the `X:\path\to\zlib-x.x.x` folder 350 349 * Set build location to `X:\path\to\zlib-x.x.x\build` (this way the build files will be separate from the source) 351 350 * Press '''Configure''' 352 351 * Choose '''Yes''' to create the build directory if it doesn't exist 353 * Choose '''Visual Studio 1 2 2013''' default native compiler as generator. Set the value of '''Optional toolset to use''' to '''v120_xp''' (to use the XP compatible toolset), then Finish352 * 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 354 353 * Change `CMAKE_INSTALL_PREFIX` to `X:\path\to\zlib-x.x.x\install` 355 354 * Delete all the `INSTALL_*` group entries and press Configure again. They should now all follow the path you specified during the previous step