PDA

View Full Version : Screensaver plugin?


spyker3292
October 21st, 2007, 03:17 PM
How do I install the screensaver plugin with the flying windows?

Deciare
October 21st, 2007, 03:59 PM
The screensaver plugin isn't currently included in one of the 4 plugins packages, so you'll need to install it from git (unless your distro provides its own package for it).

git clone git://git.opencompositing.org/users/pafy/screensaver
cd screensaver
make
make install

Note that this will only work if your entire Compiz installation is up to date with the git version since it depends on header files (like compiz-core.h) not available in older versions of Compiz.

You'll also need to have several other packages installed before you can compile this plugin, including libtool, libxml2-dev, libxlst1-dev, libxss-dev, and g++. That's assuming you're running Ubuntu. If you're on another distro, then the packages may have different names.

spyker3292
October 21st, 2007, 05:34 PM
Ok, I'll try that. Do the other plugin packages include extra ones that aren't included standard? How do I install those?

edit: When I typed make I got this
convert : screensaver.xml.in -> build/screensaver.xml
bcop'ing : build/screensaver.xml -> build/screensaver_options.h/bin/sh: --header=build/screensaver_options.h: not found
make: *** [build/screensaver_options.h] Error 127

Deciare
October 21st, 2007, 06:04 PM
bcop is one of the modules you'll come across when you install Compiz Fusion from git, so that error shouldn't be a problem once you have everything installed.

Fyda has written a comprehensive guide (http://forum.compiz-fusion.org/showthread.php?t=1985) to installing Compiz Fusion from git, so that may be a better place to start than asking questions in this thread. If you have any specific questions that aren't addressed by the guide, though, I'd be happy to help!

tlb2097
November 10th, 2007, 05:32 AM
Error 1 when trying to install screen saver, What am I missing?

cpu@cpu-desktop:~/screensaver$ make
compiling : matrix.cpp -> build/matrix.loPackage xscrnsaver was not found in the pkg-config search path.
Perhaps you should add the directory containing `xscrnsaver.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xscrnsaver' found
In file included from matrix.cpp:1:
matrix.h:5:25: error: compiz-core.h: No such file or directory
vector.h:34: error: 'CompScreen' has not been declared
vector.h:43: error: 'CompScreen' has not been declared
vector.h: In member function 'Vector Vector::toScreenSpace(int*) const':
vector.h:37: error: request for member 'width' in '* s', which is of non-class type 'int'
vector.h:38: error: request for member 'height' in '* s', which is of non-class type 'int'
vector.h: In member function 'Vector Vector::toCoordsSpace(int*) const':
vector.h:46: error: request for member 'width' in '* s', which is of non-class type 'int'
vector.h:47: error: request for member 'height' in '* s', which is of non-class type 'int'
matrix.h: At global scope:
matrix.h:15: error: expected ',' or '...' before '*' token
matrix.h:15: error: ISO C++ forbids declaration of 'CompTransform' with no type
matrix.h: In constructor 'Matrix::Matrix(int)':
matrix.h:15: error: 'mat' was not declared in this scope
matrix.h: In member function 'Matrix& Matrix::rotate(float, float, float, float)':
matrix.h:30: error: 'CompTransform' was not declared in this scope
matrix.h:30: error: expected primary-expression before ')' token
matrix.h:30: error: 'matrixRotate' was not declared in this scope
matrix.h: In member function 'Matrix& Matrix::scale(float, float, float)':
matrix.h:38: error: 'CompTransform' was not declared in this scope
matrix.h:38: error: expected primary-expression before ')' token
matrix.h:38: error: 'matrixScale' was not declared in this scope
matrix.h: In member function 'Matrix& Matrix::translate(float, float, float)':
matrix.h:46: error: 'CompTransform' was not declared in this scope
matrix.h:46: error: expected primary-expression before ')' token
matrix.h:46: error: 'matrixTranslate' was not declared in this scope
make: *** [build/matrix.lo] Error 1

Deciare
November 10th, 2007, 05:42 AM
You need to install the git version of Compiz Fusion in order to compile plugins from git.

Several members of the community have been collecting information about older or patched versions of plugins that will compile with the version of Compiz Fusion installed by default in some distros, though. For the Screensaver plugin, check out this guide (http://forum.compiz-fusion.org/showthread.php?t=5303).

tlb2097
November 13th, 2007, 01:29 AM
I am running Fiesty 7.04 and I installed C F from git using the instructions from Fyda about a week ago, I am pretty new to ubuntu and don't know all of the commands or where to look if something is missing. I tried to reinstall bcop to see if I was missing something there. Here is the error that I am getting
cpu@cpu-desktop:~/screensaver$ make
convert : screensaver.xml.in -> build/screensaver.xml
bcop'ing : build/screensaver.xml -> build/screensaver_options.h
bcop'ing : build/screensaver.xml -> build/screensaver_options.c
schema : build/screensaver.xml -> build/compiz-screensaver.schema
compiling : matrix.cpp -> build/matrix.loPackage xscrnsaver was not found in the pkg-config search path.
Perhaps you should add the directory containing `xscrnsaver.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xscrnsaver' found
In file included from matrix.cpp:1:
matrix.h:5:25: error: compiz-core.h: No such file or directory
vector.h:34: error: 'CompScreen' has not been declared
vector.h:43: error: 'CompScreen' has not been declared
vector.h: In member function 'Vector Vector::toScreenSpace(int*) const':
vector.h:37: error: request for member 'width' in '* s', which is of non-class type 'int'
vector.h:38: error: request for member 'height' in '* s', which is of non-class type 'int'
vector.h: In member function 'Vector Vector::toCoordsSpace(int*) const':
vector.h:46: error: request for member 'width' in '* s', which is of non-class type 'int'
vector.h:47: error: request for member 'height' in '* s', which is of non-class type 'int'
matrix.h: At global scope:
matrix.h:15: error: expected ',' or '...' before '*' token
matrix.h:15: error: ISO C++ forbids declaration of 'CompTransform' with no type
matrix.h: In constructor 'Matrix::Matrix(int)':
matrix.h:15: error: 'mat' was not declared in this scope
matrix.h: In member function 'Matrix& Matrix::rotate(float, float, float, float)':
matrix.h:30: error: 'CompTransform' was not declared in this scope
matrix.h:30: error: expected primary-expression before ')' token
matrix.h:30: error: 'matrixRotate' was not declared in this scope
matrix.h: In member function 'Matrix& Matrix::scale(float, float, float)':
matrix.h:38: error: 'CompTransform' was not declared in this scope
matrix.h:38: error: expected primary-expression before ')' token
matrix.h:38: error: 'matrixScale' was not declared in this scope
matrix.h: In member function 'Matrix& Matrix::translate(float, float, float)':
matrix.h:46: error: 'CompTransform' was not declared in this scope
matrix.h:46: error: expected primary-expression before ')' token
matrix.h:46: error: 'matrixTranslate' was not declared in this scope
make: *** [build/matrix.lo] Error 1

Deciare
November 13th, 2007, 05:28 AM
Ooh, someone who actually followed Fyda's guide! :D Hi!

Try installing the libxss-dev package from Synaptic, then rebuilding the screensaver plugin.

tlb2097
November 13th, 2007, 05:03 PM
Deciare, thanks that did it,