LINUX.ORG.RU
ФорумAdmin

Глюк с qt


0

0

Не компилится тестовый пример в скрипте configure, который проверяет
библиотеку qt. Пути qtdir и прочие прописаны правильно, qt 3.0.4 с
threads gcc 3.1. В чем прикол???


Вот такой кусок появляется в config.log после запуска configure:

configure:21553: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -I/usr/lib/qt-3.0.4/include -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/lib/qt-3.0.4/lib -L/usr/X11/lib   conftest.cc  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv -lpthread 1>&5
cc1plus: warning: changing search order for system directory "/usr/lib/qt-3.0.4/include"
cc1plus: warning:   as it has already been specified as a non-system directory
/tmp/ccmthTo6.o: In function `main':
/tmp/ccmthTo6.o(.text+0x12): undefined reference to `QString::null'
/tmp/ccmthTo6.o(.text+0x17): undefined reference to `QStyleFactory::create(QString const&)'
/tmp/ccmthTo6.o(.text+0x27): undefined reference to `QCursor::QCursor[in-charge](int)'
/tmp/ccmthTo6.o(.text+0x2f): undefined reference to `QCursor::~QCursor [in-charge]()'
collect2: ld returned 1 exit status
configure:21556: $? = 1
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 >= 303)
#error 1
#endif

int main() {
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
    return 0;
}
configure:21596: error: Qt (>= Qt 3.0.3) (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!

Re: Глюк с qt

Значит, без нитей, иначе у тебя был бы qt-mt.

jackill ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.