1. cd src/libraries/qtopiabase 2. cp custom-linux-cassiopeia-g++.h custom-linux-arm-g++.h cp custom-linux-cassiopeia-g++.cpp custom-linux-arm-g++.cpp 3. ./configure -no-qvfb -xplatform linux-arm-g++ -arch arm -image /home/qtopia-opensource-4.2.2 -prefix /home/zhangyifeng/qtopia-opensource-4.2.2 -release -displaysize 240x320 -no-modem -quicklaunch 输入 yes 4. zoomer_p.cpp 编译错误原因是zoomer_p.h里的常量没有被扩展到.cpp文件里,可以直接拷贝到.cpp文件里使用。
注意编译器是:arm-linux-gcc -v Reading specs from /opt/usr/bin/../lib/gcc/arm-linux/4.0.0/specs Target: arm-linux Configured with: /opt/eldk/build/arm-2007-01-21/work/usr/src/denx/BUILD/crosstool-0.35/build/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/gcc-4.0.0/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/var/tmp/eldk.bMi2nK/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux --with-headers=/var/tmp/eldk.bMi2nK/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux/include --with-local-prefix=/var/tmp/eldk.bMi2nK/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long --enable-__cxa_atexit Thread model: posix gcc version 4.0.0 (DENX ELDK 4.1 4.0.0) uname -r 2.6.21-1.3194.fc7 gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.2 20070502 (Red Hat 4.1.2-12
|