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.