这次没有遇到段错误,赶快记下来。。。
编译内核与tslib用的都是天嵌公司的arm-linux-gcc4.3.3,
编译Qt4.5.0的库及应用程序用的是openmoko的arm-linux-gcc412.
Qt4.5.0的配置参数如下:
./configure \
-prefix /usr/Qt450armgcc412 \
-release \
-shared \
-fast \
-no-largefile \
-qt-sql-sqlite \
-no-qt3support \
-no-xmlpatterns \
-no-mmx \
-no-3dnow \
-no-see \
-no-see2 \
-no-svg \
-no-webkit \
-qt-zlib \
-qt-gif \
-qt-libtiff \
-qt-libpng \
-qt-libjpeg \
-make libs \
-nomake examples \
-nomake demo \
-nomake docs \
-no-nis \
-no-cups \
-noiconv \
-no-dbus \
-no-openssl \
-no-xplatform qws/linux-arm-g++ \
-embedded arm \
-little-endian \
-qt-freetype \
-depths 16 \
-qt-gfx-linuxfb \
-qt-gfx-transformed \
-qt-gfx-multiscreen \
-no-gfx-vnc \
-no-gfx-qvfb \
-qt-kbd-usb \
-no-glib \
-armfpa \
-qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
profile添加如下:
export QTDIR=/usr/Qt450armgcc412
export QPEDIR=/usr/Qt450armgcc412
export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
export QWS_DISPLAY=LinuxFb:/dev/fb0
export QWS_SIZE=240x320
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$QTDIR/lib:$LD_LIBRARY_PATH
随便拷贝一个例子编译,运行一下~
阅读(1815) | 评论(0) | 转发(0) |