problemas com a library qt-mt
Pessoal,
fui compilar um programa pro KDE e o configure não consegue encontrar a
library qt-mt.
checking for Qt... configure: error: Qt (>= Qt 3.0.1) (library qt-mt) not
found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!
So que aparentemente ta tudo instalado,
[ronaldo@debian SRC]$ dpkg -l | grep qt3
ii libqt3 3.1.2-0woody1 Qt Library
ii libqt3-compat- 3.1.2-0woody1 Qt 1.x and 2.x compatibility includes
ii libqt3-headers 3.1.2-0woody1 Qt3 header files
ii libqt3-i18n 3.1.2-0woody1 i18n files for Qt3 library
ii libqt3-mt 3.1.2-0woody1 Qt GUI Library (Threaded runtime version)
ii libqt3-mt-dev 3.1.2-0woody1 Qt development files (Threaded)
ii libqt3-mt-mysq 3.1.2-0woody1 MySQL database driver for Qt3 (Threaded)
ii libqt3-mt-odbc 3.1.2-0woody1 ODBC database driver for Qt3 (Threaded)
ii libqt3-mt-psql 3.1.2-0woody1 PostgreSQL database driver for Qt3 (Threaded
ii libqt3-mysql 3.1.2-0woody1 MySQL database driver for Qt3
ii libqt3-odbc 3.1.2-0woody1 ODBC database driver for Qt3
ii libqt3-plugins 3.1.2-0woody1 Qt3 plugin header files
ii libqt3-psql 3.1.2-0woody1 PostgreSQL database driver for Qt3
ii qt3-apps-dev 3.1.2-0woody1 Qt3 Developer applications development files
ii qt3-assistant 3.1.2-0woody1 The Qt3 assistant application
ii qt3-designer 3.1.2-0woody1 Qt3 Designer
ii qt3-dev-tools 3.1.2-0woody1 Qt3 development tools
ii qt3-dev-tools- 3.1.2-0woody1 Conversion utilities for Qt3 development
ii qt3-dev-tools- 3.1.2-0woody1 Tools to develop embedded Qt applications
ii qt3-doc 3.1.2-0woody1 Qt3 API documentation
ii qt3-examples 3.1.2-0woody1 Examples for Qt3
ii qt3-linguist 3.1.2-0woody1 The Qt3 Linguist
ii qt3-qtconfig 3.1.2-0woody1 The Qt3 Configuration Application
ii qt3-tools 3.0.3-20020329 Qt GUI Designer and other Qt3 based tools
Ja tentei colocando
./configure --with-qt-dir=/usr/share/qt3/
colocando o diretorio do includes do lib etc e da o mesmo erro.
Será que falta realmente algo ou é outro problema?
[root@debian lib]# ls
libdesigner.a libqassistantclient.a libqt-mt.so.3 libqui.prl
libdesigner.prl libqassistantclient.prl libqt-mt.so.3.1 libqui.so
libeditor.a libqt-mt.prl libqt.so.3 libqui.so.1
libeditor.prl libqt-mt.so libqt.so.3.1 libqui.so.1.0
na verdade elas apontam para outra lib, a /usr/lib/libqt-mt.so.3.1.2.
O erro no config.log é:
configure:6618: checking for Qt
configure: 6682: /usr/share/qt3//include/qstyle.h
taking that
configure:6794: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions
-fno-check-new -I/usr/share/qt3//include -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/share/qt3//lib -L/usr/X11R6/lib
conftest.C -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE
-lresolv -lpthread 1>&5
/tmp/cche9HaC.o(.text+0xe): In function `main':
: undefined reference to `QString::null'
/tmp/cche9HaC.o(.text+0x13): In function `main':
: undefined reference to `QStyleFactory::create(QString const&)'
/tmp/cche9HaC.o(.text+0x20): In function `main':
: undefined reference to `QCursor::QCursor[in-charge](int)'
/tmp/cche9HaC.o(.text+0x28): In function `main':
: undefined reference to `QCursor::~QCursor [in-charge]()'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0xc): undefined reference to
`QGList::clear()'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0x10): undefined reference to
`QGList::~QGList [in-charge]()'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0x14): undefined reference to
`QGList::~QGList [in-charge deleting]()'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0x18): undefined reference to
`QPtrCollection::newItem(void*)'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0x20): undefined reference to
`QGList::compareItems(void*, void*)'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0x24): undefined reference to
`QGList::read(QDataStream&, void*&)'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTV6QGList+0x28): undefined reference to
`QGList::write(QDataStream&, void*) const'
/tmp/cche9HaC.o(.gnu.linkonce.r._ZTI6QGList+0x8): undefined reference to
`typeinfo for QPtrCollection'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 301)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
E ai,
Alguma ideia
Valeu
Ronaldo
--
What's a cult? It just means not enough people to make a minority.
-- Robert Altman
--
|> // | \\ [***********************************]
| ( õ õ ) [Ronaldo Reis Júnior ]
|> V [UFV/DBA-Entomologia ]
| / \ [36571-000 Viçosa - MG ]
|> /(.''`.)\ [Fone: 31-3899-2532 ]
| /(: :' :)\ [chrysopa@insecta.ufv.br ]
|>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
| ( `- ) [***********************************]
|>> _/ \_Powered by GNU/Debian Woody/Sarge
Reply to: