No matter what program I try to compile that needs Qt i get the following
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (libraries) not found.
Please check your installation!
For more details about this problem, look at the end of config.log.
and in the config log it shows me
configure:5271: checking for Qt
tried NO
configure:5432: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
-fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin
-I/usr/lib/qt2/include -I/usr/X11R6/include -L/usr/lib/qt2/lib
-L/usr/X11R6/lib conftest.C -lqt -ljpeg -lXext -lX11 -lSM -lICE 1>&5
conftest.C: In function `int main()':
conftest.C:15: warning: unused variable `QStringList*t'
conftest.C:20: warning: unused variable `int magnolia'
/tmp/ccrphGpY.o: In function `main':
/tmp/ccrphGpY.o(.text+0x41): undefined reference to `QString::shared_null'
/tmp/ccrphGpY.o(.text+0x74): undefined reference to
`QIconView::QIconView(QWidget*, char const*, unsigned)'
/tmp/ccrphGpY.o(.text+0x84): undefined reference to
`QIconView::setWordWrapIconText(bool)'
/tmp/ccrphGpY.o(.text+0x89): undefined reference to `QString::shared_null'
/tmp/ccrphGpY.o(.text+0xa9): undefined reference to `QString::setLatin1(char
const*, int)'
/tmp/ccrphGpY.o(.text+0xbe): undefined reference to `QString::shared_null'
/tmp/ccrphGpY.o(.text+0xc9): undefined reference to
`QStringData::deleteSelf()'
/tmp/ccrphGpY.o(.text+0xdb): undefined reference to `QIconView::~QIconView()'
/tmp/ccrphGpY.o(.text+0xf2): undefined reference to `QString::shared_null'
/tmp/ccrphGpY.o(.text+0x101): undefined reference to
`QString::makeSharedNull()'
/tmp/ccrphGpY.o(.text+0x108): undefined reference to
`QString::makeSharedNull()'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qapp.h>
#include <qobjcoll.h>
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >= 222)
#error 1
#endif
int main() {
QStringList *t = new QStringList();
QIconView iv(0);
iv.setWordWrapIconText(false);
QString s;
s.setLatin1("Elvis is alive", 14);
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
return 0;
}
I have qt installed and libqt-devel.
I don't understand why it doesn't work anyone have and ideas ?/