| Home · All Classes · Grouped Classes · Annotated · Functions |
This document describes the process to compile the following third-party libraries for a device:
To compile the liblcms library for a device run the following:
./configure --host=arm-linux --prefix=$(TOOLCHAIN_TARGET_DIR)
make
make install # as root if required
To compile for the device a libmng library which has been downloaded separately, edit the Makefile to suit the device and run make.
To compile for the device a libjpeg library which has been downloaded separately run the following:
CFLAGS="-D_REENTRANT -O2 -Wall" ./configure --prefix=/usr --mandir=/usr/share/man --enable-static \
--enable-shared --build=$(TOOLCHAIN_TARGET_DIR) --host=arm-linux
make CC="arm-linux-gcc" AR="arm-linux-ar rv" AR2="arm-linux-ranlib" CXX="arm-linux-g++" \
DESTDIR="$(TOOLCHAIN_TARGET_DIR)"
To compile the libz library for a device run the following:
./configure --prefix=/usr --shared
make LDSHARED="arm-linux-gcc -shared -Wl,-soname,libz.so.1" CC_FOR_BUILD="arm-linux-gcc" \
CC="arm-linux-gcc" LD="arm-linux-ld" CPP="arm-linux-g++ -E" AR="arm-linux-ar rc" \
prefix=$(TOOLCHAIN_TARGET_DIR) CFLAGS="-fPIC" libz.so.1.2.3 libz.a
make install # as root if required
To compile the tslib library for a device run the following:
autogen.sh
CC=arm-linux-gcc CXX=arm-linux-g++ PLUGIN_DIR=/usr/local/arm/tslib/plugins \
./configure -prefix=$(TOOLCHAIN_TARGET_DIR) -host=arm-linux
make -k
make -k install # as root if required
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |