This is the mail archive of the cygwin@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]

Re: ImageMagick


Jerome Benoit wrote:
> 
> Hi !
> 
> I try to build ImageMagick:
> the `configure' script (generate by `autoconf' since
> the distributed one fails) recognizes some packages (jpeg,z)
> not someothers (bzip2,png):
> it seem that the mecanism
> AC_CHECK_LIB(jpeg,jpeg_read_header, [...] )
> works for some lib*.a and not for some other !
> 
> How can we fix it ?

the bzip2 package in cygwin doesn't contain libbz2.a (or libbz2.dll[.a]
for that matter) -- so it cannot be found.  However, try Michael Ring's
package at
ftp://sourceware.cygnus.com/pub/cygwin/private/cygwin-rpm-712/tar/ or my
(older) version at http://cygutils.netpedia.net/V1.1/bzip2-0.9.5d/

the library interface of libpng is slightly different depending on
whether you link dynamically (default) or statically.  This is all
handled as described in /usr/doc/Cygwin/libpng-1.0.8.README. 
Unfortunately, autoconf/configure is notorious for *NOT* using
system/library header files -- it just "knows" that a given function in
library "X" is defined "thus".  

My suspicion is that autoconf assumes the "static"-style definition. 
The following is just a hack, but try it -- it'll help narrow down the
problem.  (I do NOT recommend this as a solution, just a debugging
tool...)

First, 'mv /usr/lib/libpng.dll.a /usr/lib/libpng.dll.a.bak'
  (this will force configure's test program to link using libpng.a, not
the import lib.)
export CFLAGS=-DPNG_STATIC
./configure

Does that help?

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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