internals:windows:libs:libpng

This is an old revision of the document!


LibPNG Windows, How to compile

Building LibPng 1.2.29

Requirements

Configuration

LibPNG can be compiled using various modes listed below:

  • “libpng - Win32 DLL Release” based on “Win32 (x86) Dynamic-Link Library”
  • “libpng - Win32 DLL Debug” based on “Win32 (x86) Dynamic-Link Library”)
  • “libpng - Win32 DLL ASM Release” based on “Win32 (x86) Dynamic-Link Library”
  • “libpng - Win32 DLL ASM Debug” based on “Win32 (x86) Dynamic-Link Library”
  • “libpng - Win32 DLL VB” based on “Win32 (x86) Dynamic-Link Library”
  • “libpng - Win32 LIB Release” based on “Win32 (x86) Static Library”
  • “libpng - Win32 LIB Debug” based on “Win32 (x86) Static Library”
  • “libpng - Win32 LIB ASM Release” based on “Win32 (x86) Static Library”
  • “libpng - Win32 LIB ASM Debug” based on “Win32 (x86) Static Library”

PHP uses “libpng - Win32 LIB ASM Release” and “libpng - Win32 LIB ASM Debug” respectively for the normal and debug PHP builds

One of these option has to be used while calling the makefile.

Compile

This step describe the process for Visual C++ 6. It should work for 2k3/5/8 as well but it is not yet tested. However you can use the VC7.1 project files in the libpng archive if the libpng.mak fails.

Copy the make file to the project\vc6 directory To compile libpng, simply go to th projects directory of the libpng source and run:

cd c:\build_php_deps\libpng1229\projects\
nmake /f libpng.mak CFG="libpng - Win32 LIB Release"  PHP_SDK_PATH="c:\php_sdk\"
internals/windows/libs/libpng.1210979203.txt.gz · Last modified: 2017/09/22 13:28 (external edit)