Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Compiling problem
Hi,
Since i upgraded my Mandrake 9.2 to Mandrake 10.0 and KDE from 3.1 to KDE 3.2, everytime when i run ./configure, it says :
configure : error : you must install kdelibs first
i checked that and i have already kdelibs installed on my computer.
i don't understand
RE: Compiling problem
Is KDEDIR setup correctly?
RE: Compiling problem
I don't have KDEDIR variable set. But i can compile my own KDE programs (kicker applets) without setting it.
Sorry for my English.
RE: Compiling problem
Do you have kdelibs-devel installed?
Did you upgrade Qt without recompiling kdelibs? (this creates a problem with the version number in libkdewidgets, so you need to recompile kdelibs after upgrading Qt).
If the above doesn't help, what's the exact error message you get,
and what's the relevant part of config.log?
David Faure, KDE developer, Klaralvdalens-Datakonsult AB.
RE: Compiling problem
Hi.
I don't compile anything. I always install rpms provided in my distribution. When i choose to install KDevelop, it asks to me that additionnal packages must be installed, such as GCC, Qt devel, KDE devel, KDBG ....
here is what i get when i run configure :
.....
checking for Qt... libraries /usr/lib/qt3//lib, headers /usr/lib/qt3//include using -mt
checking if Qt compiles without flags... no
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... libraries /usr/lib, headers /usr/include
checking if UIC has KDE plugins available... configure: error: not found - you need to install kdelibs first.
this error happens each time it checks for "if UIC has KDE plugs available". In my programs, configure doesn't check that and they compile fine.
Thanks.
RE: Compiling problem
I edited config.log and found this :
configure:22970: result: libraries /usr/lib, headers /usr/include
configure:23007: checking if UIC has KDE plugins available
configure:23034: /usr/lib/qt3//bin/uic -L /usr/lib/kde3/plugins/designer -nounlo
ad -impl actest.h actest.ui > actest.cpp
./configure: line 1: 11751 Segmentation fault /usr/lib/qt3//bin/uic -L /usr
/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui >actest.cpp
configure:23037: $? = 139
configure:23052: error: not found - you need to install kdelibs first.
What caused this SEGFAULT ?
RE: Compiling problem
uic crashes? Strange. Either it's a problem within uic itself (linked to the wrong Qt? check with "ldd $QTDIR/bin/uic") or it's the kdewidgets.so that makes it crash.
Check if you have a /usr/lib/kde3/plugins/designer/kdewidgets.so or something like that.
You didn't change your gcc version since you installed the distribution, right?
gcc versions are incompatible; when upgrading gcc, one needs to recompile all the C++ libraries (i.e. qt and kdelibs).
If you still don't see why it crashes, you might want to try "gdb uic" or "valgrind uic" or "strace uic" ... maybe one of those tools will give a hint as to why it crashes.
Or try compiling Qt examples (I think the Qt devel rpm installs them somewhere?) to see if uic-without-kdewidgets works.
David Faure, KDE developer, Klaralvdalens-Datakonsult AB.
RE: Compiling problem
Hi.
* uic doesn't crash, i tried to compile 4 .ui files and uic worked.
* the file kdewidgets.so exists
i'm sick of that problem. Is there a way to remove the test "checking if UIC has ..." from the configure script, and will it work without it ?
Thanks.
RE: Compiling problem
about GCC :
when i installed my distibution (in fact it was an upgrade from mdk 9.2 to mdk 10.0), the installer upgraded all the packages he found in my old version. I suppose he upgraded KDE (and qt, kdelibs ...) and also gcc. Everytime a new distrib version is out, it comes with recent stable packages.
Thx.
RE: Compiling problem
Set the environment variable UIC_NOT_NEEDED=1 to skip the uic check.
You can also put
UIC_NOT_NEEDED=1
at the top of your configure.in.in file.
David Faure, KDE developer, Klaralvdalens-Datakonsult AB.
RE: Compiling problem
Doesn't work, it always checks for uic.
RE: Compiling problem
Well, which way did you try?
If you modified configure.in.in, did you (or kdevelop) run Makefile.cvs again?
I'm quite sure about UIC_NOT_NEEDED. It should skip the uic test (but then of course you might have trouble compiling .ui files in your project, since $(UIC) won't be set....
David Faure, KDE developer, Klaralvdalens-Datakonsult AB.