MingW compile driving me nuts
Posted: 2008-06-10T12:17:57-07:00
Trying to compile Imagemagick on Windows using MingW/MSYS but I am going nuts in the process. I want to distribute my own app (which uses the C wand api) as a single installer, so that requires Imagemagick + delegates to be independent of absolute filepaths/registry etc (all dll's in one dir would be fine). I managed to compile everything ok without the delegates, using --without-modules, and also had no problems compiling it with only ./configure (the coders then end up somewhere in my ming directory) But now...the delegates, without a hardcoded path...
Jpg is no problem as well as some others but as soon as I try to compile anythin that depends on Zlib (freetype, png, tiff) I get this error:
C:/msys/1.0/local/lib/libz.a(zutil.o)(.text+0x0):zutil.c: multiple definition of `zlibVersion'
C:/msys/1.0/local/lib/libtiff.dll.a(d000266.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(inflate.o)(.text+0x2c0):inflate.c: multiple definition of `inflateInit_'
C:/msys/1.0/local/lib/libtiff.dll.a(d000250.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(inflate.o)(.text+0x3f0):inflate.c: multiple definition of `inflate'
C:/msys/1.0/local/lib/libtiff.dll.a(d000245.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(inflate.o)(.text+0x1dc0):inflate.c: multiple definition of `inflateEnd'
C:/msys/1.0/local/lib/libtiff.dll.a(d000247.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(deflate.o)(.text+0x18b0):deflate.c: multiple definition of `deflateInit_'
C:/msys/1.0/local/lib/libtiff.dll.a(d000235.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(deflate.o)(.text+0x380):deflate.c: multiple definition of `deflate'
C:/msys/1.0/local/lib/libtiff.dll.a(d000230.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(deflate.o)(.text+0x0):deflate.c: multiple definition of `deflateEnd'
C:/msys/1.0/local/lib/libtiff.dll.a(d000233.o)(.text+0x0): first defined here
Creating library file: magick/.libs/libMagickCore.dll.a
Can anyone please help me? ANy help is greatly appreciated.
Cheers,
Michael
Jpg is no problem as well as some others but as soon as I try to compile anythin that depends on Zlib (freetype, png, tiff) I get this error:
C:/msys/1.0/local/lib/libz.a(zutil.o)(.text+0x0):zutil.c: multiple definition of `zlibVersion'
C:/msys/1.0/local/lib/libtiff.dll.a(d000266.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(inflate.o)(.text+0x2c0):inflate.c: multiple definition of `inflateInit_'
C:/msys/1.0/local/lib/libtiff.dll.a(d000250.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(inflate.o)(.text+0x3f0):inflate.c: multiple definition of `inflate'
C:/msys/1.0/local/lib/libtiff.dll.a(d000245.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(inflate.o)(.text+0x1dc0):inflate.c: multiple definition of `inflateEnd'
C:/msys/1.0/local/lib/libtiff.dll.a(d000247.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(deflate.o)(.text+0x18b0):deflate.c: multiple definition of `deflateInit_'
C:/msys/1.0/local/lib/libtiff.dll.a(d000235.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(deflate.o)(.text+0x380):deflate.c: multiple definition of `deflate'
C:/msys/1.0/local/lib/libtiff.dll.a(d000230.o)(.text+0x0): first defined here
C:/msys/1.0/local/lib/libz.a(deflate.o)(.text+0x0):deflate.c: multiple definition of `deflateEnd'
C:/msys/1.0/local/lib/libtiff.dll.a(d000233.o)(.text+0x0): first defined here
Creating library file: magick/.libs/libMagickCore.dll.a
Can anyone please help me? ANy help is greatly appreciated.
Cheers,
Michael