JZ2440_数码相框_在LCD上测试freetype

交叉编译:
在控制台上显示
tar xjf freetype-2.4.10.tar.bz2 
./configure --host=arm-linux
make
make DESTDIR=$PWD/tmp install


编译出来的头文件应该放入:
/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include


编译出来的库文件应该放入:
/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib


把tmp/usr/local/lib/*  复制到 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib
sudo cp * /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib -d -rf
cp /work/yuanma/03.freetype/freetype-2.4.10/tmp/usr/local/lib/*so* /work/nfs_root/fs_mini_new/lib -d






把tmp/usr/local/include/*  复制到 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include
cp * /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include -rf
cd /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include
mv freetype2/freetype .


arm-linux-gcc -finput-charset=GBK -o example1 example1.c  -lfreetype -lm






在开发板上显示一个繁字 
arm-linux-gcc -finput-charset=GBK -fexec-charset=GBK -o show_font show_font.c -lfreetype -lm 
cp  show_font /work/nfs_root/fs_mini_new
cp  simsun.ttc /work/nfs_root/fs_mini_new
./show_font   ./simsun.ttc




在开发板上进行角度控制
arm-linux-gcc -finput-charset=GBK -fexec-charset=GBK -o show_font show_font.c -lfreetype -lm 
cp  show_font /work/nfs_root/fs_mini_new
cp  simsun.ttc /work/nfs_root/fs_mini_new
./show_font   ./simsun.ttc  60




在开发板上从左边开始显示一行文字
arm-linux-gcc -finput-charset=GBK -o show_lines show_lines.c  -lfreetype -lm
cp  show_lines /work/nfs_root/fs_mini_new
cp  simsun.ttc /work/nfs_root/fs_mini_new
./show_lines ./simsun.ttc 


在开发板上从左边开始显示多行文字
arm-linux-gcc -finput-charset=GBK -o show_lines show_lines.c  -lfreetype -lm
cp  show_lines /work/nfs_root/fs_mini_new
cp  simsun.ttc /work/nfs_root/fs_mini_new
./show_lines ./simsun.ttc 

你可能感兴趣的:(JZ2440_数码相框_在LCD上测试freetype)