标题:qt-embedded-2.3.10安装出错
作者:garden009
日期:2006-05-19 16:49
内容:
linux9.03安装qt-embedded-2.3.10执行下列命令:新建qconfig-local.h文件保存到qt-2.3.10/src/tools
# cd qt-2.3.10
# export QTDIR=$PWD
# export QTEDIR=$QTDIR
# export PATH=$QTDIR/bin:$PATH
# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
# ./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.
# 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: miss ..
#1 [btopcst 05-19 22:43]
////////////////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
#2 [garden009 05-20 10:15]
我照着做了,为什么还是一样的错误!+
#3 [shiroki 05-22 17:56]
你的qconfig-local.h里面有什么内容? 会不会是这个文件的问题?
还有你看看机器上装lex和yacc了吗, 没装的话装一个试试
#4 [garden009 05-22 20:45]
果然是qconfig-local.h内容,我把里面的内容清空就好了.书上不 是说要编写吗?我之前是照书上作的!
谢谢大侠!