编译OpenWRT时,出现如下错误提示:
gconvert.c:66:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
正确的修改方式如下:
./configure --disable-option-checking --prefix=/opt/openwrt/openwrt/staging_dir/host CC=gcc CFLAGS='-O2 -I/opt/openwrt/opeing_dir/host/usr/include' CPPFLAGS='-I/opt/openwrt/openwrt/staging_dir/host/include -I/opt/openwrt/openwrt/staging_dir/host/usr/include' LDFLAGS='-L/opt/openwrt/openwrt/staging_dir/host/usr/lib' --enable-iconv=no --with-libiconv=gnu --with-internal-glib
感谢:
https://my.oschina.net/hevakelcj/blog/395359