Can't build KDELibs-4 (SVN TRUNK)

James Richard Tyrer tyrerj at acm.org
Tue Mar 28 05:25:13 BST 2006


James Richard Tyrer wrote:
> ./configure --prefix=/usr/kde3.5 -C --enable-dnotify
> --with-ssl-dir=/usr/local/ssl --with-alsa --enable-fast-malloc=full
> --with-arts
> 
> Before trying to build, I modified my environment:
> 
> 	QTDIR=/usr/local/Trolltech/Qt-4.1.0/lib
> 	LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.1.0/lib
> 	PATH="/usr/local/Trolltech/Qt-4.1.0/bin:$PATH"
> 	export QTDIR LD_LIBRARY_PATH PATH
> 
> I then tried to configure with:
> 
> 	cmake -DCMAKE_INSTALL_PREFIX=/usr/local/KDE-4.0 \
> 	-DCMAKE_BUILD_TYPE=debugfull \
> 	-DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include
> 	
> Don't know if I need anything about DNotify or ALSA (it seems to have
> found ALSA OK) and, IIUC, I don't need aRts.
> 
> The output claims that it can't find stuff:
> 
> -- Looking for include files HAVE_X11_EXTENSIONS_SHAPE_H
> -- Looking for include files HAVE_X11_EXTENSIONS_SHAPE_H - not found.
> -- Looking for include files HAVE_X11_EXTENSIONS_XSHM_H
> -- Looking for include files HAVE_X11_EXTENSIONS_XSHM_H - not found.
> -- Looking for include files HAVE_X11_ICE_ICELIB_H
> -- Looking for include files HAVE_X11_ICE_ICELIB_H - not found.
> -- Looking for include files HAVE_XRENDER
> -- Looking for include files HAVE_XRENDER - not found.
> 
> This stuff is all there in the usual place in the: "/usr/X11R6/" tree.
> 
> I had to edit several files to change:
> 
> 	#include <whatever.h>
> 
> to:
> 
> 	#include "whatever.h"
> 
> -- which I don't exactly understand -- to fix files not found issues.
> 
> Then the build failed with:
> 
> Building CXX object dcop/CMakeFiles/DCOP.dir/dcopclient.o
> In file included from /usr/SVN/trunk/KDE/kdelibs/dcop/dcopclient.cpp:64:
> /usr/SVN/trunk/KDE/kdelibs/dcop/dcopglobal.h:42:22: X11/Xlib.h: No such
> file or directory
> 
> So, I tried the usual trick of adding: "/usr/X11R6/include" to CPPFLAGS.
>   Didn't help.
> 
> So, I added: "-DX11_INCLUDE_DIR=/usr/X11R6/include" to the "cmake"
> command.  This was redundant since running "ccmake" shows that it found
> the X11 include directory already.  Didn't help.
> 
> So, it still doesn't work and there isn't much of anything on Google.

> Is there a tutorial that I should read, or have I done something really
> stupid?  Or, perhaps I have found a problem?
> 

So, I ran this with VERBOSE=1 and I find that this is a problem.  There 
is no: "-I/usr/X11R6/include" in the command line:

Building CXX object dcop/CMakeFiles/DCOP.dir/dcopclient.o
/usr/local/bin/g++   -DDCOP_EXPORTS -march=k6-3 -mtune=k6-3 -O2 
-Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings 
-Wformat-security -fno-exceptions -fno-check-new -fno-common -g3 
-fno-inline -fPIC -I/usr/SVN/trunk/KDE/kdelibs.build/dcop 
-I/usr/SVN/trunk/KDE/kdelibs/dcop -I/usr/local/include 
-I/usr/SVN/trunk/KDE/kdelibs -I/usr/SVN/trunk/KDE/kdelibs.build 
-I/usr/local/Trolltech/Qt-4.1.0/include 
-I/usr/local/Trolltech/Qt-4.1.0/include/Qt 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtCore 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtGui 
-I/usr/local/Trolltech/Qt-4.1.0/include/Qt3Support 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtAssistant 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtDesigner 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtNetwork 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtOpenGL 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtSql 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtXml 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtSvg 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtTest   -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -D_GNU_SOURCE -DQT3_SUPPORT -DQT_NO_STL 
-DQT_NO_CAST_TO_ASCII -D_REENTRANT -DQT3_SUPPORT_WARNINGS 
-DKDE_DEPRECATED_WARNINGS -DHAVE_CONFIG_H=1 -DICE_t -DTRANS_SERVER 
-DTRANS_CLIENT -DANSICPP -DUNIXCONN -o 
dcop/CMakeFiles/DCOP.dir/dcopclient.o -c 
/usr/SVN/trunk/KDE/kdelibs/dcop/dcopclient.cpp

And I also wonder why it we have the extra dozen Trolltech includes:

-I/usr/local/Trolltech/Qt-4.1.0/include/Qt*

Shouldn't the "Qt*" be in the code so all we need is the first one:

-I/usr/local/Trolltech/Qt-4.1.0/include

-- 
JRT

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<




More information about the kde-core-devel mailing list