c:build:build-zlib-statically-on-windows-vs2017
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
c:build:build-zlib-statically-on-windows-vs2017 [2019/08/13 20:20] – created odefta | c:build:build-zlib-statically-on-windows-vs2017 [2019/08/13 20:28] – 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:// | + | - Download zlib from [[http:// |
- | + | | |
- | 2. Unzip archive in a folder (C:\zlib) | + | |
- | + | | |
- | 2. Open ' | + | - **nmake /f win32/ |
- | Click on the cmd (evetually right click on it and choose 'Run as administrator' | + | |
- | + | ||
- | 3. cd C:\zlib | + | |
- | + | ||
- | 4. nmake /f win32/ | + | |
Output: | Output: | ||
- | |||
< | < | ||
Microsoft (R) Program Maintenance Utility Version 14.16.27032.1 | Microsoft (R) Program Maintenance Utility Version 14.16.27032.1 | ||
Line 70: | Line 63: | ||
</ | </ | ||
- | 5. The output | + | ===== Output |
- | - 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** |
+ | | ||
- | 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: 2023/07/04 19:36 by 127.0.0.1