wcm778899 发表于 2020-7-18 17:37:03

imx6-q交叉编译libcurl

我使用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

wcm778899 发表于 2020-7-19 10:19:22

问题已经解决了,我使用了gcc-linaro-5.5.0编译运行成功。

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
页: [1]
查看完整版本: imx6-q交叉编译libcurl