嵌入式开发中配置freetype

2019-07-12 15:34发布

1:修改添加嵌入式开发板的架构类型:vim ./builds/unix/config.sub 如搜索:x86添加你支持的型号类型:我这边是:csky-6622 case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 | a29k | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] | am33_2.0 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 | bfin | c4x | clipper | d10v | d30v | dlx | dsp16xx | fido | fr30 | frv | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 | i370 | i860 | i960 | ia64 | ip2k | iq2000 | lm32 | m32c | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore | mep | metag | mips | mipsbe | mipseb | mipsel | mipsle | mips16 | mips64 | mips64el | mips64octeon | mips64octeonel | mips64orion | mips64orionel | mips64r5900 | mips64r5900el | mips64vr | mips64vrel | mips64vr4100 | mips64vr4100el | mips64vr4300 | mips64vr4300el | mips64vr5000 | mips64vr5000el | mips64vr5900 | mips64vr5900el | mipsisa32 | mipsisa32el | mipsisa32r2 | mipsisa32r2el | mipsisa64 | mipsisa64el | mipsisa64r2 | mipsisa64r2el | mipsisa64sb1 | mipsisa64sb1el | mipsisa64sr71k | mipsisa64sr71kel | mipstx39 | mipstx39el | mn10200 | mn10300 | moxie | mt | msp430 | nios | nios2 | ns16k | ns32k | or32 | pdp10 | pdp11 | pj | pjl | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe | pyramid | rx | score | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele | sh64 | sh64le | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b | sparcv9v | spu | strongarm | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron | ubicom32 | v850 | v850e | we32k | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa | z8k | z80 | csky-6622)以及 580-* | a29k-* | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arm-* | armbe-* | armle-* | armeb-* | armv*-* | avr-* | avr32-* | bfin-* | bs2000-* | c[123]* | c30-* | [cjt]90-* | c4x-* | clipper-* | craynv-* | cydra-* | d10v-* | d30v-* | dlx-* | elxsi-* | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* | h8300-* | h8500-* | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* | i*86-* | i860-* | i960-* | ia64-* | ip2k-* | iq2000-* | lm32-* | m32c-* | m32r-* | m32rle-* | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* | mips16-* | mips64-* | mips64el-* | mips64octeon-* | mips64octeonel-* | mips64orion-* | mips64orionel-* | mips64r5900-* | mips64r5900el-* | mips64vr-* | mips64vrel-* | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* | mips64vr5000-* | mips64vr5000el-* | mips64vr5900-* | mips64vr5900el-* | mipsisa32-* | mipsisa32el-* | mipsisa32r2-* | mipsisa32r2el-* | mipsisa64-* | mipsisa64el-* | mipsisa64r2-* | mipsisa64r2el-* | mipsisa64sb1-* | mipsisa64sb1el-* | mipsisa64sr71k-* | mipsisa64sr71kel-* | mipstx39-* | mipstx39el-* | mmix-* | mt-* | msp430-* | nios-* | nios2-* | none-* | np1-* | ns16k-* | ns32k-* | orion-* | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* | pyramid-* | romp-* | rs6000-* | rx-* | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* | sparclite-* | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* | tilegx-* | tron-* | ubicom32-* | v850-* | v850e-* | vax-* | we32k-* | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* | xstormy16-* | xtensa*-* | ymp-* | z8k-* | z80-* | csky-6622-*) 添加这两个地方。 然后在当前的目录下添加一个问价夹,用于自动获取所需要的东西: mkdir install
然后执行: ./configure  --host=csky-6622-linux  --prefix=/home/alen/test/freetype-2.4.0/install
修改:vi builds/unix/libtool 136 # A C compiler. 137 LTCC="csky-6622-linux-gcc" 138 139 # LTCC compiler flags. 140 LTCFLAGS="-g -O2 -static"

然后再就是: make  make install 然后去所install目录下找到你所需要的.h及.c文件。