Programs do not recognize QT correctly

Francis Bouchard fbouchard75 at hotmail.com
Wed Nov 6 21:48:42 GMT 2002


I have compiled QT 3.0.5 and I ran configure but it ends up with the message 
that the library qt-mt is not found.  I included the program from config.log 
that failed to run.




configure:16751: checking for Qt
configure: 16818: /usr/lib/qt3-gcc3.0/include/qstyle.h
taking that
tried NO
configure:16928: 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 -g -O2 
-fno-exceptions -fno-check-new -I/usr/lib/qt3-gcc3.0/include 
-I/usr/X11R6/include -I/usr/include/g++-3  -DQT_THREAD_SUPPORT  -D_REENTRANT 
  -L/usr/lib/qt3-gcc3.0/lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt -lpng 
-lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv -lpthread 1>&5
/tmp/cc37YyxN.o: In function `QValueList<QString>::detachInternal(void)':
/usr/lib/qt3-gcc3.0/include/qshared.h:50: undefined reference to 
`QString::null'
/usr/lib/qt3-gcc3.0/include/qshared.h:50: undefined reference to 
`QStyleFactory::create(QString const &)'
/tmp/cc37YyxN.o: In function `QValueList<QString>::detachInternal(void)':
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QCursor::QCursor(int)'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QCursor::~QCursor(void)'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::shared_null'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::makeSharedNull(void)'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::shared_null'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::shared_null'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QStringData::deleteSelf(void)'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::shared_null'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::shared_null'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QStringData::deleteSelf(void)'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::QString(QString const &)'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::shared_null'
/usr/lib/qt3-gcc3.0/include/qvaluelist.h:610: undefined reference to 
`QString::makeSharedNull(void)'
collect2: ld returned 1 exit status
configure:16931: $? = 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:16971: 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!





_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list