LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: MuTuExpress

交叉编译时找不到gtk库时改怎么办

[复制链接]
发表于 2006-3-7 22:36:51 | 显示全部楼层
真是没有道理, 一般做交叉编译的时候都无法在本机运行 test program 的, 可是因为这个而阻止配置的完成就不应该了

我认为这样就可以了, 可是出错也没有办法. 看来还是应该多看看文档和官网的相关帮助

  1. CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc \
  2. ./configure --host=arm-linux --build=i686-linux --target=arm-linux \
  3. --prefix=/usr/local/arm/2.95.3
复制代码


P.S.
实在不行就
./configure
然后手工改 makefile, 这样做非常麻烦, 效率低下, 又容易出错, 可是也许可以解决问题. 我自己也曾经用过这种方法
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-8 15:45:10 | 显示全部楼层
我看了一些maillist里面提到,need to pass configure a pregenerated config.cache that has the values for the target system. The tests will not be performed then。
现在不知道怎样才能找到或产生这样一个文件
回复 支持 反对

使用道具 举报

发表于 2006-3-8 16:33:21 | 显示全部楼层
大概的意思:

echo "target=x86_64-unknown-linux-gnu" > config.cache

./configure --prefix=...... --cache-file=config.cache
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-8 16:54:38 | 显示全部楼层
还是不对,一样的错误
我觉得config.cache里面应该不止target=x86_64-unknown-linux-gnu这些值
继续努力ing。。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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