PDA

View Full Version : Ccsm from git


vadi
December 9th, 2007, 08:37 PM
Where, or how, can I get the latest version of CCSM?

The stock version that came with Ubuntu has the old, horrible, confusing way of configuring things - I don't know how to get my freewins plugin to work, because the only field I can set it "buttons". Which doesn't accept any buttons but wants text.

adamk
December 9th, 2007, 08:52 PM
A newer version of ccsm, built from master git, will only work with compiz build from master git, iirc.

Adam

vadi
December 9th, 2007, 09:02 PM
I've done a lot of "upgrades" to it now and really have no idea what kind of Compiz do I have.

Can you recommend me a way of building compiz entirely from git?

Deciare
December 9th, 2007, 09:33 PM
You can find a detailed guide of building Compiz Fusion from git here: http://forum.compiz-fusion.org/showthread.php?t=1985

It was originally written for Ubuntu Feisty, but many or all of its instructions should also apply to Gutsy. Please note that the guide linked above contains instructions to build both the git master and 0.6.x branch of Compiz Fusion. The 0.6.x version doesn't require libX11-xcb and will be easier to build, but won't be compatible with experimental plugins from git master. 0.6.x contains the same version of ccsm as what's featured in git master, however.

If you must have the git master version without installing libX11-xcb, you can try following these instructions (http://forum.compiz-fusion.org/showthread.php?t=5297#post35991) to remove the libX11-xcb dependency. But I wouldn't recommend it unless there's a specific reason you can't use libX11-xcb since that's the direction Compiz is going. Eventually, the dependency won't be easy to remove.

vadi
December 9th, 2007, 09:59 PM
Don't worry, I'm not fanatic about dependencies. What's the point of a package if you aren't using it?

apt-get couldn't find the libX11-xcb package, but I'll read the guide on how to sort it out.

vadi
December 9th, 2007, 10:04 PM
Hm, the first git clone failed:

error: pathspec 'compiz-0.6' did not match any file(s) known to git.
Did you forget to 'git add'?

delfick
December 10th, 2007, 12:38 AM
hmm, first switch to master and delete the 0.6.0 branch that didn't work
#git branch
shows what branches you've made)
#git checkout master
switches to master
#git branch -d _________
deletes a branch, where ______ is replaced by the name of the branch you are deleting

then try

git checkout -b /origin/compiz-0.6
for compiz

and
git checkout -b /origin/0.6.0
for compiz-fusion packages

goodluck :D

I'm also moving this to the installation section of the forum.

Deciare
December 10th, 2007, 12:53 AM
The name of the branch seems to have changed, but only halfway?

I don't understand it either... Try this command instead of the one recommended by the guide:
git checkout compiz-0.6.2
That doesn't result in an error message, but I haven't actually tried compiling it either.

The rest of the commands should remain the same.

vadi
December 10th, 2007, 04:01 AM
Sorry delflick, your instructions were way too confusing.

I tried doing the checkout, but that didn't work either:

vadi@vadi-laptop:~/compiz$ git clone git://git.freedesktop.org/git/xorg/app/compiz && cd compiz && git checkout compiz-0.6 && cd ~/compiz
Initialized empty Git repository in /home/vadi/compiz/compiz/.git/
remote: Generating pack...
remote: Done counting 15483 objects.
remote: Deltifying 15483 objects.
remote: 100% (15483/15483) done
Indexing 15483 objects...
remote: Total 15483, written 15483 (delta 12050), reused 1932 (delta 1509)
100% (15483/15483) done
Resolving 12050 deltas...
100% (12050/12050) done

error: pathspec 'compiz-0.6' did not match any file(s) known to git.
Did you forget to 'git add'?
vadi@vadi-laptop:~/compiz/compiz$ git checkout compiz-0.6.2
Note: moving to "compiz-0.6.2" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 111d599... Bump version.
vadi@vadi-laptop:~/compiz/compiz$

Deciare
December 10th, 2007, 04:15 AM
What happens when you try to compile the compiz module after using the checkout command suggested above? The output you posted looks normal, so something worked.

vadi
December 10th, 2007, 04:32 AM
Okay, so I git cloned everything in the list, except the last thing. I won't be needing it.

Did the git checkout in every one...

And now, autogen... and it seems to be compiling! I'll report when it's done.

vadi
December 10th, 2007, 04:52 AM
Oh no, it failed on libcompizconfig:

Copying file po/Makefile.in.in

Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

intltoolize: 'po/Makefile.in.in' is out of date: use '--force' to overwrite

delfick
December 10th, 2007, 01:35 PM
Sorry delflick, your instructions were way too confusing.

sorry :D

I assumed you were still gonna work with the git folder you had already cloned and started to try and branch, in which case you'd have to delete the branches that didn't work


anyway, I just tried what I was trying to say and it doesn't work, so that can be ignored
(I hate working with something I don't know how to use)

anyway, following this here http://forum.compiz-fusion.org/showthread.php?t=1985#post24287

sorta works

so, do the following
#git clone git://git.freedesktop.org/git/xorg/app/compiz
#cd compiz
#git checkout compiz-0.6.2


but then I have absolutely no idea how to update as no matter what I try I get errors,

iambob@bob:~/Desktop/test/compiz$ git pull
You are not currently on a branch; you must explicitly
specify which branch you wish to merge:
git pull <remote> <branch>
iambob@bob:~/Desktop/test/compiz$ git pull origin
You are not currently on a branch; you must explicitly
specify which branch you wish to merge:
git pull <remote> <branch>
iambob@bob:~/Desktop/test/compiz$ git pull origin compiz-0.6.2
error: no such remote ref refs/heads/compiz-0.6.2
fatal: Fetch failure: git://git.freedesktop.org/git/xorg/app/compiz
iambob@bob:~/Desktop/test/compiz$ git pull compiz-0.6.2
fatal: 'compiz-0.6.2': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
Cannot get the repository state from compiz-0.6.2


this happens to me everytime I try to do this.

Eventually I get there and it works, but then I never remember how it's done, so irritating :p

Deciare
December 10th, 2007, 01:44 PM
so, do the following
#git clone git://git.freedesktop.org/git/xorg/app/compiz
#cd compiz
#git checkout compiz-0.6.2


but then I have absolutely no idea how to update as no matter what I try I get errors,
Oddly, the command git pull origin compiz-0.6 seems to work even though the name of the branch that needs to be checked out is "compiz-0.6.2". Anyway, Fyda's guide doesn't say anything about updating the compiz module, so there might have been a problem with it back then, as well. I'm not even sure that the command I posted actually "updates" Compiz. Swapping files from one version for another is not necessarily an update.

The instructions provided for updating Compiz Fusion's modules still work, so just focus on that for now?

delfick
December 10th, 2007, 01:50 PM
that is weird....

maybe a dev can shed some light on this ?

*looks at the devs*

vadi
December 10th, 2007, 02:23 PM
So eh... how can I get the latest CCSM?

Deciare
December 10th, 2007, 03:54 PM
Follow the rest of Fyda's guide as is (including her later instructions about checking out the 0.6.0 branch of Compiz Fusion's modules), just change that one command we pointed out above. I've updated the guide so we can avoid this sort of confusion in the future.

vadi
December 10th, 2007, 04:18 PM
I'll just restart from the beginning with the updated guide.

vadi
December 10th, 2007, 06:22 PM
That was a whole operation...

But it just broke my compiz. CCSM wouldn't start, compiz --replace gave me no window borders and no window manager either as I understand.

I think I'll just wait until someone makes a nice .deb. All I want is to try out the freewins plugin - by default, it doesn't have any "buttons" set and I don't know how to set them either.

Deciare
December 10th, 2007, 07:41 PM
Do you receive any console output when running this command?
compiz --replace ccp &

How about the console output from running ccsm?

All I want is to try out the freewins plugin - by default, it doesn't have any "buttons" set and I don't know how to set them either.
If that was all you wanted, I could have helped you. ^_^ I've been working on a modified version of freewins.xml that would be compatible with older versions of Compiz. You just motivated me to finish it. :p

Try copying this file into your ~/.compiz/metadata directory and let me know how it works for you.

Be sure to remove the .txt file extension before using it (the forum doesn't allow direct uploads of .xml files).

vadi
December 10th, 2007, 07:42 PM
Yes, I tried that. Just said no managable screens found, and that's it :(.

I did break my compiz now completely though. The one from repositories doesn't work too! -shame-. Look at the thread below.