2016.11.03 09:01 "Re: [Tiff] Building libtiff from source fails with v4.0.6", by Guillaume Rossolini
On 3 November 2016 at 02:46, Bob Friesenhahn <email@example.com> wrote:
I am having trouble building version 4.0.6.
Here are the commands used and their output:
./configure --with-zlib-include-dir=/usr/local/include --with-zlib-lib-dir=/usr/local/lib --with-jpeg-include-dir=/usr/local/include
Since you are using --enable-jpeg12, how did you prepare the two different libjpeg builds (one built as 8-bit and the other as 12, and patched)?
I have not tried that particular build configuration for myself since it requires some dedication to prepare the JPEG libraries.
The problem is due to the bare "/usr/local/lib" occuring in this part of the command:
"../port/libport.la /usr/local/lib -llzma"
I am not sure what happend to the -L.
While these many options are a convenience, there are actually no special powers to assure that the headers and libraries all occuring in the same directories will be discretely used by the compiler/linker since they all go into the same compound options.
It is just as well to use
Thanks, that was what I was looking for. I just removed the dependency on libjpeg12, which I don't need and I hadn't applied the patch. ./configure 'CPPFLAGS=-I/usr/local/include' 'LDFLAGS=-L/usr/local/lib'
This configure line worked just fine.