本文介绍了配置错误,同时检查对libtiff的依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经正确配置和使libtiff。现在我试图建立一个依赖于tiff库的另一个库。我收到以下错误

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


推荐答案

它是固定的。我忘了包括另一个依赖库。 libtiff是用jbig支持构建的。我在配置依赖于libtiff的新库时忘记在LDFLAGS中包含jbig。

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.

这篇关于配置错误,同时检查对libtiff的依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 05:59