我正在尝试交叉编译gnutls。Gnutls依赖于libnettle。我能够交叉编译libnettle,但是,当尝试交叉编译gnutls时,在配置过程中遇到一个错误:
configure: error: Libnettle 2.2 was not found. 我交叉编译的libnettle版本是2.2。
要配置的命令是:
./configure --host=mips --prefix=/home/tom/lib/gnutls-3.0.3 CC=/crosstools/mips-gcc CXX=/crosstools/mips-g++ --enable-shared --with-libnettle-prefix=/home/tom/lib/nettle-2.2我也尝试过:使用LDFLAGS="-L/home/tom/lib/nettle-2.2"进行配置,但没有成功。
lib安装在/home/tom/lib/nettle-2.2/lib中。我也试过这个目录。由于某种原因,libnettle没有被检测到。有人知道为什么吗?
发布于 2013-11-14 21:10:48
根据类似的问题和我个人的经验,gnutls需要同时看到libnettle和libhog杂草,才能通过这一检查。nettle构建将同时构建两者,但前提是系统上也有GMP库。
下面是执行这些操作的一些步骤:
https://stackoverflow.com/questions/7702656
复制相似问题