1.arm-linux-g++命令找不到:
设置环境变数export PATH=/usr/local/arm/2.95.3/bin:$PATH
2.tmake版本至少需要1.11的问题:
设置还境变量export PATH=$TMAKEDIR/bin:$PATH
3.找不到uuid.h和cannot find -lqtopia的问题;
到下载e 2f sprogs-1.35.tar.gz,然后执行:
tar xvzf e2fsprogs-1.35.tar.gz
cd e2fsprogs-1.35
./configure -host=arm-linux -with-cc=arm-linux-gcc -with-linker=arm-linux-ld -enable-elf-shlibs -prefix=/usr/local/arm/2.95.3/arm -linux
make
make install lib/uuid/
将e 2f sprogs-1.35/lib/uuid复制到$PWD/qtopia/include下
将e 2f sprogs-1.35/lib/中的libuuid.a libuuid.so libuuid..so.1 libuuid.so.1.2复制到/armsys2410/qt_arm/qtopia/lib下。
4.lib/libuuid.so.1:could not read symbols:
将e 2f sprogs-1.35/lib/libuuid.a , libuuid.so , libuuid..so.1 , libuuid.so.1.2复制到/usr/local/arm/2.95.3/arm-linux/lib下.
5./usr/local/arm/2.95.3/arm-linux/bin/ld: cannot find -ljpeg
下载jpegsrc.v6b.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
cd jpegsrc.v6b
./configure --enable-shared
make (得到libtools程序)
./configure --enable-shared
修改生成的Makefile文件:
prefix = $QTDIR (qte的路径)
CC =/usr/local/arm/2.95.3/bin/arm-linux-gcc
AR =/usr/local/arm/2.95.3/bin/arm-linux-ar rc
AR2=/usr/local/arm/2.95.3/bin/arm-linux-ranlib
cp jconfig.doc jconfig.h
mkdir -p /qtarm/qt/man/man1
make
在.libs下生成libjpeg.so,将libjpeg.so复制到/usr/local/arm/2.95.3/bin/arm-linux/lib下.
6.helloworld.o: could not read symbols: File in wrong format
make clean
make
7.QT Thread编译错误
原因是:找不到支持线程的库,和QT_THREAD_SUPPORT没有定义,解决方法:在(*.pro)里添加一行CONFIG += thread,在Makefile内和添加-lstdc++
8.针对QT-X11无法增加thread功能(make -f src-
mt.mk)出错部分于错误的guithreads内Makefile中新增-
DQT_THREAD_SUPPORT -D_REENTRANT