Directfb Cross Compile for ARM
개발환경/opensource 2012. 6. 4. 23:211. configuration script for DirectFB-1.4.9
#!/bin/sh
#############################################################################
# by hskim
# build the DirectFB
# 2010-11-29
############################################################################
#export ROOTFSDIR=/home/hskimaa/opensource/myprj/rootfs
#export CFLAGS=-I$ROOTFSDIR/include
#export LDLFAGS=-L$ROOTFSDIR/lib
#export CC=arm-none-linux-gnueabi-gcc
#export LIBS=-lm
#PREFIX=/home/hskimaa/opensource/myprj/rootfs
PREFIX=/home/hskim/rootfs
HOST=arm-none-linux-gnueabi
make clean
#./configure \
#--host=arm-none-linux-gnueabi \
#--prefix=$ROOTFSDIR \
#--enable-fbdev \
#--disable-osx \
#--disable-x11 \
#--target=arm-none-linux-gnueabi \
#--with-gfxdrivers=omap
./configure \
--prefix=$PREFIX \
--host=$HOST \
CC=arm-none-linux-gnueabi-gcc \
CFLAGS=-I$PREFIX/include \
LDFLAGS=-L$PREFIX/lib \
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig \
LIBS=-lm \
--enable-static=yes \
--enable-shared=yes \
--enable-osx=no \
--enable-x11=no \
--enable-debug=yes \
--enable-multi=no \
--enable-fbdev=yes \
--enable-sdl=no \
--enable-jpeg=yes \
--enable-zlib=yes \
--enable-png=yes \
--enable-freetype=yes \
--with-gfxdrivers=none \
--with-inputdrivers=none
#--without-tools
#--with-tests
**** check point ****
현재 버전에서는 png관련 처리부분에서 zconf.h와 zlib.h를 찾지 못하면서 error가 발생한다.
귀찮아서 그냥 libpng14 folder에 두 헤더파일 복사해 주었다.
그러면 정상적으로 잘 됨. png.h파일이 libpng14/png.h로 link되어서 발생하는 문제로 보임.
'개발환경 > opensource' 카테고리의 다른 글
Cross Compile OpenSSL (MIPS) (0) | 2013.11.05 |
---|---|
Yaffs Kernel Configuration (1) | 2012.06.04 |
GTK Cross Compie for ARM (0) | 2012.06.04 |
basic opensource cross compile for ARM (0) | 2012.06.04 |