* (fwd) Configure for a program that uses QT fails
@ 2002-05-03 19:18 Axel H. Siebenwirth
2002-05-03 21:26 ` Axel H. Siebenwirth
2002-05-03 23:00 ` (fwd) " James Kelty
0 siblings, 2 replies; 4+ messages in thread
From: Axel H. Siebenwirth @ 2002-05-03 19:18 UTC (permalink / raw)
To: linux-admin
Hi, I posted this to linux-newbie already. But now I still hope that you
linux administrators can help me. The problems is about linking qt
libraries? Well, any configure of a program that uses qt doesn´t find my qt
libraries, either qt2 or qt3.
Axel
----- Forwarded message from "Axel H. Siebenwirth" <axel@hh59.org> -----
From: "Axel H. Siebenwirth" <axel@hh59.org>
Subject: Configure for a program that uses QT fails
To: linux-newbie@vger.kernel.org
Date: Thu, 2 May 2002 15:24:17 +0200
Mail-Followup-To: linux-newbie@vger.kernel.org
User-Agent: Mutt/1.3.28i
Hi,
I´m completely desperate. Several times I have tried to build programs from
source that use the QT library. Now I again tried to configure kdevelop, but
it never succesfully finds the qt libraries. I have no idea whats wrong.
Everything should be ok. Every other source I want to configure for a build
and that uses qt fails as well.
Please help me! Give me hints on what I could do or check for..
Thank you very much in advance,
Axel Siebenwirth
Here are the errors:
checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
found. Please check your installation!
config.log:
configure:19187: checking for Qt
configure: 19249: /usr/lib/qt3/include/qstyle.h
taking that
tried NO
configure:19354: 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/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/cclqqmci.o: In function \rain':
/tmp/cclqqmci.o(.text+0x12): undefined reference to \x11String::null'
/tmp/cclqqmci.o(.text+0x17): undefined reference to
\x11StyleFactory::create(QString const&)'
/tmp/cclqqmci.o(.text+0x27): undefined reference to
\x11Cursor::QCursor[in-charge](int)'
/tmp/cclqqmci.o(.text+0x2f): undefined reference to \x11Cursor::~QCursor
[in-charge]()'
/usr/X11R6/lib/libfontconfig.so.1: undefined reference to \x06T_Get_Next_Char'
collect2: ld returned 1 exit status
configure:19357: $? = 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 >= 302)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:19396: error: Qt (>= Qt 3.0.2) (library qt-mt) not found. Please
check your installation!
my environment:
QTDIR=/usr/lib/qt3
KDEDIR=/opt/kde3
my libs:
/usr/lib/libqt-mt.so.2 -> qt2/lib/libqt-mt.so.2
/usr/lib/libqt-mt.so.3 -> ../lib/qt3/lib/libqt-mt.so.3
lrwxrwxrwx 1 root root 8 Apr 25 00:48 /usr/lib/qt2 ->
qt-2.3.2
lrwxrwxrwx 1 root root 8 Apr 15 17:34 /usr/lib/qt3 ->
qt-3.0.3
/usr/lib/qt-2.3.2:
total 14
drwxr-xr-x 2 root root 303 Apr 25 00:48 bin
drwxr-xr-x 2 root root 55 Apr 25 00:48 doc
drwxr-xr-x 76 root root 1838 Apr 25 00:48 examples
drwxr-xr-x 4 root root 77 Apr 25 00:49 extensions
drwxr-xr-x 2 root root 8187 Apr 25 00:49 include
drwxr-xr-x 2 root root 674 Apr 25 00:49 lib
drwxr-xr-x 3 root root 59 Apr 25 00:48 tools
drwxr-xr-x 16 root root 366 Apr 25 00:48 tutorial
/usr/lib/qt-3.0.3:
total 15
drwxr-xr-x 2 root root 392 Apr 25 00:50 bin
drwxr-xr-x 5 root root 103 Apr 15 17:35 doc
drwxr-xr-x 3 root root 59 Apr 21 17:45 etc
drwxr-xr-x 3 root root 9244 Apr 23 13:41 include
drwxr-xr-x 2 root root 576 Apr 25 00:50 lib
drwxr-xr-x 52 root root 1329 Apr 21 17:44 mkspecs
drwxr-xr-x 6 root root 135 Apr 21 17:45 plugins
drwxr-xr-x 2 root root 196 Apr 25 00:49 templates
qt3/lib> l libqt-mt.*
-rwxr-xr-x 1 root root 10282078 Apr 21 17:56 libqt-mt.a
lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so ->
libqt-mt.so.3.0.3
lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so.3 ->
libqt-mt.so.3.0.3
lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so.3.0 ->
libqt-mt.so.3.0.3
-rwxr-xr-x 1 root root 7554895 Apr 21 17:45 libqt-mt.so.3.0.3
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
----- End forwarded message -----
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Configure for a program that uses QT fails
2002-05-03 19:18 (fwd) Configure for a program that uses QT fails Axel H. Siebenwirth
@ 2002-05-03 21:26 ` Axel H. Siebenwirth
2002-05-03 23:00 ` (fwd) " James Kelty
1 sibling, 0 replies; 4+ messages in thread
From: Axel H. Siebenwirth @ 2002-05-03 21:26 UTC (permalink / raw)
To: linux-admin
I´m sorry about the double post.
My mistake.
Regards,
Axel
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (fwd) Configure for a program that uses QT fails
2002-05-03 19:18 (fwd) Configure for a program that uses QT fails Axel H. Siebenwirth
2002-05-03 21:26 ` Axel H. Siebenwirth
@ 2002-05-03 23:00 ` James Kelty
2002-05-07 18:39 ` Axel H. Siebenwirth
1 sibling, 1 reply; 4+ messages in thread
From: James Kelty @ 2002-05-03 23:00 UTC (permalink / raw)
To: Axel H. Siebenwirth; +Cc: linux-admin
What I think is going on here is that the configure cannot locate the Qt
library headers from the linker.
Where ever it is that you put them you'll need to add it to
/etc/ld.so.conf
like this
cat /etc/ld.so.conf
/usr/lib
/lib
/usr/local/lib
/usr/local/qt/lib # <-- Add something like that!
Then you'll run this command.
/sbin/ldconfig
Then do a make distclean on your software package, and try configure
again!
Also, there may be a --with-qt=/path/to/qt/library option to the
configure script
run configure like this ./configure --help to get a list of the options.
-James
On Fri, 2002-05-03 at 12:18, Axel H. Siebenwirth wrote:
>
> Hi, I posted this to linux-newbie already. But now I still hope that you
> linux administrators can help me. The problems is about linking qt
> libraries? Well, any configure of a program that uses qt doesn´t find my qt
> libraries, either qt2 or qt3.
>
> Axel
>
> ----- Forwarded message from "Axel H. Siebenwirth" <axel@hh59.org> -----
>
> From: "Axel H. Siebenwirth" <axel@hh59.org>
> Subject: Configure for a program that uses QT fails
> To: linux-newbie@vger.kernel.org
> Date: Thu, 2 May 2002 15:24:17 +0200
> Mail-Followup-To: linux-newbie@vger.kernel.org
> User-Agent: Mutt/1.3.28i
>
> Hi,
>
> I´m completely desperate. Several times I have tried to build programs from
> source that use the QT library. Now I again tried to configure kdevelop, but
> it never succesfully finds the qt libraries. I have no idea whats wrong.
> Everything should be ok. Every other source I want to configure for a build
> and that uses qt fails as well.
>
> Please help me! Give me hints on what I could do or check for..
>
> Thank you very much in advance,
> Axel Siebenwirth
>
> Here are the errors:
>
> checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
> found. Please check your installation!
>
> config.log:
>
> configure:19187: checking for Qt
> configure: 19249: /usr/lib/qt3/include/qstyle.h
> taking that
> tried NO
> configure:19354: 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/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/cclqqmci.o: In function
ain':
> /tmp/cclqqmci.o(.text+0x12): undefined reference to \x11String::null'
> /tmp/cclqqmci.o(.text+0x17): undefined reference to
> \x11StyleFactory::create(QString const&)'
> /tmp/cclqqmci.o(.text+0x27): undefined reference to
> \x11Cursor::QCursor[in-charge](int)'
> /tmp/cclqqmci.o(.text+0x2f): undefined reference to \x11Cursor::~QCursor
> [in-charge]()'
> /usr/X11R6/lib/libfontconfig.so.1: undefined reference to \x06T_Get_Next_Char'
> collect2: ld returned 1 exit status
> configure:19357: $? = 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 >= 302)
> #error 1
> #endif
>
> int main() {
> (void)QStyleFactory::create(QString::null);
> QCursor c(Qt::WhatsThisCursor);
> return 0;
> }
> configure:19396: error: Qt (>= Qt 3.0.2) (library qt-mt) not found. Please
> check your installation!
>
>
> my environment:
>
> QTDIR=/usr/lib/qt3
> KDEDIR=/opt/kde3
>
> my libs:
>
> /usr/lib/libqt-mt.so.2 -> qt2/lib/libqt-mt.so.2
> /usr/lib/libqt-mt.so.3 -> ../lib/qt3/lib/libqt-mt.so.3
>
> lrwxrwxrwx 1 root root 8 Apr 25 00:48 /usr/lib/qt2 ->
> qt-2.3.2
> lrwxrwxrwx 1 root root 8 Apr 15 17:34 /usr/lib/qt3 ->
> qt-3.0.3
>
> /usr/lib/qt-2.3.2:
> total 14
> drwxr-xr-x 2 root root 303 Apr 25 00:48 bin
> drwxr-xr-x 2 root root 55 Apr 25 00:48 doc
> drwxr-xr-x 76 root root 1838 Apr 25 00:48 examples
> drwxr-xr-x 4 root root 77 Apr 25 00:49 extensions
> drwxr-xr-x 2 root root 8187 Apr 25 00:49 include
> drwxr-xr-x 2 root root 674 Apr 25 00:49 lib
> drwxr-xr-x 3 root root 59 Apr 25 00:48 tools
> drwxr-xr-x 16 root root 366 Apr 25 00:48 tutorial
>
> /usr/lib/qt-3.0.3:
> total 15
> drwxr-xr-x 2 root root 392 Apr 25 00:50 bin
> drwxr-xr-x 5 root root 103 Apr 15 17:35 doc
> drwxr-xr-x 3 root root 59 Apr 21 17:45 etc
> drwxr-xr-x 3 root root 9244 Apr 23 13:41 include
> drwxr-xr-x 2 root root 576 Apr 25 00:50 lib
> drwxr-xr-x 52 root root 1329 Apr 21 17:44 mkspecs
> drwxr-xr-x 6 root root 135 Apr 21 17:45 plugins
> drwxr-xr-x 2 root root 196 Apr 25 00:49 templates
>
> qt3/lib> l libqt-mt.*
> -rwxr-xr-x 1 root root 10282078 Apr 21 17:56 libqt-mt.a
> lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so ->
> libqt-mt.so.3.0.3
> lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so.3 ->
> libqt-mt.so.3.0.3
> lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so.3.0 ->
> libqt-mt.so.3.0.3
> -rwxr-xr-x 1 root root 7554895 Apr 21 17:45 libqt-mt.so.3.0.3
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
> ----- End forwarded message -----
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Configure for a program that uses QT fails
2002-05-03 23:00 ` (fwd) " James Kelty
@ 2002-05-07 18:39 ` Axel H. Siebenwirth
0 siblings, 0 replies; 4+ messages in thread
From: Axel H. Siebenwirth @ 2002-05-07 18:39 UTC (permalink / raw)
To: James Kelty; +Cc: linux-admin
Hi James!
The problem was my gcc 3.1. My qt libs from SuSE were compile with gcc2 and
someone pointed out to me that they are not binary compatible or whatever.
However I got qt sources and build them and then I could compile my progs.
Very happy now.
Regards,
Axel
On Fri, 03 May 2002, James Kelty wrote:
> What I think is going on here is that the configure cannot locate the Qt
> library headers from the linker.
>
> Where ever it is that you put them you'll need to add it to
> /etc/ld.so.conf
>
> like this
>
> cat /etc/ld.so.conf
>
> /usr/lib
> /lib
> /usr/local/lib
> /usr/local/qt/lib # <-- Add something like that!
>
> Then you'll run this command.
>
> /sbin/ldconfig
>
> Then do a make distclean on your software package, and try configure
> again!
>
> Also, there may be a --with-qt=/path/to/qt/library option to the
> configure script
>
> run configure like this ./configure --help to get a list of the options.
>
> -James
>
> On Fri, 2002-05-03 at 12:18, Axel H. Siebenwirth wrote:
> >
> > Hi, I posted this to linux-newbie already. But now I still hope that you
> > linux administrators can help me. The problems is about linking qt
> > libraries? Well, any configure of a program that uses qt doesn´t find my qt
> > libraries, either qt2 or qt3.
> >
> > Axel
> >
> > ----- Forwarded message from "Axel H. Siebenwirth" <axel@hh59.org> -----
> >
> > From: "Axel H. Siebenwirth" <axel@hh59.org>
> > Subject: Configure for a program that uses QT fails
> > To: linux-newbie@vger.kernel.org
> > Date: Thu, 2 May 2002 15:24:17 +0200
> > Mail-Followup-To: linux-newbie@vger.kernel.org
> > User-Agent: Mutt/1.3.28i
> >
> > Hi,
> >
> > I´m completely desperate. Several times I have tried to build programs from
> > source that use the QT library. Now I again tried to configure kdevelop, but
> > it never succesfully finds the qt libraries. I have no idea whats wrong.
> > Everything should be ok. Every other source I want to configure for a build
> > and that uses qt fails as well.
> >
> > Please help me! Give me hints on what I could do or check for..
> >
> > Thank you very much in advance,
> > Axel Siebenwirth
> >
> > Here are the errors:
> >
> > checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
> > found. Please check your installation!
> >
> > config.log:
> >
> > configure:19187: checking for Qt
> > configure: 19249: /usr/lib/qt3/include/qstyle.h
> > taking that
> > tried NO
> > configure:19354: 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/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/cclqqmci.o: In function
> ain':
> > /tmp/cclqqmci.o(.text+0x12): undefined reference to \x11String::null'
> > /tmp/cclqqmci.o(.text+0x17): undefined reference to
> > \x11StyleFactory::create(QString const&)'
> > /tmp/cclqqmci.o(.text+0x27): undefined reference to
> > \x11Cursor::QCursor[in-charge](int)'
> > /tmp/cclqqmci.o(.text+0x2f): undefined reference to \x11Cursor::~QCursor
> > [in-charge]()'
> > /usr/X11R6/lib/libfontconfig.so.1: undefined reference to \x06T_Get_Next_Char'
> > collect2: ld returned 1 exit status
> > configure:19357: $? = 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 >= 302)
> > #error 1
> > #endif
> >
> > int main() {
> > (void)QStyleFactory::create(QString::null);
> > QCursor c(Qt::WhatsThisCursor);
> > return 0;
> > }
> > configure:19396: error: Qt (>= Qt 3.0.2) (library qt-mt) not found. Please
> > check your installation!
> >
> >
> > my environment:
> >
> > QTDIR=/usr/lib/qt3
> > KDEDIR=/opt/kde3
> >
> > my libs:
> >
> > /usr/lib/libqt-mt.so.2 -> qt2/lib/libqt-mt.so.2
> > /usr/lib/libqt-mt.so.3 -> ../lib/qt3/lib/libqt-mt.so.3
> >
> > lrwxrwxrwx 1 root root 8 Apr 25 00:48 /usr/lib/qt2 ->
> > qt-2.3.2
> > lrwxrwxrwx 1 root root 8 Apr 15 17:34 /usr/lib/qt3 ->
> > qt-3.0.3
> >
> > /usr/lib/qt-2.3.2:
> > total 14
> > drwxr-xr-x 2 root root 303 Apr 25 00:48 bin
> > drwxr-xr-x 2 root root 55 Apr 25 00:48 doc
> > drwxr-xr-x 76 root root 1838 Apr 25 00:48 examples
> > drwxr-xr-x 4 root root 77 Apr 25 00:49 extensions
> > drwxr-xr-x 2 root root 8187 Apr 25 00:49 include
> > drwxr-xr-x 2 root root 674 Apr 25 00:49 lib
> > drwxr-xr-x 3 root root 59 Apr 25 00:48 tools
> > drwxr-xr-x 16 root root 366 Apr 25 00:48 tutorial
> >
> > /usr/lib/qt-3.0.3:
> > total 15
> > drwxr-xr-x 2 root root 392 Apr 25 00:50 bin
> > drwxr-xr-x 5 root root 103 Apr 15 17:35 doc
> > drwxr-xr-x 3 root root 59 Apr 21 17:45 etc
> > drwxr-xr-x 3 root root 9244 Apr 23 13:41 include
> > drwxr-xr-x 2 root root 576 Apr 25 00:50 lib
> > drwxr-xr-x 52 root root 1329 Apr 21 17:44 mkspecs
> > drwxr-xr-x 6 root root 135 Apr 21 17:45 plugins
> > drwxr-xr-x 2 root root 196 Apr 25 00:49 templates
> >
> > qt3/lib> l libqt-mt.*
> > -rwxr-xr-x 1 root root 10282078 Apr 21 17:56 libqt-mt.a
> > lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so ->
> > libqt-mt.so.3.0.3
> > lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so.3 ->
> > libqt-mt.so.3.0.3
> > lrwxrwxrwx 1 root root 17 Apr 15 17:34 libqt-mt.so.3.0 ->
> > libqt-mt.so.3.0.3
> > -rwxr-xr-x 1 root root 7554895 Apr 21 17:45 libqt-mt.so.3.0.3
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.linux-learn.org/faqs
> >
> > ----- End forwarded message -----
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-05-07 18:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-03 19:18 (fwd) Configure for a program that uses QT fails Axel H. Siebenwirth
2002-05-03 21:26 ` Axel H. Siebenwirth
2002-05-03 23:00 ` (fwd) " James Kelty
2002-05-07 18:39 ` Axel H. Siebenwirth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).