Environments
Host System: VMWare 5.5.1 build-19175
Host OS: Linux debian 2.6.17-2-686 #1 SMP
Target System: ARM (Samsung S3C2440A)
Toolchain: arm-softfloat-linux-gnu- ( from http://www.kegel.com, Thanks Kegel 8) )
Environment Variables
PREFIX: The directory path this is some libraries installed.
TOOLCHAIN: The directory path that has a toolchain and some headers.
KERNEL_HEADERS: The directory that has linux headers.
Building DirectFB
1. Installing zlib
wget http://puzzle.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.3.tar.bz2
CC=arm-softfloat-linux-gnu-gcc NM=arm-softfloat-linux-gnu-nm AR=arm-softfloat-linux-gnu-ar ./configure --prefix=$PREFIX --shared
make
make install
2. Installing Libpng
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.14.tar.bz2
LDFLAGS=-L/opt/wxWidget/lib CFLAGS=-I/opt/wxWidget/include CC=arm-softfloat-linux-gnu-gcc NM=arm-softfloat-linux-gnu-nm AR=arm-softfloat-linux-gnu-ar RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip ./configure --host=arm-softfloat-linux-gnu --build=i386-linux --prefix=$PREFIX
make
make install
3. Installing Libjpeg
./ltconfig --with-gcc --with-gnu-ld ltmain.sh
./configure --prefix=$PREFIX --enable-shared --target=arm-linux AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ CXXCPP=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip CPPFLAGS=-I$PREFIX/include CFLAGS=-I$PREFIX/include
--> Maybe appears some error messages. But just ignore it. 8)
make
make install
4. Installing FreeType2
wget http://prdownloads.sourceforge.net/freetype/freetype-2.2.1.tar.bz2?download
Apply PATCH: http://www.mail-archive.com/freetype-devel@nongnu.org/msg01528.html --> plz read below article! 8)
./configure --host=arm-linux --prefix=$PREFIX AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip
make
make install
5. DirectFB
./configure --with-gfxdrivers=cyber5k --enable-sdl=no --disable-debug --disable-joystick --disable-cdrom --enable-static --build=i386-linux --host=arm-softfloat-linux-gnu AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip LDFLAGS=-L$PREFIX/lib --prefix=$PREFIX CFLAGS=-I$PREFIX/include
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib install
6. DirectFB examples
./configure --with-gfxdrivers=cyber5k --enable-sdl=no --disable-debug --disable-joystick --disable-cdrom --enable-static --build=i386-linux --host=arm-softfloat-linux-gnu AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip --prefix=$PREFIX LDFLAGS=-L$TOOLCHAIN/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib CFLAGS=-I$KERNEL_HEADERS CFLAGS=-I$PREFIX/include CPPFLAGS=-I$KERNEL_HEADERS
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib install
7. Packaging
Strip all libs ( --enable-debug=no brings not any bit savements).
Remove all unnecessary files.
Copy some fonts, to the place, where fontconfig is configured to have them.
DONE!!!! 8)
Host System: VMWare 5.5.1 build-19175
Host OS: Linux debian 2.6.17-2-686 #1 SMP
Target System: ARM (Samsung S3C2440A)
Toolchain: arm-softfloat-linux-gnu- ( from http://www.kegel.com, Thanks Kegel 8) )
Environment Variables
PREFIX: The directory path this is some libraries installed.
TOOLCHAIN: The directory path that has a toolchain and some headers.
KERNEL_HEADERS: The directory that has linux headers.
Building DirectFB
1. Installing zlib
wget http://puzzle.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.3.tar.bz2
CC=arm-softfloat-linux-gnu-gcc NM=arm-softfloat-linux-gnu-nm AR=arm-softfloat-linux-gnu-ar ./configure --prefix=$PREFIX --shared
make
make install
2. Installing Libpng
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.14.tar.bz2
LDFLAGS=-L/opt/wxWidget/lib CFLAGS=-I/opt/wxWidget/include CC=arm-softfloat-linux-gnu-gcc NM=arm-softfloat-linux-gnu-nm AR=arm-softfloat-linux-gnu-ar RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip ./configure --host=arm-softfloat-linux-gnu --build=i386-linux --prefix=$PREFIX
make
make install
3. Installing Libjpeg
./ltconfig --with-gcc --with-gnu-ld ltmain.sh
./configure --prefix=$PREFIX --enable-shared --target=arm-linux AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ CXXCPP=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip CPPFLAGS=-I$PREFIX/include CFLAGS=-I$PREFIX/include
--> Maybe appears some error messages. But just ignore it. 8)
make
make install
4. Installing FreeType2
wget http://prdownloads.sourceforge.net/freetype/freetype-2.2.1.tar.bz2?download
Apply PATCH: http://www.mail-archive.com/freetype-devel@nongnu.org/msg01528.html --> plz read below article! 8)
./configure --host=arm-linux --prefix=$PREFIX AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip
make
make install
5. DirectFB
./configure --with-gfxdrivers=cyber5k --enable-sdl=no --disable-debug --disable-joystick --disable-cdrom --enable-static --build=i386-linux --host=arm-softfloat-linux-gnu AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip LDFLAGS=-L$PREFIX/lib --prefix=$PREFIX CFLAGS=-I$PREFIX/include
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib install
6. DirectFB examples
./configure --with-gfxdrivers=cyber5k --enable-sdl=no --disable-debug --disable-joystick --disable-cdrom --enable-static --build=i386-linux --host=arm-softfloat-linux-gnu AR=arm-softfloat-linux-gnu-ar AS=arm-softfloat-linux-gnu-as CC=arm-softfloat-linux-gnu-gcc CXX=arm-softfloat-linux-gnu-g++ NM=arm-softfloat-linux-gnu-nm LD=arm-softfloat-linux-gnu-ld RANLIB=arm-softfloat-linux-gnu-ranlib STRIP=arm-softfloat-linux-gnu-strip --prefix=$PREFIX LDFLAGS=-L$TOOLCHAIN/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib CFLAGS=-I$KERNEL_HEADERS CFLAGS=-I$PREFIX/include CPPFLAGS=-I$KERNEL_HEADERS
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib
make LD=arm-softfloat-linux-gnu-ld LDFLAGS=-L$PREFIX/lib install
7. Packaging
Strip all libs ( --enable-debug=no brings not any bit savements).
Remove all unnecessary files.
Copy some fonts, to the place, where fontconfig is configured to have them.
DONE!!!! 8)
'공부 이야기 > 컴퓨터 몽땅' 카테고리의 다른 글
| Embedded Linux Memory SWAP 사용법 (0) | 2008/05/01 |
|---|---|
| C/C++ 날짜 시간 처리 관련 (0) | 2008/02/25 |
| Cross-Compile DirectFB-1.0.0-rc2 Sequence (0) | 2008/02/13 |
| 네트워크 DVR의 현재와 미래 (0) | 2008/02/11 |
| gdb core dump debug 방법 (0) | 2008/01/23 |
| SIG32 with Linux and pthreads (gdbserver) (0) | 2008/01/22 |




