Chinaunix首页 | 论坛 | 博客
  • 博客访问: 28316
  • 博文数量: 5
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 130
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-06 16:00
文章分类
文章存档

2011年(1)

2008年(4)

我的朋友
最近访客

分类: LINUX

2008-04-30 15:08:45

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.

阅读(1146) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~