ts1.4编译通过后安装的目录:/share/tslib (文件系统根目录下)
./configure --prefix=/share/tslib --host=arm-linux ac_cv_func_malloc_0_nonnull=yes --enable-inputapi=yes
make
make install
QTE3.3.8配置:
设置环境变量
export QTDIR=/root/build_qt/qte
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/arm/4.1.2/bin:$QTDIR/bin:$PATH
./configure -qt-libjpeg -qt-gif -qt-libpng -system-libjpeg -qt-libmng -qt-imgfmt-jpeg -embedded arm -thread -no-cups -no-stl -no-mouse-pc -no-mouse-yope -no-mouse-bus -no-mouse-vr41xx -qt-mouse-tslib -I/share/tslib/include -L/share/tslib/lib -lts -qconfig local -depths 4,8,16,32 -qvfb
问题1来了:
/usr/bin/ld: skipping incompatible /share/tslib/lib/libts.so when searching for -lts
/usr/bin/ld: cannot find -lts
collect2: ld 返回 1
make[2]: *** [../../bin/moc] 错误 1
make[2]: Leaving directory `/root/build_qt/qte/src/moc‘
make[1]: *** [src-moc] 错误 2
make[1]: Leaving directory `/root/build_qt/qte‘
make: *** [init] 错误 2
说明没有bin/中没有moc 命令,需再一次复制/usr/lib/qt-3.3/bin/moc 到你的配置文件中的/bin中 直到不再提示错误