为ARM交叉编译安装gcc的问题 [英] Problems installing gcc for cross compiling for ARM

查看:214
本文介绍了为ARM交叉编译安装gcc的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装GCC的交叉编译为ARM问题

Problems installing gcc for cross compiling for ARM

我一直在试图安装GCC-臂Linux的fnueabi包,我已经用几种不同的方法做了几次,但我似乎总是缺少C ++文件夹中包含的目录。

I've been trying to install the gcc-arm-linux-fnueabi package, and I've done it a few times by a few different methods but I always seem to be missing the c++ folder in the includes directory.

要安装,我用:

命令和apt-get安装GCC-ARM的Linux的gnueabihf

sudo apt-get install gcc-arm-linux-gnueabihf

和在安装完成后,我有臂Linux的gnueabi和手臂-Linux的gnueabihf文件夹在我的/ usr目录下。当我进入在/ usr / ARM-Linux的gnueabi / include文件夹虽然,有没有C ++文件夹,我应该会存在,所以头如的iostream等丢失。这同样适用于ARM的Linux的gnueabihf目录中。

and after the installation completes, I have the arm-linux-gnueabi and arm-linux-gnueabihf folders in my /usr directory. When I go into the /usr/arm-linux-gnueabi/include folder though, there's no c++ folder as I expect there to be, so headers such as iostream, etc. are missing. Same goes for within the arm-linux-gnueabihf directory.

有谁知道什么可能导致这个?我错过了什么,也许?我是相当新的交叉编译,但所有我研究的文件表明,应该有一个C ++文件夹中包含,没有它,我将尝试编译甚至简单的测试codeS失败,因为即使是iostream头不可用。

Does anyone know what might be causing this? Did I miss something, perhaps? I'm fairly new to cross compiling but all the documentation I've studied indicates that there should be a c++ folder among the includes, and without it, my attempts to compile even simple test codes fail, since even the iostream header is not available.

我的机器:32安培; 64位英特尔i5处理器上运行Ubuntu 14.10了一台华硕

My machine: 32 &64 bit intel i5 processor, on a Asus running Ubuntu 14.10

目标设备:Beaglebone(黑色)

Target devices: Beaglebone ( black)

推荐答案

使用Eclipse和设置路径为/ usr / bin并运行程序看它是否给任何错误

Use eclipse and the set path to /usr/bin and run a program see if it gives any error

这篇关于为ARM交叉编译安装gcc的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆