Amroth
April 12th, 2007, 11:22 PM
Hi, I just wanted to share a quick patch to compile the git versions of Compiz on KDE-only systems; that is, systems without any GNOME package - without GNOME, without GConf, but only with KDE. I've tried it on Slackware 11.0-current with official Modular X 7.0 packages and Compiz 0.5 (downloaded via GIT). What you get with this quick howto: a working Compiz copy installed with INI backend support and with dbus (assuming you've got the dbus package installed).
1 - download the source via GIT: http://www.compiz.org/Home:Download
$ git clone git://git.freedesktop.org/git/xorg/app/compiz
$ cd compiz
2 - copy this into a file, like "kdeonly.patch" located in the same folder where you downloaded compiz to (the one with the README and automake.sh files):
--CUT----------------------------------------------------------------------------------------
--- compiz/configure.ac 2007-04-12 23:39:31.000000000 +0200
+++ compiz-orig/configure.ac 2007-04-12 23:41:56.000000000 +0200
@@ -132,7 +132,6 @@
fi
fi
-AM_GCONF_SOURCE_2
AM_CONDITIONAL(USE_GCONF, test "x$use_gconf" = "xyes")
if test "$use_gconf" = yes; then
--- compiz/plugins/Makefile.am 2007-04-12 23:39:31.000000000 +0200
+++ compiz-orig/plugins/Makefile.am 2007-04-12 23:43:19.000000000 +0200
@@ -113,12 +113,6 @@
sed -e 's/\[TopRight\]/[\@SCALE_CORNER\@\]/' -e 's/\[gconf\]/\[gconf,\@DEFAULT_PLUGINS\@\]/' < compiz.schemas.dump > compiz.schemas.in;
rm -f compiz.schemas.dump
-if GCONF_SCHEMAS_INSTALL
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA); \
- fi
-endif
endif
if PLACE_PLUGIN
--CUT----------------------------------------------------------------------------------------
That removes the only parts of the configuration process which require GConf stuff.
3 - Type (if you've named the file kdeonly.patch, of course)
patch -p1 < kdeonly.patch
4 - Then run
./autogen.sh --disable-gnome --disable-metacity --disable-gtk --enable-librsvg --disable-gconf
or, if you don't want dbus support also,
./autogen.sh --disable-gnome --disable-metacity --disable-gtk --enable-librsvg --disable-gconf --disable-dbus --disable-dbus-glib
5 - Then make and install.
Just note that this leaves you with only INI backend support in KDE! After the first compiz start you'll find the .ini files in your home: ~/.compiz
1 - download the source via GIT: http://www.compiz.org/Home:Download
$ git clone git://git.freedesktop.org/git/xorg/app/compiz
$ cd compiz
2 - copy this into a file, like "kdeonly.patch" located in the same folder where you downloaded compiz to (the one with the README and automake.sh files):
--CUT----------------------------------------------------------------------------------------
--- compiz/configure.ac 2007-04-12 23:39:31.000000000 +0200
+++ compiz-orig/configure.ac 2007-04-12 23:41:56.000000000 +0200
@@ -132,7 +132,6 @@
fi
fi
-AM_GCONF_SOURCE_2
AM_CONDITIONAL(USE_GCONF, test "x$use_gconf" = "xyes")
if test "$use_gconf" = yes; then
--- compiz/plugins/Makefile.am 2007-04-12 23:39:31.000000000 +0200
+++ compiz-orig/plugins/Makefile.am 2007-04-12 23:43:19.000000000 +0200
@@ -113,12 +113,6 @@
sed -e 's/\[TopRight\]/[\@SCALE_CORNER\@\]/' -e 's/\[gconf\]/\[gconf,\@DEFAULT_PLUGINS\@\]/' < compiz.schemas.dump > compiz.schemas.in;
rm -f compiz.schemas.dump
-if GCONF_SCHEMAS_INSTALL
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA); \
- fi
-endif
endif
if PLACE_PLUGIN
--CUT----------------------------------------------------------------------------------------
That removes the only parts of the configuration process which require GConf stuff.
3 - Type (if you've named the file kdeonly.patch, of course)
patch -p1 < kdeonly.patch
4 - Then run
./autogen.sh --disable-gnome --disable-metacity --disable-gtk --enable-librsvg --disable-gconf
or, if you don't want dbus support also,
./autogen.sh --disable-gnome --disable-metacity --disable-gtk --enable-librsvg --disable-gconf --disable-dbus --disable-dbus-glib
5 - Then make and install.
Just note that this leaves you with only INI backend support in KDE! After the first compiz start you'll find the .ini files in your home: ~/.compiz