大家好,我刚刚购买了一块2410的板子,打算使用qt做一个图形界面移植到这块板子上。由于是新手且生性愚钝,碰到一些很菜的问题,希望能得到你的指点。
1. 在综合比较了MiniGUI、QT、MicroWindows后,我打算采用QT做图形界面开发,好像QT相对来说要简单些?
2. 我的电脑是Windows 2000的系统,用VMware虚拟安装了Redhat Linux release 9 (shrike) Linux 2.4.20-8,Redhat Linux的KDE桌面里自带有QT Designer,但是好像不能在arm开发板上使用,必须要安装Qt/Embedded,我在别人的blog里找到一篇文章,里面详细介绍了Qt/Embedded开发环境建立的过程(详见:
http://blog.csdn.net/learndkid/archive/2006/06/27/839568.aspx),但是在该教程的第二步:安装Qt/Embedded 2.3.7时,却有以下提示:
[root@localhost opt]# cd qt-2.3.7
[root@localhost qt-2.3.7]# export QTDIR=$PWD
[root@localhost qt-2.3.7]# export QTEDIR=$QTDIR
[root@localhost qt-2.3.7]# export PATH=$QTDIR/bin:$PATH
[root@localhost qt-2.3.7]# export
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
[root@localhost qt-2.3.7]# ./configure -qconfig -qvfb -depths 4,8,16,32
This is the Qt/Embedded Free Edition.
You are licensed to use this software under the terms of
the GNU General Public License (GPL).
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the license?
yes
configure: no such file: src/tools/qconfig--qvfb.h[root@localhost qt-2.3.7]#
于是我又在网上搜索,好像是需要把一个qconfig-local.h的文件拷到src/tools的目录下,但是我没有这个文件啊,我自己在这个目录下面建立了一个文件名为qconfig-local.h,内容为:
#ifndef QT_H
#endif // QT_H
// Note that disabling more features will produce a libqte that is not
// compatible with other libqte builds.
#ifndef QT_DLL
#define QT_DLL // Internal
#endif
#define QT_QWS_IPAQ
// Platforms where mouse cursor is never required.
#if defined(QT_QWS_IPAQ) || defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_SL5XXX)
# define QT_NO_QWS_CURSOR
# define QT_NO_QWS_MOUSE_AUTO
#endif
的文件,然后:
cd qt-2.3.7
export QTDIR=$PWD
export QTEDIR=$QTDIR
make clean
./configure -xplatform linux-arm-g++ -shared -debug -qconfig local -qvfb -depths 4,8,16,32
make
这次在configure时没有出错了,然而make时又提示/bin/sh: line1: arm-linux-g++: command not found
我想请教:到底Qt/Embedded应该怎样才能正确安装?Qt/Embedded是个什么样的环境?能不能提供一个简单的小实验,让我们这些新手知道Qt/Embedded的开发到底是怎么回事?它和QT Designer上面的开发又有什么区别啊?现在我是拿着开发板没法下手,郁闷。。。
谢谢!