您尚未登录。

楼主 #1 2021-04-21 22:21:16

无根浮萍
会员
注册时间: 2021-01-14
已发帖子: 62
积分: 31

[分享] 解决tina linux 编译出现错误:

编译错误:

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"


QQ截图20210421221531.png

参考: https://www.cnblogs.com/tid-think/p/10769656.html

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn