Skip to content

YannikL/libpng-VisualStudio2019

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Building libpng with Visual Studio 2019

Precondition

Unzip these files in directory "build". The directory structure is here.

build # root for bulding ├─ lpng1637 # libpng └─ zlib-1.2.11 # zlib 

Build libpng

  1. Edit "zlib.props"
    Open file "build\lpng1637\projects\vstudio\zlib.props"

    Change line #34
    <ZLibSrcDir>..\..\..\..\zlib</ZLibSrcDir>
    to
    <ZLibSrcDir>..\..\..\..\zlib-1.2.11</ZLibSrcDir>

  2. Create zconf.h
    Duplicate the file "build\zlib-1.2.11\zconf.h.included" and rename to "zconf.h"

  3. Open Solution file
    The solution file of Visual Studio is here "build\lpng1637\projects\vstudio\vstudio.sln"
    Some warning daialogs may be shown. Then click OK button on all daialogs.
    It includes 7 projects as following.

    • List item
    • libpng
    • pnglibconf
    • pngstest
    • pngtest
    • pngunknown
    • pngvalid
    • zlib
  4. Edit Property Pages
    Open Property Page of "zlib" project. Edit as below.

    • Editting with "All Configurations".
      Configuration PropertiesC/C++GeneralTreat Warnings As Errors
      Change "$(TreatWarningAsError)" to "No (/W-)"
    • Editting each configration.
      Configuration PropertiesC/C++PreprocessorPreprocessor Definitions
      Remove "Z_SOLO;"
  5. Build
    Set Solution ConfigrationsRelease Library
    Menu BuildBuld Solution

Completed! 😄

About

Building libpng with Visual Studio 2019

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 71.5%
  • Shell 7.8%
  • Roff 5.1%
  • Makefile 3.1%
  • Assembly 2.7%
  • Ada 1.6%
  • Other 8.2%