Embedded GUI ftk introduction (11)-cross compilation

Source: Internet
Author: User

Indicate the source and author's contact information during reprinting.
ArticleSource: http://www.limodev.cn/blog
Contact information of the author: Li xianjing <xianjimli at Hotmail dot com>

Considering that cross-compilation is just a waste of time, ftk provides a makefile to cross-compile ftk itself and its dependent software packages. In tools/cross-build/readme, the following describes how:

1. Copy cross. mk and env. Sh into the parent directory of ftk.
2. Edit env. Sh to set some variables.
3. Source env. Sh
4. Make-F Cross. mk

The environment variable file is very simple. The ftk provides several samples. You can copy only one copy to modify the position of the toolchain. For example:

# Broncho 1900 <br/> ################################# ##################### <br/> # export arch = arm <br/> # export host_param = -- host = arm-Linux <br/> # export target_cc = arm-Linux-GCC <br/> # export Path =/usr/local/arm-linux-4.1.1/bin /: $ PATH </P> <p> # jz4740 <br/> ######################### ############################# <br/> # export arch = mipsel <br/> # export host_param = -- Host = mipsel-Linux <br/> # export target_cc = mipsel-Linux-GCC <br/> # export Path =/work/board/ JZ/mipseltools-gcc412-glibc261/bin: $ PATH </P> <p> # Sigma, <br/> # Maybe you need change the path. <br/> #################################### ################# <br/> Cd/home/SMP/smp86xx_toolchain_2.8.3.0 & source toolchain-path.env & CD-<br /> Cd/home/SMP/mrua_smp8634_2.8.3.0_gcc4_dev.mips & source mrua. env & CD-<br/> export arch = mipsel <br/> export host_param = -- Host = mipsel-Linux <br/> export target_cc = mipsel-Linux-gcc

Cross. mk automatically downloads the software package and performs cross-compilation. There are two important goals:

O all is used to compile zlib png jpeg tslib FreeType libftk. This is the direct operation of ftk Based on framebuffer.
O all_dfb is used to compile zlib png jpeg tslib FreeType directfb libftk. This is the ftk Running Based on directfb. In this case, the libftk compilation option should be modified as appropriate.

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.