builddir!=srcdir problem

Andras Mantia amantia at kde.org
Tue Mar 21 16:36:33 CET 2006


Hi,

 Now that I find how to subscribe to the mailing list, I post my problem 
here as well, maybe it's a better place than kde-core-devel. I'm trying 
to build kdelibs trunk in a buildir!=srcdir setup.

Right now during make I get this error:

 make[1]: Entering directory
 `/media/extra/data/data/kde4/build/kdelibs' make -f
 dcop/CMakeFiles/DCOP.dir/build.make
 dcop/CMakeFiles/DCOP.dir/depend
 make[2]: Entering directory
 `/media/extra/data/data/kde4/build/kdelibs' make[2]: *** No rule to
 make target
 `../../../../data/development/sources/kde-trunk/kdelibs/dcop/dcopstub
.cpp', needed by `dcop/CMakeFiles/DCOP.dir/depend.make.mark'.  Stop.
 make[2]: Leaving directory
 `/media/extra/data/data/kde4/build/kdelibs' make[1]: ***
 [dcop/CMakeFiles/DCOP.dir/all] Error 2
 make[1]: Leaving directory
 `/media/extra/data/data/kde4/build/kdelibs' make: *** [all] Error 2

I tested and it happens only with builddir != srcdir.

Furthermore the problem is in dcop/CMakeFiles/DCOP.dir/build.make.

Now I'm not sure anymore if this is a cmake problem or the limitation
 of make itself. There are rules like:

dcop/CMakeFiles/DCOP.dir/depend.make.mark:
dcop/CMakeFiles/DCOP.dir/flags.make
dcop/CMakeFiles/DCOP.dir/depend.make.mark:
 ../../../../data/development/sources/kde-trunk/kdelibs/dcop/dcopstub.c
pp

dcop/CMakeFiles/DCOP.dir/dcopstub.o:
 dcop/CMakeFiles/DCOP.dir/flags.make
 dcop/CMakeFiles/DCOP.dir/dcopstub.o:
 ../../../../data/development/sources/kde-trunk/kdelibs/dcop/dcopstub.c
pp @echo "Building CXX object dcop/CMakeFiles/DCOP.dir/dcopstub.o"
 /usr/bin/c++   $(CXX_FLAGS) -o
dcop/CMakeFiles/DCOP.dir/dcopstub.o
-c /data/development/sources/kde-trunk/kdelibs/dcop/dcopstub.cpp


depend.make.mark requires dcopstub.cpp from the source directory and
altough there is a rule for dcopstub.o, I get the error. But if I use
absolute paths instead of relative ones (like it is after the "-c"),
make will accept and no error is given.
If make really wants absolute paths, cmake should convert the relative
paths to absolute in all places and use that one.

Andras

PS: I agree that something is wrong right now with the qmake detection. 
If the QTDIR does not point to Qt4, it will fail.

--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060321/21c81f14/attachment.pgp 


More information about the Kde-buildsystem mailing list