- 论坛徽章:
- 0
|
I used freetype1, but it always caused SIGSEGV. So I now use freetype2.
1. Compiling freetype-2.3.4
$CC=arm-linux-gcc ./configure --target=arm-linux --host=arm-linux --enable-static --prefix=/usr/local/arm/gcc-4.1.2-uclibc
$make
$make install
On my target board, libfreetype is installed in /usr/lib.
2. Compiling libminigui-2.0.4
As at 30 Apr, 2008, configuration I use is:
$CC=arm-linux-gcc ./configure --target=arm-linux --host=arm-linux --build=i686-linux \
--prefix=/usr/local/arm/gcc-4.1.2-uclibc \
--enable-procs \
--enable-debug \
--disable-gbsupport \
--disable-gbksupport \
--disable-big5support \
--enable-ft2support \
--enable-ttfcache \
--disable-type1suport \
--enable-smdk2410ial \
LDFLAGS="-lts"
IMPORTANT:
After the configuration, modify the -I part of CFLAGS in src/font/Makefile to
-I/usr/local/arm/gcc-4.1.2-uclibc/include/freetype2
-I/usr/local/arm/gcc-4.1.2-uclibc/include
This is due to the source files src/font/Makefile.xx that are not properly written.
Then excute make and make install.
3. Compiling mde
The configuration used is exactly the same as that of libminigui, except that "-lfreetype" is added to LDFLAGS.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/56178/showart_653136.html |
|