Ubuntu 16.04 installation ARM-LINUX-GCC embedded cross-compilation environment issues summary

Source: Internet
Author: User

Cackle:

Internship for nearly half a year has been doing hardware and the bottom of the drive, recently found a job to find a high demand for Linux, but also a lot of jobs, so the recent time in the occasional contact with Linux.

Text: ( I started to write a blog, not enough preparation, pictures are not saved )

The first is to surf the internet to find out the ready-made tutorials, the following URL is a good tutorial

Http://www.cnblogs.com/softhal/p/5699381.html

Tertiary, I did it all.

  But at the fourth step, there were some problems for me as a novice:  

1, the first method, modify the BASHRC file, will always appear the following this hint

* * (gedit:5488): WARNING *: Set document metadata failed: Setting properties not supported Metadata::gedit-position

I have started also very puzzled, always thought out of what mistake, the internet looked up a bit to say this neglect, OK then I also ignored, also did not go to delve into.

And after I changed the file,

I have started also very puzzled, always thought out of what mistake, the internet looked up a bit to say this neglect, OK then I also ignored, also did not go to delve into.

2, and I changed the file after the use of the SOURCE/ROOT/.BASHRC command to display insufficient permissions so I tried the next method.

3,sudo gedit/etc/profile This command to open the profile file on my Computer fonts are gray, no keyword font color changes, I also gave up this method.

Direct third method, simple violence, after the change, restart, enter $echo PATH in the shell to see if the environment configuration is successful.

  

Here I thought everything was all right, and arm-linux-tab have a normal reaction, but the input arm-linux-gcc-v, found that something was not found, so I went to the relevant folder checked a bit, Found 4.4.3 folder locked, so I feel this is the pot of lock, so I looked for the Internet to remove the folder lock instructions:

  sudo chmod-r 777 files or folders (first to reach the 4.4.3 directory)

Then the version number will appear when you enter Arm-linux-gcc-v, which means the installation is successful.

Then I quickly set up a hello.c file to try to cross-compile the environment, but found that the following error occurred:

While loading shared Libraries:libstdc++.so.6:cannot open Shared object file

  Workaround: sudo apt-get install lib32stdc++6

 The pro-test can be used.

Final input Arm-linux-gcc-o Hello hello.c

No error, this is the official installation success.

Also came here, Hangzhou winter frozen feet, want to go back to the Northeast!

  

  

  

  

Ubuntu 16.04 installation ARM-LINUX-GCC embedded cross-compilation environment issues summary

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.