configure error while checking dependency on libtiff

别来无恙 提交于 2020-04-17 18:45:45

问题


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:


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.



来源:https://stackoverflow.com/questions/12341810/configure-error-while-checking-dependency-on-libtiff

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!