最近在编译Openwrt固件,遇到一个libnettle的问题。对Openwrt不是很熟悉,折腾了几天,解决了,下面说一下思路。
问题日志如下:
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for getrandom... no
checking for getentropy... no
checking for NETTLE... no
configure: error:
***
*** Libnettle 3.1 was not found.
make[3]: *** [/home/huqian/openwrt-sdk-v1.3.5/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/gnutls-3.4.7/.configured_yynynyynnynn] Error 1
make[3]: Leaving directory `/home/huqian/openwrt-sdk-v1.3.5/trunk/feeds/packages/libs/gnutls'
make[2]: *** [package/feeds/packages/gnutls/compile] Error 2
make[2]: Leaving directory `/home/huqian/openwrt-sdk-v1.3.5/trunk'
make[1]: *** [/home/huqian/openwrt-sdk-v1.3.5/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/huqian/openwrt-sdk-v1.3.5/trunk'
ma