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相关程序有问题。
求思路!