Home · All Classes · Annotated · Functions

Compiling 3rd-party Libraries

Introduction

This document describes the process to compile the following third-party libraries for a device:

Compiling liblcms

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

Compiling libmng

To compile for the device a libmng library which has been downloaded separately, edit the Makefile to suit the device and run make.

Compiling libjpeg62

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)"

Compiling libuuid (e2fsprogs)

To compile the libuuid library for a device run the following:

    ./configure --enable-elf-shlibs --enable-dynamic-e2fsck --disable-nls --mandir=/usr/share/man  \
        --infodir=/usr/share/info --enable-compression  \
        --with-ccopts='-O2 -g -fsigned-char -D__NO_STRING_INLINES' --host=arm-linux
    make -C util CFLAGS='-O2 -g -fsigned-char -D__NO_STRING_INLINES'
    make
    make install # as root if required

Compiling libz

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

Compiling tslib

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
    make install # as root if required


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7