编译错误:
arm-openwrt-linux-muslgnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -D__MGNCS_LIB__ -I/opt/v3s/tina/tina/out/banjo-R11_pref1/compile_dir/target/libmgncs-1.2.0/include -I. -I.. -I/opt/v3s/tina/tina/out/banjo-R11_pref1/compile_dir/target/libmgncs-1.2.0 -I/opt/v3s/tina/tina/out/banjo-R11_pref1/staging_dir/target/usr/include -I/opt/v3s/tina/tina/out/banjo-R11_pref1/staging_dir/target/include -I/opt/v3s/tina/tina/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/include -I/opt/v3s/tina/tina/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include -I/opt/v3s/tina/tina/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include/fortify -I/usr/include/libxml2 -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wstrict-prototypes -pipe -MT mxmlds.lo -MD -MP -MF .deps/mxmlds.Tpo -c mxmlds.c -fPIC -DPIC -o .libs/mxmlds.lo
In file included from /usr/include/libxml2/libxml/parser.h:810:0,
from /usr/include/libxml2/libxml/globals.h:18,
from /usr/include/libxml2/libxml/threads.h:35,
from /usr/include/libxml2/libxml/xmlmemory.h:218,
from /usr/include/libxml2/libxml/tree.h:1307,
from mxmlds.c:15:
/usr/include/libxml2/libxml/encoding.h:31:26: fatal error: unicode/ucnv.h: No such file or directory
#include <unicode/ucnv.h>
^
compilation terminated.
Makefile:393: recipe for target 'mxmlds.lo' failed
make[6]: *** [mxmlds.lo] Error 1
修改这个文件 out/banjo-R11_pref1/compile_dir/target/libmgncs-1.2.0/configure
CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
改成:
CPPFLAGS="$CPPFLAGS -I../../../../package/allwinner/liballwinner_tina/liballwinner/LIBRARY/EXTERNAL/include/libxml"
离线