Chinaunix首页 | 论坛 | 博客
  • 博客访问: 73008
  • 博文数量: 11
  • 博客积分: 391
  • 博客等级: 一等列兵
  • 技术积分: 125
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-31 09:02
文章分类

全部博文(11)

文章存档

2011年(4)

2010年(7)

我的朋友

分类: C/C++

2010-07-11 09:55:48

这次没有遇到段错误,赶快记下来。。。
编译内核与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
 
随便拷贝一个例子编译,运行一下~
 
阅读(1777) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~