configure error while checking dependency on libti

2019-09-07 17:29发布

I have configured and make libtiff properly. Now I am trying to build another library which is dependent on the tiff library. I am getting the following error

checking for TIFF support ...
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFOpen in -ltiff... no
checking for TIFFClientOpen in -ltiff... no
checking for TIFFIsByteSwapped in -ltiff... no
checking if TIFF package is complete... no -- some components failed test

I don't understand what i am doing wrong. My configure statement is as follows:

./configure --prefix=/usr/local --enable-static=yes --enable-shared=no --with-zlib=yes --with-jpeg=yes --with-tiff=yes --with-sysroot=/usr/local/lib

1条回答
叼着烟拽天下
2楼-- · 2019-09-07 18:19

It is fixed. I forgot to include another dependent library. libtiff was built with jbig support. I forgot to include jbig in LDFLAGS while configuring the new library which is dependent on libtiff.

查看更多
登录 后发表回答