免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3302 | 回复: 0
打印 上一主题 下一主题

还是编译问题,老大们过来看看吧 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-18 11:30 |只看该作者 |倒序浏览
交叉编译pkgconfig的时候出错了。

export PREFIX=/opt/dfbgtk

export ARCH=arm
export CROSS_COMPILE=/opt/arm-linux/bin/arm-linux-
export CC=${CROSS_COMPILE}gcc
./configure --prefix=$PREFIX --target=arm-linux --host=arm-linux

出错在:
checking for a BSD-compatible install... /usr/bin/install -c
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for glib-1.2.10

我网上搜索一下,有人也遇到过:

* Alexander Vasiliev <alexvasiljev at gmail.com> schrieb:

> The last lines were:
> "checking for a BSD-compatible install... /usr/bin/install -c
> checking for extra flags to get ANSI library prototypes... configure:
> error: cannot run test program while cross compiling

Very simple: *NEVER EVER* use AC_TRY_RUN.
It kills crosscompiling.

This is one of the most and worst mistakes on ac'ed packages.
In fact, *ANY* macro that expects the building system to be
equal the target system are *CRAP*.

I just had a quick look at 0.22 - the bundled glib has lot's
of AC_TRY_RUN's, so it's not crosscompile'able.

但是还是没有看出来怎么解决这个问题。

编译过的朋友,给指点一下吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP