2014.04.06 19:53 "[Tiff] Building libtiff 4.0.3 dll on mingw win32", by Lyndon Hill

2014.04.06 20:12 "Re: [Tiff] Building libtiff 4.0.3 dll on mingw win32", by Bob Friesenhahn

I'm trying to build a libtiff dll under mingw (msys in fact).

After unzipping the source, I can do a configure and make with no problems.

I give configure the path to libjpeg, as I have already compiled and installed that into mingw.

The output of make is libtiff.a and libtiff.la, no dll.

Usually you should get lib/libtiff.a, lib/libtiff.dll.a, lib/libtiff.la, bin/libtiff-5.dll, and the libtiffxx equivalents for C++.

The libraries that libtiff depends on should also be built as DLLs.

I install under a common prefix using --prefix (e.g. /usr/local).

Be sure to do 'make install' for each library as soon as it is built.

You should include ${prefix}/bin (where ${prefix} is the prefix you supplied to configure) in the PATH environment variable. This allows the DLLs to be found at run-time since Windows searches in the executable search path.

It is useful to watch the configure and build output for any clues as to why something is not working as you expect. Usually libtool offers some useful clues (e.g. "Did not find DLL for blah blah").

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/