Development/OnlineGlom/using jhbuild

From Glom
Jump to: navigation, search

jhbuild for OnlineGlom

If you have an existing jhbuild environment setup, you will need to modify these instructions for your particular case. These instructions should work on Ubuntu 10.04 and 10.10.

First we need to install everything we need to build java-libglom. Open the Terminal application and run this command install the software you're going to need:

sudo apt-get install rarian-compat git-core gnome-common \
  libglib2.0-dev automake1.9 docbook-xsl libgda-4.0-dev \
  libxml++2.6-dev libgda-4.0-postgres python-gobject-dev \
  libepc-dev libboost-python-dev libpcre3-dev openjdk-6-jdk \
  junit4 gnome-doc-utils maven2 graphviz doxygen python-sphinx \
  maven2 autopoint

Next we're going to checkout and build jhbuild, a tool that will compile java-libglom and all the required dependencies. Run this command to clone the jhbuild module:

git clone git://git.gnome.org/jhbuild

Change to the directory that you just checked out:

cd jhbuild

Run this command to configure jhbuild:

./autogen.sh

Run this command to build jhbuild:

make

Run this command to install jhbuild in your home directory:

make install

And change back to the original directory:

cd ..

Next you will need to edit your bashrc file to add the jhbuild command directory to your default path. Run this command to start the Text Editor:

gedit ~/.bashrc

And add this line to the bottom of the file:

PATH=~/.local/bin:$PATH

Save the file and close gedit. You may need to log out and log back in for this setting to take effect.