• 6999阅读
  • 5回复

新手请教Qt/Embedded的安装与使用 [复制链接]

上一主题 下一主题
离线mathieu
 

只看楼主 倒序阅读 楼主  发表于: 2007-01-30
大家好,我刚刚购买了一块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上面的开发又有什么区别啊?现在我是拿着开发板没法下手,郁闷。。。

谢谢!
离线careerman

只看该作者 1楼 发表于: 2007-02-05
伙计,我也是今天才貌似装上qt/e,到我的blog里面看吧,我能保证你能装上环境,但至于arm-linux-g++: command not found
这样的错误我也不清楚拉。

http://careerman.blog.ccidnet.com/blog/ccid/uid_12026.html
离线uniquezhu
只看该作者 2楼 发表于: 2007-02-12
arm-linux-g++: command not found

是你的交叉编译环境没建立好,不然编译的东西不能在ARM板子上用的,CPU的架构不同
离线shiroki

只看该作者 3楼 发表于: 2007-02-12
要把这个命令所在的路径放到你的path里
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线mzl626

只看该作者 4楼 发表于: 2007-02-28
你不是编译器选项没设吧?
离线snake
只看该作者 5楼 发表于: 2007-03-28
简单,你需要先建立交叉编译环境,比如我的是(cross-tools)3.3.2,  然后设好环境变量(好像有三个,TARGET、P**忘了), arm-linux-g++这个命令就在里面
热爱自由,热爱Linux
快速回复
限100 字节
 
上一个 下一个