原创
Compile qtopia 2.2.0 in ubuntu9.04
安装好ubuntu 9.04
1.安装G++
apt-get install build-essential
2.安装编译X11用到的库:
apt-get -y install x-dev libx11-dev x11proto-xext-dev libxext-dev libqt3-mt-dev uuid uuid-dev
安装xlibs-static-dev包
4.export PATH=$PATH:/usr/local/arm/3.4.5/bin
5.patch -p1 < ../qtopia-free-2.2.0.patch
6.
将qmemoryfile_unix.cpp
if (!f)
f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);改为
if (!f)
f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY,0666);
7.配置QTopia
echo yes | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -qt-zlib -qt-libpng -gif -no-g++-exceptions -no-qvfb -xplatform linux-arm-g++ -tslib' -qpe 'edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes unifont" -xplatform linux-arm-g++ -luuid' -qt2 '-no-opengl -no-xft' -dqt '-no-xft -thread'
make
8.
qvfbview.cpp:39:22: 错误: asm/page.h:没有该文件或目录
因为这是对上位主机编译qvfb,由于ubuntu9.04的/usr/include/asm没有page.h
因此我们复制相应的page.h到/usr/include/asm
9
kernel/qwsmouse_qws.o kernel/qwsmouse_qws.cpp
kernel/qwsmouse_qws.cpp:63:19: tslib.h: No such file or directory
安装tslib1.4
先安装
apt-get install automake
apt-get install libtool
然后
./autogen.sh
echo ac_cv_func_malloc_0_nonnull=yes>arm-linux.cache
./configure --host=arm-linux --prefix=/usr/local/arm/3.4.5/arm-linux --cache-file=arm-linux.cache
make
make install
10
kernel/qjpegio.cpp:60:21: jpeglib.h: No such file or directory
安装jpegsrc.v6b.tar.gz
配置
./configure --enable-shared --enable-static --prefix=/usr/local/arm/3.4.5/arm-linux --build=i386 --host=arm
然后修改生成的
gedit Makefile &
cc =gcc 改为CC=arm-linux-gcc
AR=ar rc 改为AR=arm-linux-ar rc
AR2=ranlib 改为AR2=arm-linux-rablib
make
make install-lib
11
/usr/local/arm/3.4.5/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make[5]: *** [../../../lib/libqpe.so.1.5.3] 错误 1
安装e2fsprogs-1.40.2.tar.gz
先安装apt-get install texinfo
./configure --host=arm-linux --enable-elf-shlibs --with-cc=arm-linux-gcc --with-linker=arm-linux-ld --prefix=/usr/local/arm/3.4.5/arm-linux
make
make install-libs
enjoy it
用户61522 2010-2-2 18:06