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

Source: Internet
Author: User
Tags ftp client

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


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.

 


How to build a cross-compilation environment in Ubuntu?

The following is a description of some problems, in order to attract others. The application development environment based on the Linux operating system is generally composed of the target system hardware (Development Board) and the host PC. The target hardware development board is used to run the operating system and system application software, the kernel compilation and application development and debugging of the operating system used by the target Board need to be completed through the host PC (therefore called cross-compilation ). Generally, the two parties establish a connection through a serial port, a parallel port, or an Ethernet interface. However, I suggest you build the following cross-compilation environment for individual or R & D teams to use: Use a single PC (PII or above, just use the old machines that have been eliminated before ), to install a Linux operating system (such as Red Hat Linux 8.0 or later) on the PC, you can use the default installation option (including the FTP service). This PC is used as a Linux server, in addition to the Administrator, it is generally not allowed to be operated by others directly. Connect the Linux server to the LAN and create some valid users so that the legitimate users of other PCs (referred to as workstation) can access the Linux server. Other PCs (workstations) still use the Windows operating system. Required software tools include: 1. FTP client programs (such as Cuteftp, which can be downloaded online ). 2. Telnet tool (such as SecureCRT, which can be downloaded from the Internet ). 3. source code of the Linux operating system kernel transplanted to a specific ARM platform (usually provided by the vendor ). 4. GNU compilation tools can be downloaded from related websites or provided by vendors. Install the FTP client program and Telnet tool on a PC of a workstation. After installation, you can transfer files between the PC and the Linux server of the workstation, you can also log on to the Linux server through Telnet on the workstation PC (you may need to disable the Firewall Service of the Linux Server ). Install On a Linux Server: transfer the Linux operating system kernel source code package on the PC of the workstation and the GNU compilation tool to a directory (such as a valid user directory) on the Linux server through FTP ), decompress the package in the directory and install the GNU compilation tool to the default working directory. The above work is done by using the Telnet tool on the workstation PC, instead of on the Linux server. Compiling the Linux operating system kernel: there is usually a fixed step for compiling the Linux operating system kernel, which may vary slightly depending on the MakeFile file. For details, refer to the relevant documentation, the compilation is completed on the workstation PC using the Telnet tool.

With the help of newbie Daxia, errors occur when c and c ++ development environments are configured in eclipse in ubuntu to create C files,

We recommend that you use Visual Stdio or Visual C ++ to write C/C ++, which we basically use.
The error reported by you may be that it is not configured, or the storage address of the C file does not match the connection. We recommend that you re-select the Location. It should not be too deep and put it in the root directory folder, on the third layer, you can see that you are placed on the fifth layer. debugging is much more troublesome.

Related Article

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.