查看: 49856|回复: 2

[Linux] imx6-q交叉编译libcurl

8

主题

15

回帖

72

积分

A40i\T3\T507\T527通行证RK3399通行证i.MX6UL通行证i.MX6Q通行证XX18通行证

wcm778899 发表于 2020-7-18 17:37:03 | 显示全部楼层 |阅读模式
我使用linux4.1.15内核,交叉编译器为:arm-poky-linux-gnueabi-gcc
编译libcurl-7.71 报错,错误提示为交叉编译器错误。不知道该如何解决。求指点。

gcc version 5.3.0 (GCC)
configure:4307: $? = 0
configure:4296: arm-poky-linux-gnueabi-gcc -V >&5
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-V'
arm-poky-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:4307: $? = 1
configure:4296: arm-poky-linux-gnueabi-gcc -qversion >&5
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'
arm-poky-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:4307: $? = 1
configure:4326: checking whether the C compiler works
回复

使用道具 举报

8

主题

15

回帖

72

积分

A40i\T3\T507\T527通行证RK3399通行证i.MX6UL通行证i.MX6Q通行证XX18通行证

楼主| wcm778899 发表于 2020-7-19 10:19:22 | 显示全部楼层
问题已经解决了,我使用了gcc-linaro-5.5.0编译运行成功。
点评回复 支持 反对

使用道具 举报

0

主题

5

回帖

33

积分

i.MX6Q通行证i.MX6UL通行证RK3568通行证RK3588通行证T113i通行证RK3576通行证RK3562通行证RK3506通行证T536通行证T153通行证

jinhongdu 发表于 2022-7-10 17:25:32 | 显示全部楼层
一样遇到这个问题,configure就出错了。
root@forlinx:/home/forlinx/work/curl-7.84.0# ./configure --prefix=/home/forlinx/libcurl --host=arm-linux CC=arm-poky-linux-gnueabi-gcc CXX=arm-poky-linux-gnueabi-g++
configure: loading site script /opt/fsl-imx-x11/4.1.15-2.1.0/site-config-cortexa9hf-neon-poky-linux-gnueabi
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking whether to enable ECH support... no
checking for path separator... :
checking for sed... (cached) sed
checking for grep... /bin/grep
checking for egrep... /bin/grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for arm-linux-gcc... arm-poky-linux-gnueabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/forlinx/work/curl-7.84.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则