Menu

#2 Can't compile

open
nobody
5
2002-09-18
2002-09-18
Anonymous
No

I run configure with the --prefix=/usr flag, but this
isn't my problem.
The script tells me that he can't find the qt
libraries. I have qt. I have compiled programs using
qt. The script simply tells me:

---output---
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.
---end output---

So, I looked into config.log and I realized that it had
problems with QIconView.

---last lines of config.log---
configure:5274: checking for Qt
tried NO
tried /usr/local/qt/lib
tried /usr/local/qt
configure:5435: 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/local/qt/include -I/usr/X11R6/include
-L/usr/lib/qt2/lib -L/usr/X11R6/lib conftest.C -lqt
-lpng -lz -lm -ljpeg -lXext -lX11 -lSM -lICE 1>&5
conftest.C: In function `int main()':
conftest.C:16: `QIconView' undeclared (first use this
function)
conftest.C:16: (Each undeclared identifier is reported
only once for each
function it appears in.)
conftest.C:16: parse error before `(' token
conftest.C:17: `iv' undeclared (first use this function)
conftest.C:15: warning: unused variable `QStringList*t'
conftest.C:20: warning: unused variable `int magnolia'
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;
}

---end of config.log---

What am I doing wrong? I already told configure to look
the libraries of qt in a specified dir with
--with-qt-dir=/usr/local/qt or with
--with-qt-libraries=/usr/local/qt/lib .

Discussion


Log in to post a comment.

MongoDB Logo MongoDB