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重新编辑 ]