This is the mail archive of the cygwin-apps@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libpng-1.0.8rc1-1 ready for test


A few minor tweaks and documentation fixups relative to
libpng-1.0.8beta4-1, as well as sync'ing to the 'rc1' source from
png-developers. There were a number of non-cygwin-related modifications
to the build process which touched areas of the code that have given me
trouble building libpng on cygwin before, so I wanted to make sure that
-rc1 still built okay on cygwin, before -final came out.

Since libpng-1.0.8final is due next week, this is just an interim
release. However, testing and comments welcome! Hopefully, 1.0.8final
will look a lot like this one; other than sync'ing up to the 1.0.8final
source code, this port is fairly well streamlined -- and
libpng-1.0.8final-1 should be ready for 'latest' (*) as soon as the
png-developers make the -final drop.

(*) I think libpng should be moved into 'contrib' instead of 'latest'

The package is now available for testing at
   ftp://sourceware.cygnus.com/pub/cygwin/private/cygwin-extras-392/

libpng-1.0.8pre3-1.tar.gz
libpng-1.0.8pre3-1-src.tar.gz

Building requires gcc-2.95.2-2 and binutils (CVS, 20000721 or later),
and libpng depends on zlib.

NOTES:

o import-lib libfoo.dll.a
o stripped dll libfoo.dll
o static-lib libfoo.a
o cygwin-specific docs in /usr/doc/Cygwin/libpng-1.0.8.README
o generic docs in /usr/doc/libpng-1.0.8/*
o source archive already has the cygwin-specific patch applied

o cygwin-specific README and PATCH are stored in the source archive,
under <top>/CYGWIN-PATCHES/* (although the patch has already been
applied to the archive itself).

o define -DPNG_STATIC and -DZLIB_STATIC to get the 'correct' #define's
when compiling a .o that will be linked statically -- as well as using
'gcc -static' during the link step

o no special -Ddefine options needed (or link options) needed to link to
the dll

Most of the cygwin changes have been accepted into the official
libpng-1.0.8X tree. The remaining changes have to do with the
CYGWIN-PATCHES directory and slight modifications to the Makefile
install: process, and so it's appropriate that these minor changes be
maintained outside the official tree.

I was able to compile and pass pngtest with all of the following:

static
dll
static w/ pnggccrd (assembler stuff)
dll w/ pnggccrd
static using 'gcc -mno-win32'
dll using 'gcc -mno-win32'
static w/ pnggccrd using 'gcc -mno-win32'
dll w/ pnggccrd using 'gcc -mno-win32'

However, the binary package did not use -mno-win32, and does not include
pnggccrd.

A word of warning: pngtest will fail if it picks up the wrong libz.dll
at runtime. Make sure you're using the one in the zlib-1.1.3-3 or -2
package and not an older copy or the one distributed with Suhaib's X11
stuff. 

Comments and test reports welcome!

--Chuck

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]