problems compiling pyKDE4//kde-workspace-4.2.0

Ken Moffat ken at
Fri Feb 27 06:26:56 PST 2009

On Fri, Feb 27, 2009 at 01:03:42AM +0000, lux-integ wrote:
> On Thursday 26 February 2009 05:56:38 pm Ken Moffat wrote:
> >  It's part of kdebindings, is it not ?
> yes it is.  I was trying to compile the pyKDE4  as kde-workspace-4.2.0  needed 
> it as an OPTION.  However the cmake did not work one had to use python.  For 
> some unknown reason,  the machine ran out of memory.  i am using a machine 
> with 1G RAM.  Anyway  I solved to problem by installing kdebindings-4.2.0.  I 
> then run into the problem  compiling kde-workspace-4.2.0  as shown below.
> ###problems compiling kdebase-workspace-4.2.0
> (host clfs  pure-64bit-amd64  linux-kernel gcc 4.3.2) ###
> Linking CXX shared module ../../../lib/
> /usr/bin/ld: cannot find -lSM
 so, where is ?

 From memory, QT (and therefore kde, I suppose) assumes xorg is in
/usr/X11R6.  Horribly anachronistic, but not a problem for those of
us who build X in /usr.  If you have built some, or all, of xorg in
a different prefix, you may need to tell the build process.

 With traditional 'configure' that's just a matter of looking at the
script and working out how to force it (e.g. LDFLAGS=-L/path/to/lib)
when there is not an easier way to override it.  With cmake, I have
no idea.  Presumably, it doesn't actually test for libSM in any of
the cmake files (both those already installed in /usr/share, and
those in the workspace tarball), otherwise it should have already
fixed this.

 Actually, I'm on the box with a fullish 4.2.0 installed.  Nothing
useful in the cmake files that I can see.  Grepping in the
kdebase-workspace code, I guess the problem is in ksmserver but I
can't see any ways to add options there.

 Perhaps you can provide a symlink for from wherever the
build process is looking (I guess /usr/lib is probably easiest).
I'm sorry, I find cmake to be an abomination and more or less
impossible to debug.

das eine Mal als Tragödie, das andere Mal als Farce

More information about the blfs-support mailing list