首页| 论坛| 消息

标题:qte-arm程序如何在arm上运行
作者:inselberg
日期:2009-05-22 11:01
内容:

我弄了个简单的qt-embedded-arm的程序,在板子上运行出问题。
问题为: conn't connect to X server。  他为什么要connect x server呢?我是qt embedded版本编的呀。
我实验的步骤:
1.  在x86上编译好qt-embedded-arm的应用程序,比如说是hello。
2.  把qt-embedded-arm下的lib拷贝到了arm板子上,并添加了环境变量。
3.  把hello程序拷贝到板子上,执行     ./hello -qws
qte-arm的程序应该不需要x11的吧。为什么他运行的时候还是提示要connect x server。


#1 [smalltiancai 05-22 14:47]
在开发板上运行的时候 只用拷贝/ usr/local/Trolltech/QtEmbedded-4.4.3-arm/lib里面的文件到开发板上就行了吗?
#2 [bhwbj 05-27 17:29]
qmake是谁的?是qt的还是qte的很重要的。检查下环境变量。
to1楼,理论上只需要拷贝3个库文件:libGui.so.4.5.1 libCore.so.4.5.1 libNetwork.so.4.5.1和fonts.还要在板上设置好环境变量。
#3 [bhwbj 05-27 17:32]
Qt-Embedded 4 install
 
1、安装Qt-Embedded-linux
安装Qt-Embedded-linux有两种方法,一种是从源码安装,一种是直接安装。如果不需要在PC机上进行Qt-Embedded程序调试,可以不需要安装Qt-x11和Qt-Embedded for x86
(1) 源码安装
首先从 ftp://ftp.trolltech.com/qt/source/ 下载以下源码包:
qt-x11-opensource-src-4.5.0.tar
qt-embedded-linux-opensource-src-4.5.0.tar
安装Qt-x11
# tar jxvf qt-x11-opensource-src-4.5.0.tar
# cd qt-x11-opensource-src-4.5.0
# echo "yes" | ./configure –qvfb–no-openssl –no-webkit
# make && make install
安装Qt-Embedded for x86
# tar jxvf qt-embedded-linux-opensource-src-4.5.0.tar
# cd qt-embedded-linux-opensource-src-4.5.0
# echo "yes" | ./configure \
-release \
-shared \
-no-qt3support \
-no-xmlpatterns \
-no-svg \
-no-webkit \
-system-zlib \
-qt-gif \
-system-libtiff \
-system-libpng \
-qt-libmng \
-system-libjpeg \
-make libs \
-make tools \
-nomake examples \
-nomake docs \
-nomake demo \
-no-nis \
-no-cups \
-no-iconv \
-no-dbus \
-no-openssl \
-xplatform qws/linux-x86-g++ \
-embedded x86 \
-qt-freetype \
-depths 16,18 \
-qt-gfx-qvfb \
-no-gfx-transformed \
-no-gfx-multiscreen \
-no-gfx-vnc \
-no-gfx-linuxfb \
-qt-kbd-tty \
-qt-kbd-usb \
-qt-kbd-qvfb \
-qt-mouse-pc \
-qt-mouse-qvfb \
-no-glib \
-silent
# make && make install
安装Qt-Embedded for ARM
# tar jxvf qt-embedded-linux-opensource-src-4.5.0.tar
# cd qt-embedded-linux-opensource-src-4.5.0
# echo "yes" | ./configure \
-release \
-shared \
-no-qt3support \
-no-xmlpatterns \
-no-svg \
-no-webkit \
-system-zlib \
-qt-gif \
-system-libtiff \
-system-libpng \
-qt-libmng \
-system-libjpeg \
-make libs \
-make tools \
-nomake examples \
-nomake docs \
-nomake demo \
-no-nis \
-no-cups \
-no-iconv \
-no-dbus \
-no-openssl \
-xplatform qws/linux-arm-g++ \
-embedded arm \
-little-endian \
-qt-freetype \
-depths 16,18 \
-qt-gfx-linuxfb \
-no-gfx-transformed \
-no-gfx-multiscreen \
-no-gfx-vnc \
-no-gfx-qvfb \
-qt-kbd-tty \
-qt-kbd-usb..

回复 发表
主题 版块