哪里可以找到真正的arm-none-linux-gnueabi?

时间:2014-03-07 16:09:42

标签: c++ linux gcc arm cross-compiling

在我安装arm-none-linux-gnueabi-gcc编译器集合并为IGEP板编译嵌入式应用程序之前的某个时间。我有许多Eclipse项目,它们具有双重构建配置(一个用于基于UBUNTU的桌面,另一个用于基于ARM的IGEPv2板)。

现在,我格式化了我的驱动器(我使用Ubuntu 12.04),我救出了我的项目和我看到了什么? “arm-none-linux-gnueabi-gcc”不可用?我可以无处下载..相反,所有链接都通过“Mentor Graphics”进行另一次下载,名为“arm-none-eabi-gcc”。我不知道它们之间的区别。我设置了这个包,并纠正了所有我的... / CodeSourcery / ...路径到/ MentorGraphics / ...,但是当我编译时,我有以下错误:

  

/home/fercis/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/arm-none-eabi/include/termios.h:4:25:   致命错误:sys / termios.h:没有这样的文件或目录

然后我查看了“/ home / fercis / MentorGraphics / Sourcery_CodeBench_Lite_for_ARM_EABI / arm-none-eabi / include”下arm编译器集合的include文件,我看到的是... / include下的termios.h目录,仅包含... / include / sys / termios.h

#ifdef __cplusplus
extern "C" {
#endif
#include <sys/termios.h>
#ifdef __cplusplus
}
#endif

而且,没有“/sys/termios.h”。一定是非常错误的!请帮忙吗?

1 个答案:

答案 0 :(得分:0)

您可以按照以下步骤为IGEPv2构建自己的工具链:

安装依赖项:

$ sudo apt-get install diffstat
$ sudo apt-get install texi2html
$ sudo apt-get install texinfo
$ sudo apt-get install gawk
$ sudo apt-get install chrpath
$ sudo apt-get install gnupg
$ sudo apt-get install libcurl3
$ sudo apt-get install libcurl3-gnutls
$ sudo apt-get install python-pycurl

克隆IGEPv2回购:

$ git clone -b denzil git://git.isee.biz/pub/scm/poky.git

下载isee图层:

$ cd poky
$ git clone -b denzil git://git.isee.biz/pub/scm/meta-isee.git

设置bitbake环境:

$ source oe-init-build-env

在conf / bblayers.conf文件中添加isee层:

BBLAYERS ?= " \
  /path/to/poky/meta \
  /path/to/poky/meta-yocto \
  /path/to/poky/meta-isee \
"

在conf / local.conf文件中更改MACHINE:

MACHINE ?? =“igep00x0”

此命令生成工具链:

$ bitbake meta-toolchain-sdk

这是喝咖啡的好时机......

在流程结束时,SDK将在此处提供:

build/tmp/deploy/sdk/igep-sdk-yocto-toolchain-1.2.1-2.tar.bz2

在主机中安装SDK:

$ tar xvfz igep-sdk-yocto-toolchain-1.2.1-2.tar.bz2 -C /

享受吧! :)

相关问题