Archive

Archive for September, 2011

GObject Introspection for node.js

September 12th, 2011 No comments

I run across a very interesting project which should make the whole GNOME platform accessible from node.js. That’s something I was dreaming of when I experimented with HTML activities. Maybe I should pick that experiment up again some time…

Building sugar from git on F15

September 6th, 2011 No comments

I wanted to build the sugar shell on F15. I tried sugar-jhbuild and it didn’t work out of the box, so I thought I’d just do it manually. It was pretty painful, I’m sharing it in case someone tries to do the same.

First I installed a few dependencies. I was starting from a clean Fedora 15 livecd install.

sudo yum install gcc intltool libtool glib2-devel python-devel \
    pygobject2-devel pygtk2-devel alsa-lib-devel libSM-devel \
    gnome-common icon-naming-utils xcursorgen GConf2-devel \
    hippo-canvas-python python-cjson python-dateutil \
    pygtksourceview gnome-python2-rsvg vte

Then I checked out from git.sugarlabs.org the following modules:

sugar-base
sugar-toolkit
sugar-artwork
sugar-datastore
sugar-shell

I built each of them in that order with

./autogen.sh --prefix=~/Development/sugar/build
make
make install

I manually installed the schemas in the system prefix, I’m not sure if there is a better solution these days, even with jhbuild.

sudo GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults \
    gconftool-2 --makefile-install-rule \
    ~/Development/sugar/sugar-shell/data/sugar.schemas

I created a script exporting various environment variables and sourced it

export PATH=~/Development/sugar/build/bin:$PATH
export PYTHONPATH=~/Development/sugar/build/lib/python2.7/site-packages
export XDG_DATA_DIRS=~/Development/sugar/build/share
export GTK_PATH=~/Development/sugar/build/lib/gtk-2.0
export GTK_DATA_PREFIX=~/Development/sugar/build

Running sugar-emulator in GNOME was crashing with weird errors for some reason, but it works from a basic X session with just a gnome-terminal in it.