Ubuntu uses log 2 (build a C ++ cross-compiling environment in Eclipse)

Source: Internet
Author: User

Ubuntu uses log 2 (build a C ++ cross-compiling environment in Eclipse)


Release uses cross-Compilation: arm-none-linux-gnueabi-gcc. Procedure:

1) in Project-> Properties-> C/C ++ Build-> Settings, change Configure to Release, in gcc c Compiler and

In Command of gcc c Linker: Enter arm-none-linux-gnueabi-gcc;
2) follow these steps: http://blog.csdn.net/oqidian12345/article/details/8968078;
3). After the operation in step 2 is completed, the system may fail. The system prompts that arm-none-linux-gnueabi-gcc cannot be found, because it is in the 64-Bit Memory Bu

Which follows 32-bit libraries.
However, many download links to the 32-bit library have expired. Install the new SDK manager at http://tieba.baidu.com/p/2245543310,

But the ia32-libs in the Link has also expired, the valid link is: http://cz.archive.ubuntu.com/ubuntu lucid main, according to the blog (http://341719xubin.blog.163.com/blog/static/13292079320119583956891/) to operate.
4). After the installation is complete, follow the method in 2) after setting the environment variable, still prompts that the cross compiler cannot be found, but also in another change

Environment variable: gedit/etc/environment, add the path where arm-none-linux-gnueabi-gcc is located, and then source/etc/environment takes effect,

Restart the system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.