Skip to content

Develop on a computer

jonnylamb edited this page Oct 27, 2014 · 9 revisions

Most of the Maynard development can be done on your computer without using a Raspberry Pi.

Install kdewallpapers. For instance, if you are on Debian or Ubuntu, do:

$ sudo apt-get install kdewallpapers

Setup the various paths you will need:

$ cd .../.../... # where you want this stuff to be
$ export PREFIX="$PWD/_inst" # where you want the installed stuff to be
$ export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH

Compile and install wayland:

$ git clone -b rpi-1.4.0 git://git.collabora.co.uk/git/raspberry-pi/wayland.git
$ cd wayland
$ ./autogen.sh --prefix $PREFIX
$ make install
$ cd ..

Compile and install weston:

$ git clone -b rpi-1.4.0 [email protected]:raspberrypi/weston.git
$ cd weston
$ ./autogen.sh --prefix $PREFIX --disable-setuid-install
$ make install
$ cd ..

Configure weston by adding this to ~/.config/weston.ini, making sure to replace $PREFIX with the value set above (as the expanded full path. E.g. /home/user/_inst/libexec/maynard):

[core]
modules=shell-helper.so

[shell]
client=$PREFIX/libexec/maynard
focus-animation=dim-layer
animation=zoom

You don't strictly need to compile your own GTK+, but the rendering of semi-transparent elements will be messed up without. If you compile your own GTK+ you also need the themes. To compile GTK+ and themes:

$ git clone -b rpi-3.10.2 git://git.collabora.co.uk/git/raspberry-pi/gtk+.git
$ cd gtk+
$ ./autogen.sh --prefix $PREFIX
$ make install
$ cd ..
$ git clone -b rpi-3.9.91 git://git.collabora.co.uk/git/raspberry-pi/gnome-themes-standard.git
$ cd gnome-themes-standard
$ ./autogen.sh --prefix $PREFIX
$ make install
$ cd ..

Compile and install maynard:

$ git clone [email protected]:raspberrypi/maynard.git
$ cd maynard
$ ./autogen.sh --prefix $PREFIX
$ make install

Launch maynard:

./maynard
Clone this wiki locally