• 6213阅读
  • 4回复

qt-embedded-2.3.10安装出错 [复制链接]

上一主题 下一主题
离线garden009
 
只看楼主 倒序阅读 楼主  发表于: 2006-05-19
linux9.03安装qt-embedded-2.3.10执行下列命令: 新建qconfig-local.h文件保存到qt-2.3.10/src/tools
[root@localhost qt]# cd qt-2.3.10
[root@localhost qt-2.3.10]# export QTDIR=$PWD
[root@localhost qt-2.3.10]# export QTEDIR=$QTDIR
[root@localhost qt-2.3.10]# export PATH=$QTDIR/bin:$PATH
[root@localhost qt-2.3.10]# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
[root@localhost qt-2.3.10]# ./configure -qconfig local -qvfb -depths 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

Build type:   linux-x86-g++-shared

Thread support..................... no
Configuration...................... qconfig-local.h

Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.

[root@localhost qt-2.3.10]# make
结果如下:
                                   
make[1]: Entering directory `/qt/qt-2.3.10'
cd src/moc; make
make[2]: Entering directory `/qt/qt-2.3.10/src/moc'
g++ -c -I/qt/qt-2.3.10/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG
-DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_BUILDING_MOC -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
In file included from /qt/qt-2.3.10/include/qglobal.h:464,
          from /qt/qt-2.3.10/include/qcollection.h:42,
          from /qt/qt-2.3.10/include/qglist.h:42,
          from /qt/qt-2.3.10/include/qlist.h:42,
          from moc.y:57:
/qt/qt-2.3.10/include/qconfig.h:11:11: missing binary operator before '('
y.tab.c: In function `int yyparse()':
y.tab.c:3175: warning: label `yyerrlab' defined but not used
/qt/qt-2.3.10/include/qlist.h: At top level:
mocgen.cpp:4: warning: `char yyrcsid[52]' defined but not used
make[2]: *** [mocgen.o] Error 1
make[2]: Leaving directory `/qt/qt-2.3.10/src/moc'
make[1]: *** [src-moc] Error 2
make[1]: Leaving directory `/qt/qt-2.3.10'
make: *** [init] Error 2
请问是什么原因,装2.3.7版出现同样问题,是否是linux装机不完全!要重装系统吗?
[ 此贴被XChinux在2006-05-19 17:17重新编辑 ]
离线btopcst
只看该作者 1楼 发表于: 2006-05-19
////////////////qt-2.3.7
1.資料:
   tmake-1.13.tar.gz
   qt-embedded-2.3.7
2.tar -xvzf tmake-1.13.tar.gz
3.tar -xvzf qt-embedded-2.3.7
4.cd qt-2.3.7
export TMAKEDIR=/root/tmake-1.13
export TMAKEPATH=/root/tmake-1.13/lib/linux-g++
export PATH=$PATH:/root/tmake-1.13/bin
export QTDIR=/root/qt-2.3.7
export QTEDIR=/root/qt-2.3.7
export LD_LIBRARY_PATH=/root/qt-2.3.7/lib:$LD_LIBRARY_PATH
export PATH=/root/qt-2.3.7/bin:$PATH
5.configure -jpeg
yes
5mb
16
yes(x11)
6.make

////////////////qt-2.3.10
這一部份…我都是照網路上的訊息一步一步做…絕對可以過的…
http://doc.trolltech.com/2.3/install-qws.html
离线garden009
只看该作者 2楼 发表于: 2006-05-20
我照着做了,为什么还是一样的错误!+
离线shiroki

只看该作者 3楼 发表于: 2006-05-22
你的qconfig-local.h里面有什么内容? 会不会是这个文件的问题?

还有你看看机器上装lex和yacc了吗, 没装的话装一个试试
--
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
离线garden009
只看该作者 4楼 发表于: 2006-05-22
果然是qconfig-local.h内容,我把里面的内容清空就好了.书上不 是说要编写吗?我之前是照书上作的!
谢谢大侠!
快速回复
限100 字节
 
上一个 下一个