3)编译qtopia-free-2.2.0
建立目录include,lib,
这两个目录是存放编译后的库与头文件,为后面交叉编译用)
mkdir –p /home/work/armqt/lib
mkdir –p /home/work/armqt/include
编译相关库
(1) e2fs:
cd home/work/armqt/qtlibsource/e2fsprogs-1.39
./configure --host=arm-linux
--enable-elf-shlibs --with-cc=arm-linux-gcc
--with-linker=arm-linux-ld--prefix=/usr/local/arm/2.95.3/arm-linux
make
make install
cp lib/libuuid.so* ../lib
(2)jpeg-6b
cd /home/work/armqt/qtlibsource/jpeg-6b
./configure -enable-shared vi Makefile
修改: CC= arm-linux-gcc AR= arm-linux-ar rc AR2=arm-linux-ranlib
make
make install
cp *.h ../include/ cp libjpeg.a ../lib/
(3)zlib-1.2.3
cd /home/work/armqt/qtlibsource/zlib-1.2.3
./configure -shared
Vi Makefile
CC=arm-linux-gcc
…
LDSHARED=arm-linux-gcc -shared-Wl,-soname,libz.so.1
CPP=arm-linux-gcc -E
…
AR=arm-linux-ar rc
RANLIB=arm-linux-ranlib
…
SHELL=/bin/sh
EXE=
prefix =/usr/local/arm/2.95.3/arm-linux
…
make
make install
cp libz.so* ../lib/ cp *.h ../include/
(4)libpng-1.2.14
cp scripts/makefile.linux
./Makefile
vi Makefile
AR_RC=arm-linux-ar rc
CC=arm-linux-gcc
…
RANLIB=arm-linux-ranlib
…
prefix=/usr/local/arm/2.95.3/arm-linux
…
make
make install
cp libpng12.so*
../lib/ cp libpng12.so ../lib/libpng.so cp *.h ../include/
(5)tslib-1.3 (在我们的开发平台上由于还没有触摸屏驱动,使用的是usb鼠标,所以暂时没有使用此库,后面不再叙述关于触摸屏的相关内容)
cd /home/work/armqt/qtlibsource/tslib-1.3
./autogen.sh echo"ac_cv_func_malloc_0_nonnull=yes">arm-linux.cache ./configure--host=arm-linux--cache-file=arm-linux.cache
--enable-inputapi=no --srcdir=/home/qtopia-arm-home/arm/tslib
make
make install
cp src/.libs/libts-0.0.so.0*../lib/ cp src/.libs/libts.so ../lib/ cp src/*.h ../include/ |