sbc37x cross-compiler platform QT+OPENCV

Source: Internet
Author: User

First, build the cross compiler

The "Random Handbook" Angstrom is an interface-friendly, embedded release that uses embedded devices such as handheld devices, set-top boxes, and networked storage devices. The CD-ROM file system is customized for the Angstrom distribution Linux (abbreviated as ANGSTROM). Angstrom information can be logged into the http://www.angstrom-distribution.org.
Angstrom Linux is based on the OpenEmbedded tool created by the embedded system with Linux distributions. Guan OE information can be logged into the http://www.openembedded.org.
For tools and documentation related to building Angstrom, please refer to the disc catalogue [Linux\tools\openembedded.rar]

A compiler that runs in a computer environment can compile code that runs in another environment, and we call this compiler to support cross-compiling, which is called cross-compiling, simply to generate executable code on another platform on one platform. Before compiling the embedded Linux kernel, install the cross-compilation tool, which has a compilation toolkit attached to it.
Create a folder under the/usr/local/directory arm. The command is:

/usr/local/arm

Copy disc: arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 to/home/ema/tool (compressed file is in/mnt/hgfs/share disk directory). The command is:

#cd/mnt/hgfs/share #cp arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2/home/ Ema/tool

Build a directory of your own and copy the zip file in. Then release the installation


#tar JXVF Arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2–c/usr/local/ar

The final step is to set the environment variable:

#export path=/usr/local/arm/arm-2009q1/bin: $PATH See if it's successful: #echo $PATH

It is generally not possible to set after each login, then:

#sudo Vim ~/. Profile or #sudo gedit~/. Profile in the last add up on the bin subdirectory of the directory that you are releasing in the compressed package #SetPATH so it includes user'S Private bin if it exists    if[-D"$HOME/bin" ] ; Then PATH="$HOME/bin: $PATH"fi
PATH="$PATH:/usr/local/hadoop/bin"#增加你的目录路径:/usr/local/hadoop/bin
Then log back in or
# source./.profile Immediate Effect

Check for compiled version: #gcc-V

In fact, the manufacturer provided the version is ver4.4.3

In order to less trouble, or directly with the manufacturers to provide the decompression package bar.

#echo $PATH

sbc37x cross-compiler platform QT+OPENCV

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.