User Tools

Site Tools


c:build:build-zlib-statically-on-windows-vs2017

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:build:build-zlib-statically-on-windows-vs2017 [2019/08/13 20:20]
odefta created
c:build:build-zlib-statically-on-windows-vs2017 [2019/08/13 20:28] (current)
odefta
Line 1: Line 1:
 ====== Build zlib statically on Windows using Visual Studio 2017 ====== ====== Build zlib statically on Windows using Visual Studio 2017 ======
  
-1. Download zlib from [[http://​zlib.net/​zlib-1.2.11.tar.gz|zlib site - latest version now is 1.2.11]] ​\\ +  - Download zlib from [[http://​zlib.net/​zlib-1.2.11.tar.gz|zlib site - latest version now is 1.2.11]] 
- +  ​- ​Unzip archive in a folder (C:\zlib) 
-2. Unzip archive in a folder (C:\zlib) +  ​- ​Open '​Developer Command Prompt for VS 2017'. Click on Windows start button and start typing ​'Developer Command...', then click on the cmd (evetually right click on it and choose 'Run as administrator'​) 
- +  ​- ​cd C:\zlib 
-2. Open '​Developer Command Prompt for VS 2017'. Click on Windows start button and start typing Developer Command ... +  - **nmake /f win32/​Makefile.msc**
-Click on the cmd (evetually right click on it and choose 'Run as administrator' ​\\ +
- +
-3. cd C:\zlib +
- +
-4. nmake /f win32/​Makefile.msc ​\\ +
 Output: Output:
- 
 <​code>​ <​code>​
 Microsoft (R) Program Maintenance Utility Version 14.16.27032.1 Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
Line 70: Line 63:
 </​code>​ </​code>​
  
-5. The output ​files are:+===== Output ​files =====
  
-zlib.lib and zlib.pdb - static library lib and pdb +The output files are: 
-zdll.lib, zlib1.dll and zlib1.pdb - for dynamic linking - lib, dll and pdb+  * **zlib.lib and zlib.pdb - static library lib and pdb** 
 +  ​* ​zdll.lib, zlib1.dll and zlib1.pdb - for dynamic linking - lib, dll and pdb
  
-6. Use zlib.lib and zlib.h in your project.+**Use zlib.lib and zlib.h in your project.**
  
  
  
c/build/build-zlib-statically-on-windows-vs2017.txt · Last modified: 2019/08/13 20:28 by odefta