Saturday, July 16, 2016

How to generate PNG library with source file?



environment:

# windows7 64bit


third party library:

# lpng1623.7z
# zlib-1.2.8.tar.gz


IDE:

# MSVSVC2010


Step:

# unzip lpng1623.7z to ./_mlibpng directory
# unzip zlib-1.2.8.tar.gz to ./_mlibpng directory
# after above two steps we get something like below:




Generation:

# enter directory ./_mlibpng/lpng1623/projects/vstudio

# open vstudio.sln with MSVS2010

# FIRST build zlib with different mode(Degbug/Debug Library/Release/Release Library)

# SECOND build pnglibconf with different mode just like above step.

# THIRD build libpng


# Linker->Input->Additional Dependencies >> zlib.lib;libpng16.lib


Done :-)
End
____________________________________________________________________

No comments:

Post a Comment