2016.11.02 13:00 "[Tiff] Building libtiff from source fails with v4.0.6", by Guillaume Rossolini

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 <bfriesen@simple.dallas.tx.us> wrote:

> Hi,

I am having trouble building version 4.0.6.

Here are the commands used and their output:

make clean

./configure --with-zlib-include-dir=/usr/local/include --with-zlib-lib-dir=/usr/local/lib --with-jpeg-include-dir=/usr/local/include

--with-jpeg-lib-dir=/usr/local/lib
--with-lzma-include-dir=/usr/local/include
--with-lzma-lib-dir=/usr/local/lib --enable-jpeg12
--with-jpeg12-include-dir=/usr/local/include
--with-jpeg12-lib=/usr/local/lib

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

./configure \
     'CPPFLAGS=-I/usr/local/include' \
     'LDFLAGS=-L/usr/local/lib' \
      --enable-jpeg12

Hi Bob,

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.

Thanks,