Re: ./configure error: Qt not found (KDE 3.2.2)
On Wednesday 12 May 2004 16:46, Konstantinos Georgokitsos wrote:
On Tuesday 11 May 2004 20:54, Matt T. wrote:
(you should post in english, then you get more answers on this list.)
Ooops! Quick recap: On SuSE 8.1. with KDE 3.2.2 (SuSE) I get the following error with
kmldonkey-0.10pre3> ./configure --prefix=/opt/kde3 checking build system type... i686-pc-linux-gnu [...] checking for Qt... configure: 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!
I had similar compile errors, however not about "Qt with thread support", but about Qt in general. Depending on how the configure script of kmldonkey is build, this could be also what is causing your error.
I get the same error as above with another KDE program kalbum.
which lets me assume that you see a similar problem as described in the configure script. What does your config.log say? It is in the same directory in which you configure.
Have a look at this:
The reason for the error I saw was that a certain version of kde's acinclude.m4 or aclocal.m4 ( which you or the one who created the configure script for the app you try to compile probably got in an upgrade) does mess up the generation of the configure file.
QUICK FIX: modify your configure script: =========================== 1) look for the line kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
2) take out: -impl actest.h the line should be now: kde_line="$kde_line actest.ui > actest.cpp"
3) look for "klineedit" and change it to "KLineEdit" The line should be: if test -f actest.cpp && grep KLineEdit actest.cpp > /dev/null;
That dind't help. I stll get the same error...
Did you have to make the modifications as described above, or did your configure script not show the problematic lines at all?
I also saw, upon a tip, that there are new qt3 packages available from SuSE but that didn't help either...
If my assumption is correct, you will not get rid of this error by upgrading qt or kde, but by fixing the configure script. A new version of the programs which you try to build however could help, if they do not contain the incorrect configure script anymore. <snip> HTH, Matt PS. Do not answer to my email only, but to the list, so others can see your post too and may be help ;-)
As I downloaded for my Suse8.1 the new kde3.2.2-rpms yesterday, I made a quick check with kmldonkey. ./configure --prefix=/opt/kde3 runs smoothly and succesfully with the qt3-3.3.2-3 rpms. Maybe this helps you. Udo
On Wednesday 12 May 2004 21:25, Matt T. wrote:
On Wednesday 12 May 2004 16:46, Konstantinos Georgokitsos wrote:
On Tuesday 11 May 2004 20:54, Matt T. wrote:
(you should post in english, then you get more answers on this list.)
Ooops! Quick recap: On SuSE 8.1. with KDE 3.2.2 (SuSE) I get the following error with
kmldonkey-0.10pre3> ./configure --prefix=/opt/kde3 checking build system type... i686-pc-linux-gnu [...] checking for Qt... configure: 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!
I had similar compile errors, however not about "Qt with thread support", but about Qt in general. Depending on how the configure script of kmldonkey is build, this could be also what is causing your error.
I get the same error as above with another KDE program kalbum.
which lets me assume that you see a similar problem as described in the configure script.
What does your config.log say? It is in the same directory in which you configure.
Yes, it is in the same directory:
configure:28538: checking for Qt
configure: 28606: /usr/lib/qt3/include/qstyle.h
taking that
tried NO
configure:28721: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor
-Wno-long-long -Wunde
f -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -
W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security
-Wmissing-format-attribute -fno-excep
tions -fno-check-new -fno-common -I/usr/lib/qt3/include -I/usr/X11R6/include
-DQT_THREAD_SUP
PORT -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
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Seek_Stream'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Short'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Forget_Frame'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Access_Frame'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Long'
collect2: ld returned 1 exit status
configure:28724: $? = 1
configure: failed program was:
#include "confdefs.h"
#include
Have a look at this:
The reason for the error I saw was that a certain version of kde's acinclude.m4 or aclocal.m4 ( which you or the one who created the configure script for the app you try to compile probably got in an upgrade) does mess up the generation of the configure file.
QUICK FIX: modify your configure script: =========================== 1) look for the line kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
2) take out: -impl actest.h the line should be now: kde_line="$kde_line actest.ui > actest.cpp"
3) look for "klineedit" and change it to "KLineEdit" The line should be: if test -f actest.cpp && grep KLineEdit actest.cpp > /dev/null;
That dind't help. I stll get the same error...
Did you have to make the modifications as described above, or did your configure script not show the problematic lines at all?
Yes, I did have to apply your proposed changes. It didn't seem though to have to do with the Qt problem.
I also saw, upon a tip, that there are new qt3 packages available from SuSE but that didn't help either...
If my assumption is correct, you will not get rid of this error by upgrading qt or kde, but by fixing the configure script.
A new version of the programs which you try to build however could help, if they do not contain the incorrect configure script anymore.
Ok, but the programs are the lates versions at the moment.
<snip>
HTH, Matt
Cheers, Kostas
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Seek_Stream' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Short' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Forget_Frame' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Access_Frame' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Long'
Ooops, that type of error is coming, as far as I remember, if you have the wrong freetype2 installed. Which freetype2 do you use? Version 2.0.9-xx or the one which came with XFree86-4.3.0 (don`t recall the version number) ? Suse mostly compiles the kde/qt packages against freetype2-2.0.9 ! Udo
On Friday 14 May 2004 10:20, udo wrote:
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Seek_Stream' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Short' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Forget_Frame' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Access_Frame' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Long'
Ooops, that type of error is coming, as far as I remember, if you have the wrong freetype2 installed.
Which freetype2 do you use? Version 2.0.9-xx or the one which came with XFree86-4.3.0 (don`t recall the version number) ?
Suse mostly compiles the kde/qt packages against freetype2-2.0.9 !
Ok, I think I found something: rpm -qa | grep freetype freetype2-2.0.9-87 freetype-1.3.1-656 freetype2-devel-2.0.9-87 freetype2-2.1.3-22 freetype2-devel-2.1.3-22 Yep I remember I tried to upgrade FT to 2.1.3 at some point. The rpm was from suse, but the rpm install seemed to have gone awry. How do I recover now?: shall I rpm -e all packages and reinstall 2.0.9 from DVD? Or can I just remove the 2.1.3. I'm afraid I'll break something.
Udo
Kostas
On Friday 14 May 2004 11:18, Konstantinos Georgokitsos wrote:
On Wednesday 12 May 2004 21:25, Matt T. wrote:
On Wednesday 12 May 2004 16:46, Konstantinos Georgokitsos wrote:
On Tuesday 11 May 2004 20:54, Matt T. wrote:
(you should post in english, then you get more answers on this list.)
Ooops! Quick recap: On SuSE 8.1. with KDE 3.2.2 (SuSE) I get the following error with
kmldonkey-0.10pre3> ./configure --prefix=/opt/kde3 checking build system type... i686-pc-linux-gnu [...] checking for Qt... configure: 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!
I had similar compile errors, however not about "Qt with thread support", but about Qt in general. Depending on how the configure script of kmldonkey is build, this could be also what is causing your error.
I get the same error as above with another KDE program kalbum.
which lets me assume that you see a similar problem as described in the configure script.
What does your config.log say? It is in the same directory in which you configure.
Yes, it is in the same directory: configure:28538: checking for Qt configure: 28606: /usr/lib/qt3/include/qstyle.h taking that tried NO configure:28721: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wunde f -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall - W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-excep tions -fno-check-new -fno-common -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUP PORT -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 /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Seek_Stream' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Short' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Forget_Frame' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Access_Frame' /usr/lib/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Long'
yeah, I have seen that before also, and as far as I remember these are freetype errors. Check if you have freetype2 plus freetype2-devel installed correctly
collect2: ld returned 1 exit status configure:28724: $? = 1 configure: failed program was: #include "confdefs.h" #include
#include #include #include #include #if ! (QT_VERSION >= 0x030100) #error 1 #endif int main() { (void)QStyleFactory::create(QString::null); QCursor c(Qt::WhatsThisCursor); return 0; }
Now this is the small prog which configure did try to build in order to check if it does build, which then means that the necessary libs are installed. The prog did not build, and your configure script did therefore assume that qt-mt is not there :
configure:28764: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found.
Please check you r installation! For more details about this problem, look at the end of config.log. Make sure that you have compiled Qt with thread support!
If you are able to make this small prog yourself, you can try to compile it
and see which error you get. this will lead you to the solution.
If you are not familiar with compiling, see if you find the include files on
your system:
#include "confdefs.h" <= this should be in the directory in which you
compile / configure
#include
Have a look at this:
[snip]
Did you have to make the modifications as described above, or did your configure script not show the problematic lines at all?
Yes, I did have to apply your proposed changes. It didn't seem though to have to do with the Qt problem.
So this error is in your configure script, but it did not show up yet, probably because it comes after the error which you see now. just keep it in mind for later, once you overcome the current error. HTH, Matt
participants (3)
-
Konstantinos Georgokitsos
-
Matt T.
-
udo