关于更换交叉编译器报错的问题-misp-openwrt-linux-musl-gcc

编译时遇到了一个问题,希望有大佬给出一些解决问题的建议,非常感谢

前提:更换芯片,使用另一个交叉编译器编译源码。

原来使用的编译器是mipsel-openwrt-linux-gcc,但是现在更换了片子,经查询,需要用到的新的交叉编译器(misp-openwrt-linux-musl-gcc)。

配置好一些配置之后,对程序进行编译,报错现象如下:

Linking obj/main.cgi...
mips-openwrt-linux-musl-gcc obj/sql.o obj/semaphore.o obj/debug.o obj/get_share_mem_data.o obj/message_queues.o obj/cgic.o obj/config.o obj/main.o obj/share_mem.o obj/get_msg_que_data.o -L../sqlite_lib/lib -L../conv_lib/lib -dy -lsqlite3 -liconv -dn  -o obj/main.cgi
mips-openwrt-linux-musl-gcc: warning: environment variable 'STAGING_DIR' not defined
mips-openwrt-linux-musl-gcc: warning: environment variable 'STAGING_DIR' not defined
/home/kevin/code/202302_mycode/sft1200_openwrt/git_install/openwrt-openwrt-18.06/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/lib/gcc/mips-openwrt-linux-musl/7.3.0/../../../../mips-openwrt-linux-musl/bin/ld: skipping incompatible ../sqlite_lib/lib/libsqlite3.so when searching for -lsqlite3
/home/kevin/code/202302_mycode/sft1200_openwrt/git_install/openwrt-openwrt-18.06/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/lib/gcc/mips-openwrt-linux-musl/7.3.0/../../../../mips-openwrt-linux-musl/bin/ld: skipping incompatible ../conv_lib/lib/libiconv.so when searching for -liconv
/home/kevin/code/202302_mycode/sft1200_openwrt/git_install/openwrt-openwrt-18.06/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/lib/gcc/mips-openwrt-linux-musl/7.3.0/../../../../mips-openwrt-linux-musl/bin/ld: skipping incompatible /usr/lib/libiconv.so when searching for -liconv
/home/kevin/code/202302_mycode/sft1200_openwrt/git_install/openwrt-openwrt-18.06/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/lib/gcc/mips-openwrt-linux-musl/7.3.0/../../../../mips-openwrt-linux-musl/bin/ld: cannot find -liconv
collect2: error: ld returned 1 exit status
make: *** [obj/main.cgi] Error 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

蔚成风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值