LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I will destroy QT and all who follow it!!!! (https://www.linuxquestions.org/questions/linux-software-2/i-will-destroy-qt-and-all-who-follow-it-73161/)

ciphercam 07-16-2003 02:26 AM

I will destroy QT and all who follow it!!!! read here no solution yet
 
Ok... to the people out there at QT... argh <followed by stream of profanity>! But anyways after surmounting tons of problems I've gotten to the point where I have the following strange errors. I don't know what to do. I'm trying to compile apollon-0.8 on mandrake 9.1 with no luck. here is an excerpt from my config.log file.

configure: 22277: /usr/lib/qt3/include/qstyle.h
taking that
tried NO
configure:22387: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -fno-exceptions -fno-check-new -fno-common -I/usr/lib/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib/qt3/lib -L/usr/X11R6/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lpthread 1>&5
/tmp/ccbqPFjR.o(.text+0xb): In function `main':
: undefined reference to `QString::null'
/tmp/ccbqPFjR.o(.text+0x10): In function `main':
: undefined reference to `QStyleFactory::create(QString const &)'
/tmp/ccbqPFjR.o(.text+0x1e): In function `main':
: undefined reference to `QCursor::QCursor(int)'
/tmp/ccbqPFjR.o(.text+0x29): In function `main':
: undefined reference to `QCursor::~QCursor(void)'
/tmp/ccbqPFjR.o(.QValueListPrivate<QString>::gnu.linkonce.t.(void)+0x21): In function `QValueListPrivate<QString>::QValueListPrivate(void)':
: undefined reference to `QString::shared_null'
/tmp/ccbqPFjR.o(.QValueListPrivate<QString>::gnu.linkonce.t.(void)+0x2a): In function `QValueListPrivate<QString>::QValueListPrivate(void)':
: undefined reference to `QString::makeSharedNull(void)'
/tmp/ccbqPFjR.o(.gnu.linkonce.t._._t17QValueListPrivate1Z7QString+0x27): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QString::shared_null'
/tmp/ccbqPFjR.o(.gnu.linkonce.t._._t17QValueListPrivate1Z7QString+0x32): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QStringData::deleteSelf(void)'
/tmp/ccbqPFjR.o(.gnu.linkonce.t._._t17QValueListPrivate1Z7QString+0x5f): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QString::shared_null'
/tmp/ccbqPFjR.o(.gnu.linkonce.t._._t17QValueListPrivate1Z7QString+0x6a): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QStringData::deleteSelf(void)'
/tmp/ccbqPFjR.o(.QValueListPrivate<QString>::gnu.linkonce.t.insert(QValueListIterator<QString>, QString const &)+0x27): In function `QValueListPrivate<QString>::insert(QValueListIterator<QString>, QString const &)':
: undefined reference to `QString::QString(QString const &)'
/tmp/ccbqPFjR.o(.QValueListPrivate<QString>::gnu.linkonce.t.(QValueListPrivate<QString> const &)+0x21): In function `QValueListPrivate<QString>::QValueListPrivate(QValueListPrivate<QString> const &)':
: undefined reference to `QString::shared_null'
/tmp/ccbqPFjR.o(.QValueListPrivate<QString>::gnu.linkonce.t.(QValueListPrivate<QString> const &)+0x2a): In function `QValueListPrivate<QString>::QValueListPrivate(QValueListPrivate<QString> const &)':
: undefined reference to `QString::makeSharedNull(void)'
collect2: ld returned 1 exit status
configure:22390: $? = 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 >= 0x030100)
#error 1
#endif


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


Ok and just to avoid things I've already considered. I know qt will have errors if you use the gcc-3.2.2 that's included with mandrake, so I'm now using 2.95. I also have the following includes in my ld.so.conf:

/usr/X11R6/lib
/usr/lib/wine
/usr/local/lib
/usr/local/include/giFT
/usr/include
/usr/lib/winex
/usr/lib/qt2/lib
/usr/include/linux
/usr/include/g++-3
/usr/include/c++/3.2.2/backward
/usr/lib/gcc-lib/i386-conectiva-linux/2.95.3/include
/usr/lib/qt3/lib


and yes I do have qt-mt installed and it is finding the directory... Ok now that that's out of the way someone PLEEEEEEASE help me :(
Thanks

SuseBoy 07-16-2003 04:45 AM

use GTK-Gnutella.
Im having the same problem with qt kind of,
it says I don't have headers/libraries installed but I do ! :<

ciphercam 07-16-2003 09:21 PM

yeah I really want apollon and all the other programs that need qt to compile to work so if anyone can help me fix the problem please speak up. Thanks

Ohh and I moved the functions shared_null and makesharednull() from qstring.h into public and all the errors related to those two functions have ceased... the new signifigant part of config.log is:

configure:22387: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -fno-exceptions -fno-check-new -fno-common -I/usr/lib/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib/qt3/lib -L/usr/X11R6/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lpthread 1>&5
In file included from /usr/lib/qt3/include/qwindowdefs.h:44,
from /usr/lib/qt3/include/qwidget.h:42,
from /usr/lib/qt3/include/qdesktopwidget.h:40,
from /usr/lib/qt3/include/qapplication.h:42,
from conftest.cc:3:
/usr/lib/qt3/include/qstring.h: In method `QString::QString()':
/usr/lib/qt3/include/qstring.h:772: `makeSharedNull' undeclared (first use this function)
/usr/lib/qt3/include/qstring.h:772: (Each undeclared identifier is reported only once
/usr/lib/qt3/include/qstring.h:772: for each function it appears in.)
configure:22390: $? = 1
configure: failed program was:

Electro 07-17-2003 12:05 AM

You need Qt 3.1 or higher. Also you need to compile it for threads. Look at the errors that came up.

When you have downloaded Qt 3.1, type ./configure -thread. This will give support for threads. Next you will need KDE 3.1 too. Either you can compile it or download the RPMs. Install these as runlevel 3 or 1. Don't forget to backup qt3 and kde3 directories, so if something doesn't work. You can always go back to your orginal settings.

After you have done all that you can re-do apollon's configure and continue compiling.

ciphercam 07-17-2003 12:33 AM

I already have both kde 3.1 and qt 3.1 compiled with thread support and I looked at the error... It actually comes up for almost any problem when qt 3.1 fails to compile. So are there any other suggestions?


All times are GMT -5. The time now is 12:02 PM.