ubuntu上交叉编译directFB出现:arm-none-linux-gnueabi-gcc:command not found

yyyay 2011-04-14 02:38:04
Hi,all:

如题:我在ubuntu10.04LTS上使用arm-none-linux-gnueabi-gcc交叉编译directFB出现问题:
arm-none-linux-gnueabi-gcc:command not found

我已经装了CodeSourcery到/HOME/CodeSourcery/下,在etc/profile中也配置了环境变量:
/HOME/CodeSourcery/Sourcery_G++_Lite/bin

交叉编译步骤如下:
1、准备源文件包,到http://www.directfb.org/下载DirectFB-1.4.11.tar.gz,解压
2、交叉编译安装directfb
首先定义交叉编译工具:export CC=arm-none-linux-gnueabi-gcc
然后,配置:./configure --build=i686-linux --host=arm-linux --prefix=$PREFIX --with-gfxdrivers=none --with-inputdrivers=all --disable-png --disable-jpeg --disable-zlib --enable-sdl=no --enable-gif=no --disable-x11

但是,make时出错了,我有尝试下载另外一个包DirectFB-1.0.1.tar.gz,也是同样的错误,说明不是因为directfb的版本的问题。我又下载了另外一个软件freetype2.4.4,也是同样的问题。


我有用arm-none-linux-gnueabi-gcc跑过一个简单的hello.c,运行结果正常。也有用gcc跑过DirectFB-1.0.1.tar.gz中的一个例子,结果也是正常的。但是用arm-none-linux-gnueabi-gcc跑directFB相关程序有问题。

求思路!
...全文
1369 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yyyay 2011-04-20
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 die654456 的回复:]
编译时使用arm-none-linux-gnueabi-gcc的绝对路径看看

或者在PATH环境变量中加入arm-none-linux-gnueabi-gcc的目录

例如export PATH= "arm-none-linux-gnueabi-gcc的目录" :$PATH
然后再运行看看
[/Quote]

这个我可以试试
yyyay 2011-04-20
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 subfate 的回复:]
arm-none-linux-gnueabi-gcc:command not found

我已经装了CodeSourcery到/HOME/CodeSourcery/下,在etc/profile中也配置了环境变量:
/HOME/CodeSourcery/Sourcery_G++_Lite/bin

-->
楼主你确定是这个路径吗?确定是这样添加环境变量吗?
如果环境变量不成,用绝对路……
[/Quote]
LZ,我当时是按照网上http://apps.hi.baidu.com/share/detail/22824950一步步来的。

我有用arm-none-linux-gnueabi-gcc跑过一个简单的hello.c,运行结果正常。

也有用gcc跑过DirectFB-1.0.1.tar.gz中的一个例子,结果也是正常的。

但是用arm-none-linux-gnueabi-gcc跑directFB相关程序有问题。

DIE654456 2011-04-19
  • 打赏
  • 举报
回复
编译时使用arm-none-linux-gnueabi-gcc的绝对路径看看

或者在PATH环境变量中加入arm-none-linux-gnueabi-gcc的目录

例如export PATH= "arm-none-linux-gnueabi-gcc的目录" :$PATH
然后再运行看看
李迟 2011-04-19
  • 打赏
  • 举报
回复
arm-none-linux-gnueabi-gcc:command not found

我已经装了CodeSourcery到/HOME/CodeSourcery/下,在etc/profile中也配置了环境变量:
/HOME/CodeSourcery/Sourcery_G++_Lite/bin


-->
楼主你确定是这个路径吗?确定是这样添加环境变量吗?
如果环境变量不成,用绝对路径试试。
yyyay 2011-04-19
  • 打赏
  • 举报
回复
这么久了,还没有人回复吗?
yyyay 2011-04-14
  • 打赏
  • 举报
回复
说明一下:我们最终想把directfb上的例子运行在android上,看效果怎么样!
板子是A8的核,系统是andriod2.2。
目前,在linux交叉编译都通不过,更别提移植到android上了

4,441

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧