找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5532|回复: 11

交叉编译报错,求大神们帮帮忙~~~~~~~~~~~~~~~~

[复制链接]
linux小白,一点点摸索,摸索了几天,今天终于成功交叉编译了rsync跟phddns,在pogoplug上运行正常。

现在在交叉编译hddtemp,运行./configure --host=arm-openwrt-linux --build=arm-openwrt-linux CC=arm-openwrt-linux-gcc报错的,日志在下面。
还有想编译个最新的samba,指定了gcc、cpp、ar、ranlib的路径了,也是./configure 配置不通过,求大神们告知具体如何交叉编译。

谢谢!!


hddtemp报错日志:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
大神们帮帮忙呀~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

build log上:
...
configure:2190: checking whether the C compiler works
configure:2196: ./a.out
./configure: line 2197: ./a.out: cannot execute binary file
configure:2199: $? = 126
configure:2208: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
...

试一下 --build=i486-linux-gnu --host=arm-openwrt-linux --target=arm-openwrt-linux

点评

还是一样呀。  详情 回复 发表于 2014-7-9 18:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
er12341 发表于 2014-7-9 16:06
build log上:
...
configure:2190: checking whether the C compiler works

还是一样呀。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看硬盘温度 直接smartmontools 就行了

点评

曲线救国呀,试了下,smartmontools交叉编译的时候,./configure --host=arm-openwrt-linux就可以了,试了下,硬盘40度 太感谢您了!!  详情 回复 发表于 2014-7-9 20:44
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

--build=i486-linux-gnu --host=i486-linux-gnu --target=arm-openwrt-linux

点评

我是64位的,应该是i686吧?configure通过了,make报错,我再试试,谢谢您!  详情 回复 发表于 2014-7-9 20:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
er12341 发表于 2014-7-9 20:20
--build=i486-linux-gnu --host=i486-linux-gnu --target=arm-openwrt-linux

我是64位的,应该是i686吧?configure通过了,make报错,我再试试,谢谢您!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
conupefox 发表于 2014-7-9 19:59
看硬盘温度 直接smartmontools 就行了

曲线救国呀,试了下,smartmontools交叉编译的时候,./configure --host=arm-openwrt-linux就可以了,试了下,硬盘40度

太感谢您了!!

点评

兄弟,可否分享一下您编译好的那几个软件包,刚好也有一个pogo  详情 回复 发表于 2014-7-10 13:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

s_h_ě_n 发表于 2014-7-9 20:44
曲线救国呀,试了下,smartmontools交叉编译的时候,./configure --host=arm-openwrt-linux就可以了,试 ...

兄弟,可否分享一下您编译好的那几个软件包,刚好也有一个pogo,谢谢啦

点评

我发在godiy了  详情 回复 发表于 2014-7-10 17:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
WeDone 发表于 2014-7-10 13:51
兄弟,可否分享一下您编译好的那几个软件包,刚好也有一个pogo,谢谢啦

我发在godiy了

点评

能否给个路径呢?我没有找到  详情 回复 发表于 2016-2-20 10:23
OK,谢谢了  详情 回复 发表于 2014-7-11 13:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


OK,谢谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


能否给个路径呢?我没有找到
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 05:15

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表