• 6127阅读
  • 6回复

关于fedora的默认QT [复制链接]

上一主题 下一主题
离线shifan
 
只看楼主 倒序阅读 楼主  发表于: 2009-09-12
有人使用fedora 吗?为什么fedora的默认Qt总是Qt3.3啊?为什么不与时俱进啊?
离线supercyper
只看该作者 1楼 发表于: 2009-09-12
rpm -qi qt
Name        : qt                           Relocations: (not relocatable)
Version     : 4.5.2                             Vendor: Fedora Project
Release     : 3.fc11                        Build Date: 2009年09月01日 星期二 01时11分33秒
Install Date: 2009年09月03日 星期四 23时58分59秒      Build Host: x86-5.fedora.phx.redhat.com
Group       : System Environment/Libraries   Source RPM: qt-4.5.2-3.fc11.src.rpm
Size        : 11069319                         License: LGPLv2 with exceptions or GPLv3 with exceptions
Signature   : RSA/SHA1, 2009年09月02日 星期三 23时34分24秒, Key ID 1dc5c758d22e77f2
Packager    : Fedora Project
URL         : http://www.qtsoftware.com/
Summary     : Qt toolkit
Description :
Qt is a software toolkit for developing applications.

This package contains base tools, like string, xml, and network
handling.
离线shifan
只看该作者 2楼 发表于: 2009-09-12
rpm -qi qt
qt-4.5.0-14.fc11.i586

echo $QTDIR
/usr/lib/qt-3.3

这是怎么回事,以哪个为准啊?
离线shifan
只看该作者 3楼 发表于: 2009-09-12
main.o: In function `main':
main.cpp:(.text+0x44): undefined reference to `QTreeView::QTreeView(QWidget*)'
main.cpp:(.text+0x66): undefined reference to `QListView::QListView(QWidget*)'
main.cpp:(.text+0x88): undefined reference to `QTableView::QTableView(QWidget*)'
main.cpp:(.text+0x9b): undefined reference to `QSplitter::QSplitter(QWidget*)'
main.cpp:(.text+0xb0): undefined reference to `QSplitter::addWidget(QWidget*)'
main.cpp:(.text+0xc5): undefined reference to `QSplitter::addWidget(QWidget*)'
main.cpp:(.text+0xda): undefined reference to `QSplitter::addWidget(QWidget*)'
main.cpp:(.text+0xfd): undefined reference to `QStandardItemModel::QStandardItemModel(int, int, QObject*)'
main.cpp:(.text+0x14e): undefined reference to `QString::fromAscii_helper(char const*, int)'
main.cpp:(.text+0x188): undefined reference to `QString::arg(long long, int, int, QChar const&) const'
main.cpp:(.text+0x1bf): undefined reference to `QString::arg(long long, int, int, QChar const&) const'
main.cpp:(.text+0x1dc): undefined reference to `QStandardItem::QStandardItem(QString const&)'
main.cpp:(.text+0x26e): undefined reference to `QString::fromAscii_helper(char const*, int)'
main.cpp:(.text+0x2a8): undefined reference to `QString::arg(long long, int, int, QChar const&) const'
main.cpp:(.text+0x2c5): undefined reference to `QStandardItem::QStandardItem(QString const&)'
main.cpp:(.text+0x2cd): undefined reference to `QStandardItem::rowCount() const'
main.cpp:(.text+0x2d9): undefined reference to `QListData::shared_null'
main.cpp:(.text+0x2e0): undefined reference to `QListData::shared_null'
main.cpp:(.text+0x305): undefined reference to `QStandardItem::insertRow(int, QList<QStandardItem*> const&)'
main.cpp:(.text+0x329): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x339): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x364): undefined reference to `QStandardItemModel::setItem(int, int, QStandardItem*)'
main.cpp:(.text+0x408): undefined reference to `QAbstractItemView::selectionModel() const'
main.cpp:(.text+0x433): undefined reference to `QAbstractItemView::selectionModel() const'
main.cpp:(.text+0x469): undefined reference to `QApplication::QApplication(int&, char**, int)'
main.cpp:(.text+0x483): undefined reference to `QStandardItemModel::~QStandardItemModel()'
main.cpp:(.text+0x4a7): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x4b7): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x4c7): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x4f9): undefined reference to `QStandardItemModel::~QStandardItemModel()'
main.cpp:(.text+0x52e): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x546): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x580): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x598): undefined reference to `QString::free(QString::Data*)'
main.cpp:(.text+0x5b4): undefined reference to `QString::free(QString::Data*)'
main.o: In function `QList<QStandardItem*>::free(QListData::Data*)':
main.cpp:(.text._ZN5QListIP13QStandardItemE4freeEPN9QListData4DataE[QList<QStandardItem*>::free(QListData::Data*)]+0x15): undefined reference to `qFree(void*)'
main.o: In function `QList<QStandardItem*>::detach_helper()':
main.cpp:(.text._ZN5QListIP13QStandardItemE13detach_helperEv[QList<QStandardItem*>::detach_helper()]+0xe): undefined reference to `QListData::detach2()'
main.o: In function `QList<QStandardItem*>::append(QStandardItem* const&)':
main.cpp:(.text._ZN5QListIP13QStandardItemE6appendERKS1_[QList<QStandardItem*>::append(QStandardItem* const&)]+0x29): undefined reference to `QListData::append()'
collect2: ld 返回 1
make: *** [threeview] 错误 1

这种编译信息能够说明什么?
离线wd007

只看该作者 4楼 发表于: 2009-09-14
这没有什么好计较的,你安装Qt4就可以了,别忘了设置一下环境
欢迎访问我的博客,一起学习提高
http://blog.csdn.net/qter_wd007
离线iiiyyyhhhsss

只看该作者 5楼 发表于: 2009-09-19
下面是我的整个qt安装过程,还需要哪些步骤呢?
-------------
我是在Linux下安装qt-sdk-linux-x86-opensource-2009.03.1.bin
首先,重装了Linux系统,是Fedora8版本,
没有做任何其它操作的情况下,然后下载了这个.bin文件
接着我在终端输入了两条指令
chmod u+x qt-sdk-linux-x86-opensource-2009.03.1.bin
./qt-sdk-linux-x86-opensource-2009.03.1.bin
就条出来一个安装的页面,根据安装提示,我把qt安装到/opt/qtsdk-2009.03这个目录下
最后我到截图中的那个页面作了版本设置
-----------------
离线wd007

只看该作者 6楼 发表于: 2009-09-21
没有看到你的截图,你是说你的安装有问题是吗。

说句题外话,建议不要使用FC系列了,有好多的问题(我遇到过很多),被誉为小白鼠。呵呵,还是试试其它的发行版吧。
欢迎访问我的博客,一起学习提高
http://blog.csdn.net/qter_wd007
快速回复
限100 字节
 
上一个 下一个