w_scan 交叉编译问题 [英] w_scan cross compile issue
问题描述
我从 http://wirbel.htpc-forum.de/w_scan/index_en.html.我还在我的 Ubuntu x86_64 上安装了 gcc-arm-linux-gnueabi
.
我使用./configure --host=arm-linux CC=arm-linux-gnueabi-gcc
命令交叉编译,生成二进制文件.但是,我将该文件复制到我的目标板并执行该文件,它显示 sh: ./w_scan: No such file or directory
.
我使用 file
命令查看该二进制文件的信息,它显示 ELF 32 位 LSB 可执行文件,ARM,版本 1 (SYSV),动态链接(使用共享库),对于 GNU/Linux 2.6.31,BuildID[sha1]=0x9a584b4720fadf5eb5b77034ac85092daeb728c9,未剥离
.
我发现错误信息表明交叉编译的配置不正确.(参考 http://ubuntuforums.org/showthread.php?t=1141792).如何修复我的配置并正确交叉编译该项目,谢谢!
- ./configure --host=arm-linux CC=arm-linux-gnueabi-gcc
- 使 CFLAGS=-static
- 将该二进制文件复制到我的目标板上,它可以正常成功地执行.
文件 w_scan 将显示ELF 32 位 LSB 可执行文件,ARM,版本 1 (SYSV),静态链接,适用于 GNU/Linux 2.6.31,BuildID[sha1]=0x67b7e9f93015607f891c0b77493d9e47059ef6a1,未剥离>
I download the w_scan
project(a small command line utility used to perform frequency scans for DVB and ATSC transmissions.) from http://wirbel.htpc-forum.de/w_scan/index_en.html. I also install gcc-arm-linux-gnueabi
on my Ubuntu x86_64.
I use the ./configure --host=arm-linux CC=arm-linux-gnueabi-gcc
command to cross-compile, and it generates a binary file. However, I copy that file to my target board and execute that file, it shows sh: ./w_scan: No such file or directory
.
I use the file
command to see information of that binary file, it shows ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, BuildID[sha1]=0x9a584b4720fadf5eb5b77034ac85092daeb728c9, not stripped
.
I found that error message stands the configuration of cross-compile doesn't correct.(reference http://ubuntuforums.org/showthread.php?t=1141792). How can I fix my configuration and correct cross-compile that project, THANKS!
- ./configure --host=arm-linux CC=arm-linux-gnueabi-gcc
- make CFLAGS=-static
- copy that binary file to my target board, it can execute normally and successfully.
And the file w_scan will shows
ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.31, BuildID[sha1]=0x67b7e9f93015607f891c0b77493d9e47059ef6a1, not stripped
.
这篇关于w_scan 交叉编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!