[Gdal-dev] Problems building gdal dll with libtool on MinGW

Mario Beauchamp starged at videotron.ca
Mon Feb 16 22:14:49 EST 2004


Hi all,

Up to now, I had always built gdal as a static lib and everything was fine. When I tried to build a
shared gdal using libtool, it complained about the fact that I didn't have shared versions of libm
and libz and I ended up with a static lib.

How do I tell the gdal configure to add -lz and -lm when linking?  I tried configuring with
"--enable-static=libz,libm" but got the same complaints and a static lib again. I never used libtool
before and the doc is very confusing to me... so I don't know what to do next.

And if I understand libtool correctly (don't bet on that!), a dll created with libtool needs libtool
to link, right? I build the lib under MSYS but I use the Dev-Cpp IDE to build the apps that link
with it and I don't think it works with libtool. So I may be doing all this for nothing :)

Thanks for any help.
--
Mario B.
My Landsat images:
http://pages.infinit.net/starged/landsat/home.html



More information about the Gdal-dev mailing list