Pessoal,
Preciso de ajuda para entender esse problema de o Kdevelop não achar as
bibliotecas do KDE.
Mandei a mensagem abaixo para um dos mantenedores do KDE, mas como já fazem
alguns dias venho recorrer a vocês.
Como são todos aqui muito inteligentes :) vai em inglês:
[cut]
I'm just trying to compile a simple qt3 program, like going to "New project",
chose "simple qt program", and pressing F8 to compile.
Then I got this strange messagem from the subject.
I tried to use the solution you gave (--prefix) and read the config.log, and
here it is some info:
#kde-config --prefix
/opt/kde3
#rpm -qi $(rpm -qa | grep -i kde)
lots of info... Then I tracked 2 packages from here: kdelibs3 and kdebase3
#rpm -ql kdelibs3 | less
[cut]
/opt/kde3/include
/opt/kde3/lib
/opt/kde3/lib64
[cut]
#rpm -ql kdebase3 | grep lib
/opt/kde3/lib64/kconf_update_bin
/opt/kde3/lib64/kconf_update_bin/khotkeys_update
[cut]
So, Im pretty sure Kde libs are instaled at /opt/kde3, then I tried:
#./configure --prefix=/opt/kde3
[cut]
checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3/include
using -mt
checking for moc... /usr/lib/qt3/bin/moc
checking for uic... /usr/lib/qt3/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 libraries installed. This will fail.
So, check this please and use another prefix!
Not that it found Qt ok. Dont need to use the
option --with-qt-dir=/usr/lib/qt3
Then, the config.log say:
configure:32708: checking for perl
configure:32768: result: /usr/bin/perl
configure:32894: checking for Qt
configure: 32959: /usr/lib/qt3/include/qstyle.h
taking that
tried NO
configure:33076: rm -rf SunWS_cache; g++ -o
conftest -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_S
OURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2
-Wformat-security -Wmissing-for
mat-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
-I/usr/lib/qt3/include -I. -DQ
T_THREAD_SUPPORT -D_REENTRANT -L/usr/lib/qt3/lib64 -L/usr/lib64
conftest.cpp -lqt-mt -lpng -lz -lm -ljp
eg -ldl -lXext -lX11 -lSM -lICE -lpthread 1>&5
configure:33079: $? = 0
configure:33138: result: libraries /usr/lib/qt3/lib64,
headers /usr/lib/qt3/include using -mt
configure:33319: checking for moc
configure:33391: result: /usr/lib/qt3/bin/moc
configure:33399: checking for uic
configure:33453: result: /usr/lib/qt3/bin/uic
configure:33484: checking whether uic supports -L
configure:33495: /usr/lib/qt3/bin/uic -L /nonexistent conftest.ui >/dev/null
configure:33498: $? = 0
configure:33510: result: yes
configure:33522: checking whether uic supports -nounload
configure:33533: /usr/lib/qt3/bin/uic -nounload conftest.ui >/dev/null
configure:33536: $? = 0
configure:33548: result: yes
configure:33585: checking if Qt needs -ljpeg
configure:33630: rm -rf SunWS_cache; g++ -o
conftest -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_S
OURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2
-Wformat-security -Wmissing-for
mat-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
-I/usr/lib/qt3/include -I. -D
QT_THREAD_SUPPORT -D_REENTRANT
conftest.cpp -L/usr/lib/qt3/lib64 -L/usr/lib64 -lqt-mt -lpng -lz -lm -ldl -l
Xext -lX11 -lSM -lICE 1>&5
conftest.cpp: In function 'int main()':
conftest.cpp:51: warning: 'argv' is used uninitialized in this function
configure:33636: $? = 0
configure:33643: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err
configure:33646: $? = 0
configure:33653: test -s conftest
configure:33656: $? = 0
configure:33686: result: no
configure:33718: checking for rpath
configure:33750: result: yes
configure:33753: checking for KDE
configure: 33806: /opt/kde3/include/ksharedptr.h
taking that
configure: 33836: /opt/kde3/lib64/libkio.la
configure: 33836: ${exec_prefix}/lib64/libkio.la
configure: 33836: /opt/kde3/lib64/libkio.la
configure: 33836: /usr/lib/kde/lib64/libkio.la
configure: 33836: /usr/local/kde/lib64/libkio.la
configure: 33836: /usr/kde/lib64/libkio.la
configure: 33836: /usr/lib64/kde/libkio.la
configure: 33836: /usr/lib64/kde3/libkio.la
configure: 33836: /usr/lib64/libkio.la
configure: 33836: /usr/X11R6/lib64/libkio.la
configure: 33836: /usr/local/lib64/libkio.la
configure: 33836: /opt/kde3/lib64/libkio.la
configure: 33836: /opt/kde/lib64/libkio.la
configure: 33836: /usr/X11R6/kde/lib64/libkio.la
configure: 33854: /opt/kde3/lib64/kde3/plugins/designer/kdewidgets.la
taking that
configure:33867: error:
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
So, check this please and use another prefix!
## ---------------- ##
## Cache variables. ##
## ---------------- ##
Please, if you know how to fix it, or at least to point to me some website, I
thank you very much.
Best regards,
Beco
PS. Some versions:
kdevelop3-3.4.1-13.1
libqt4-sql-4.3.0-55.1
qt3-devel-3.3.8-84.1
libqt4-4.3.0-55.1
qt3-devel-tools-3.3.8-85.1
qt3-static-3.3.7-15
libqt4-x11-4.3.0-55.1
qt3-3.3.8-84.1
libqt4-qt3support-4.3.0-55.1
qt3-32bit-3.3.7-14
#uname -a
Linux rcb 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 2007 x86_64
x86_64 x86_64 GNU/Linux
Distro: Suse 10.2 updated
kdebase3-32bit-3.5.5-102.6
kdebase3-3.5.7-31.2
kdebase3-SuSE-10.2-84
#rpm -qa | grep kdelib
kdelibs3-arts-3.5.7-43.1
kdelibs3-devel-3.5.7-47.1
kdelibs3-32bit-3.5.5-45.4
kdelibs3-3.5.7-43.1
kdelibs3-devel-doc-3.5.7-48.1
kdelibs3-doc-3.5.7-47.1
---
> > List: kde-linux
> > Subject: Re: [kde-linux] system is not able to compile a small KDE
> > application!
> >
> > S C schrieb:
> > | hi,
> > | i tried to compile and install some apps that required qt-3.0.2, so i
> > | downloaded it from trolltech and installed.
> > | i get the following message :
> > |
> > | checking for Qt... libraries /usr/lib/qt3/lib, headers
> > | /usr/local/qt-x11-free-3.0.2/include using -mt
> > | checking if Qt compiles without flags... no
> > | checking for moc... /usr/local/qt-x11-free-3.0.2/bin/moc
> > | checking for uic... /usr/local/qt-x11-free-3.0.2/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!
> > | [EMAIL PROTECTED] ksimus-0.3.5-1]$ make
> > | make: *** No targets specified and no makefile found. Stop.
> > | [EMAIL PROTECTED] caitoo-0.6.6]$
> > |
> > | i installed the kde headers from mandrake cdrom and now here is the
> > | message :
> > |
> > | checking for KDE... libraries /usr/lib, headers /usr/include
> > | checking for extra includes... no
> > | checking for extra libs... no
> > | checking for KDE headers installed... configure: error: your system is
> > | not able to compile a small KDE application!
> > | Check, if you installed the KDE header files correctly.
> > | [EMAIL PROTECTED] caitoo-0.6.6]
> > |
> > | i've never seen this message before. any help appreciated.
>
> Hello !
> This is not the normal way.A KDE-program depends on a KDE-Version,and a
> KDE-Version depends on a Qt-Version. Please look at the
> requirements.http://developer.kde.org/build/index.html
>
> I think you messed up your system with another QT-Version.
>
> | checking for Qt... libraries /usr/lib/qt3/lib, headers
> | /usr/local/qt-x11-free-3.0.2/include using -mt
>
> 1.) Post your Distri-name an version.
> 2.) Try to figure out what QT-Version and KDE-Version has your system
> installed.(On RPM-based Distri(SuSE,Red Hat;Mandrake) do rpm -qi $(rpm
> - -qa | grep -i qt) and rpm -qi $(rpm -qa | grep -i kde) in a terminal.
>
> 3.) Be sure you installed also qt-devel, and kde-devel packages.
>
> After this you can try in your prgram-directory :
>
> ./configure --prefix=/where/is/kde-installed
> - --with-qt-dir=/where/is/qt-installed.
>
> If this does´nt work you will find in config.log additional information.
>
> regards
> thomas
--
Ruben Carlo Benante
Universidade Federal de Pernambuco, UFPE
Centro de Informatica, CIn, Recife, PE, Brasil
"Nastia estava um tanto ou quanto chocada com a companhia daquele ruminante de
olhar meditabundo." (Odisseia de uma vaca, Arkadi Averchenk)
---------------------------------------------------------------------------
Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br
Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utilização da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html