|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Oct 2000
Città: Montreal (Canada)
Messaggi: 1309
|
lib qt3 non trovate...
Sto cercando di compilare quanta+ 3.0.
facendo il ./configure mi dà un errore dicendo che non trova le qt3 (richieste >=3.0.3). Il problema è che ho installato le 3.0.4 e nel file /etc/ld.so.conf è presente la riga: /usr/lib/qt3/lib Cosa posso fare? Grazie Soalle |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jan 2002
Messaggi: 2365
|
magari provare un
ldconfig ? |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Oct 2000
Città: Montreal (Canada)
Messaggi: 1309
|
magari l'ho già provato
![]() ![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
./configure --help
![]()
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Oct 2000
Città: Montreal (Canada)
Messaggi: 1309
|
ho provato con ./configure --with-qt-dir=/usr/lib/qt3 e mi dà lo stesso errore... Questo è l'errore nel file config.log:
configure:21297: checking for Qt configure: 21364: /usr/lib/qt3//include/qstyle.h taking that configure:21474: 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 -O2 -fno-exceptions -fno-check-new -I/usr/lib/qt3//include -I/usr/X11R6/include -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 -lresolv -lpthread 1>&5 /tmp/ccZTAXE3.o: In function `main': /tmp/ccZTAXE3.o(.text+0x12): undefined reference to `QString::null' /tmp/ccZTAXE3.o(.text+0x17): undefined reference to `QStyleFactory::create(QString const& ![]() /tmp/ccZTAXE3.o(.text+0x27): undefined reference to `QCursor::QCursor[in-charge](int)' /tmp/ccZTAXE3.o(.text+0x2f): undefined reference to `QCursor::~QCursor [in-charge]()' collect2: ld returned 1 exit status configure:21477: $? = 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:21517: 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! Il problema può essere legato al fatto che ho mdk8.2 con kde aggiornato alla versione 3.0.2? Mi spiego meglio ho disinstallato tutto ciò che apparteneva a kde e ho installato da rpm la versione 3.0.2, da allora kde mi funziona bene però se vado nella console dalla quale l'ho lanciato vedo un sacco di errori... spero che non sia legato a questo... |
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Prova a fare questo nella stessa console da cui compili, prima di eseguire il configure:
export LD_LIBRARY_PATH=/usr/lib/qt3/lib:$LD_LIBRARY_PATH
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Oct 2000
Città: Montreal (Canada)
Messaggi: 1309
|
stesso risultato.... sto provando a scaricare le libqt e libqt-devel 3.0.5 ed installarle...
Ma tutti gli errori che mi dà la console a cosa possono essere dovuti??? |
![]() |
![]() |
![]() |
#8 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
A questo punto penserei a incompatibilità tra le varie versioni delle Qt, ma mi sembra strano in quanto avrebbe dovuto darti errori già in fase di compilazione del programma di test, mentre di dà un errore in fase di link
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#9 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Asp...
in /usr/lib/qt3/lib c'è anche libqt-mt.so?
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#10 |
Senior Member
Iscritto dal: Oct 2000
Città: Montreal (Canada)
Messaggi: 1309
|
certo che c'è!!! ti spiego un po' la situazione che è incasinata...
installando le qt3-3.0.5 con il relativo devel mi dà il seguente errore: configure:21297: checking for Qt configure: 21364: /usr/lib/qt3/include/qstyle.h taking that tried NO configure:21474: 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 -O2 -fno-exceptions -fno-check-new -I/usr/lib/qt3/include -I/usr/X11R6/include -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 -lresolv -lpthread 1>&5 /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `operator new(unsigned)@GLIBCPP_3.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@GLIBCPP_3.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@GLIBCPP_3.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `operator delete[](void*)@GLIBCPP_3.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@GLIBCPP_3.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `operator new[](unsigned)@GLIBCPP_3.2' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `operator delete(void*)@GLIBCPP_3.2' collect2: ld returned 1 exit status configure:21477: $? = 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:21517: 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! in compenso non mi funziona kde... L'installazione l'ho forzata perché richiedeva libgcc_s.so.1 (GCC_3.0)... -considera che ho installato gcc-3.2 da tar.gz -considera che ho fatto puntare in /etc/alternatives i compilatori a quelli in versione 3.2 con le 3.0.4 mi funziona kde ma mi dà un sacco di errori dalla relativa console... dottore è grave??? grazie Soalle |
![]() |
![]() |
![]() |
#11 | |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Quote:
Il gcc 3.2 ha una incompatibilità nel formato dei nomi esportati negli object c++ con i suoi predecessori, questo è noto - non lo sapevi? ![]()
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
|
![]() |
![]() |
![]() |
#12 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Soluzione: ricompilati le qt 3 e kde
![]()
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#13 |
Senior Member
Iscritto dal: Oct 2000
Città: Montreal (Canada)
Messaggi: 1309
|
era proprio quello che pensavo....
![]() beh direi che rinuncio a quanta 3... |
![]() |
![]() |
![]() |
#14 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Potresti anche compilare un albero separato delle Qt (ad es. in /usr/lib/qt3_2) e usare quell'albero per compilare quanta, senza toccare kde o le Qt di "sistema".
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:38.