Re: problems compiling with Qt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Fr, den 26.03.2004 schrieb John Thompson um 01:48:

> > Sorry to be not more helpful with this. as far as I remember I once
> > needed to run autoconf / automake inside a sources directory to let
> > the configure script recognize the QT libs and includes. I just can't
> > remember which application I compiled. The programmer/builder made a
> > mistake bundling the things. What exactly do you want to compile?
> 
> That was trying to compile kgpg, but it fails in the same manner with any
> Qt-dependent compilation.  I can install and run pre-compiled Qt binaries;
> I just can't compile them myself.

> -John (JohnThompson@xxxxxxxxxx)

John :)

Call me crazy lucky guy or badly laugh - I downloaded the kgpg source,
untared it, changed to the sources dir, did no export of the KDEDIR as I
am a Gnome user and run ./configure. I got this as relevant part of the
configure run:

checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/lib/qt-3.1/lib, headers
/usr/lib/qt-3.1/include using -mt
checking if Qt compiles without flags... no
checking for moc... /usr/lib/qt-3.1/bin/moc
checking for uic... /usr/lib/qt-3.1/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will
fail.
So, check this please and use another prefix!

I am amazed that it works the first trial. So, here is all I have
installed from QT:

$ rpm -qa "*qt*"
qt-3.1.2-14
qt-devel-3.1.2-14

Following is the part from config.log:

configure:21577: checking for Qt
configure: 21644: /usr/lib/qt-3.1/include/qstyle.h
taking that
tried NO
configure:21754: 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/qt-3.1/include -I/usr/X11R6/include 
-DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/lib/qt-3.1/lib
-L/usr/X11R6/lib   conftest.cc  -lqt-mt -lpng -lz -lm -ljpeg -ldl 
-lXext -lX11 -lSM -lICE  -lpthread 1>&5
configure:21757: $? = 0
configure:21816: result: libraries /usr/lib/qt-3.1/lib, headers
/usr/lib/qt-3.1/include using -mt
configure:21826: checking if Qt compiles without flags
configure:21923: 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/qt-3.1/include  -DQT_THREAD_SUPPORT 
-D_REENTRANT  -L/usr/X11R6/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg
-ldl  -lXext -lX11 -lSM -lICE  -lXext -lX11  1>&5
/usr/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status

It states that -lqt-mt was not found but did not mess up. Did you set up
anything special with your QT? I was irritated before because it seems
you have a directory /usr/lib/qt3 which is AFAIK no FC1 standard.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
Sirendipity 02:05:39 up 6 days, 10:47, load average: 1.20, 0.64, 0.30 
                   [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]
             my life is a planetarium - and you are the stars

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux