简体   繁体   中英

Problems installing gcc for cross compiling for ARM

Problems installing gcc for cross compiling for ARM

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.

To install, I used:

sudo apt-get install gcc-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.

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.

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

Target devices: Beaglebone ( black)

使用eclipse和/ usr / bin的设置路径并运行程序,看看是否提供任何错误

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM