标题:【提问】请问在debian或ubuntu下如何安装qt4.1.0?
作者:xishuai
日期:2006-02-13 17:31
内容:
[求教]请问在debian或ubuntu下如何安装qt4.1.0?
我的出错信息如下:
liuxi@liuxi:/tmp/qt-x11-opensource-src-4.1.0$ ls
bin demos INSTALL OPENSOURCE-NOTICE.TXTsrc
changes-4.1.0doc LICENSE.GPLprojects.pro tools
config.tests examplesLICENSE.QPLqmake translations
configure include mkspecs README
liuxi@liuxi:/tmp/qt-x11-opensource-src-4.1.0$ ./configure
This is the Qt/X11 OpenSource Edition.
You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).
Type 'Q' to view the Q Public License.
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 either license? yes
Creating qmake. Please wait...
g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/tmp/qt-x11-opensource-src-4.1.0/src/corelib/arch/generic -I/tmp/qt-x11-opensource-src-4.1.0/include -I/tmp/qt-x11-opensource-src-4.1.0/include/QtCore -I/tmp/qt-x11-opensource-src-4.1.0/include -I/tmp/qt-x11-opensource-src-4.1.0/include/QtCore -I/tmp/qt-x11-opensource-src-4.1.0/src/corelib/global -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/tmp/qt-x11-opensource-src-4.1.0/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANTproject.cpp
In file included from /tmp/qt-x11-opensource-src-4.1.0/include/QtCore/qbytearray.h:1,
from /tmp/qt-x11-opensource-src-4.1.0/include/QtCore/../../src/corelib/tools/qstring.h:28,
from /tmp/qt-x11-opensource-src-4.1.0/inclu ..
#1 [XChinux 02-13 18:51]
你是不是没有C++标准库或者是标准库安装的位置不对?
上面提示的是找不到string.h, stdlib.h等这些文件
#2 [xishuai 02-13 23:13]
这是我刚刚装的ubuntu5.10版本,只是用apt-get install gcc
apt-get install g++
apt-get install make
安装了一下,没有其他设置,除非是ubuntu自身的库设置问题???
#3 [yfy002 02-14 01:17]
if(version(gcc)==3.x)
sudo apt-get install libstdc++6-dev
else
sudo apt-get installlibstdc++6-4.0-dev
#4 [xishuai 02-14 03:24]
I had did that !
But I also can't !
------------------------------------------------------to every debianer/ubuntuer ?????????
#5 [xishuai 02-14 04:59]
我的问题是之前的库不够(不知道怎么形容),然后多装了一
些带有libc或glibc的库,。/configure过去了,
但是make时出错:
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:51:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:50:22: error: X11 /Xlib.h: 没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:55:23: error: X11 /Xutil.h: 没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:56:21: error: X11 /Xos.h: 没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:57:23: error: X11 /Xatom.h: 没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:246: 错误:‘Color map’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:247: 错误:ISO C+ + 不允许声明无类型的 ‘Visual’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:247: 错误:expect ed ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:260: 错误:‘Windo w’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:263: 错误:‘Windo w’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:264: 错误:‘Windo w’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:264: 错误:‘Atom’未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:265: 错误:‘Atom’未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:266: 错误:‘Windo w’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:266: 错误:‘Atom’未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:277: 错误:expect ed ‘,’ or ‘...’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:277: 错误:ISO C+ + 不允许声明无类型的 ‘XSelectionRequestEvent’
../../include/QtGui ..