Changes between Version 4 and Version 5 of BuildingWindowsDependencies
- Timestamp:
- Jul 4, 2017, 11:21:12 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingWindowsDependencies
v4 v5 252 252 * CMake GUI-based build: 253 253 * [http://www.zlib.net/ Download zlib source] .zip and extract somewhere (`X:\path\to\zlib-x.x.x`) 254 * Open cmake-gui (v3. 2in this example)254 * Open cmake-gui (v3.8 in this example) 255 255 * Set source location to the `X:\path\to\zlib-x.x.x` folder 256 256 * Set build location to `X:\path\to\zlib-x.x.x\build` (this way the build files will be separate from the source) 257 257 * Press '''Configure''' 258 258 * 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 261 260 * 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` 263 263 * Press '''Configure''' until there are no errors or red entries 264 264 * Press '''Generate''' 265 * In `zlib-x.x.x\build`, there should be a `zlib.sln` solution you can open in Visual Studio 2013. Open it265 * Press '''Open project''' 266 266 * Build solution for '''Debug''' configuration, there should be no errors 267 267 * Build the '''INSTALL''' project by right-clicking on it (to copy files to the install folders set up earlier) 268 268 * Repeat for '''Release''' configuration 269 269 * `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.