Hey all, I've been trying to compile compiz + KDE Window Decorator On my slackware 12.2 unsuccessfully whole day and finally all that reading through the sources and modifying stuff paid off.
Please note, my KDE 4.2 is installed with prefix /usr/local and my default QTDIR is /usr/lib/qt-3.3.8 (don't ask why the hell Qt4 is installed there

)
So, I assume if you're reading this, you've installed successfuly your KDE4.2 =)
Now, download the core compiz package from
http://releases.compiz-fusion.org/
extract the tarball somewhere then symlink plasma/framesvg.h to plasma/panelsvg.h
Code:
ln -s /path/to/kde/libraries/plasma/framesvg.h /path/to/kde/libraries/plasma/panelsvg.h
the absolute path for me was /usr/local/lib/plasma/framesvg.h
after symlinking the header file, check if the dir holding QtCore.cp is in your $PKG_CONFIG_PATH
Code:
echo $PKG_CONFIG_PATH
if it is there, it's ok, but since my Qt4 was installed in an unusual place I had to specify the dir
Code:
export PKG_CONFIG_PATH=/path/to/qt4/libraries/pkgconfig:$PKG_CONFIG_PATH
For me the path was /usr/lib/qt-3.3.8/lib/pkgconfig
now, while in compiz-0.7.8 dir in a terminal type
Code:
kwrite `find . | grep switcher.cpp`
Replace (Control+R) PanelSvg with FrameSvg and save but DON'T close the file.
Then
Code:
kwrite `find . | grep switcher.h`
and make the same replacement, save and close the file.
Back in switcher.cpp, find (Control+F) paintPanel and replacePanel
remove the whole blocks related to paintPanel and replacePanel.
Save and close the file.
From here... It's easy, ./configure --prefix=/your/prefix --disable-whatever-you-want --etc...etc..etc
for me ( Slackware 12.2 + KDE 4.2 ) with ./configure --prefix=/usr --disable-gconf
and the above it works well.
Note also that I am not a linux guru, or whatever, I'm just a novice so I may not be able to help you if you have any trouble.
Good luck people!
