Comment 5 for bug 836348

Revision history for this message
harrykar (harrykar) wrote :

Build the Guis (gnunet-gtk, gnunet-setup)

Ok that's a bit more problematic than buil gnunet's cli interface because of libgladeui-2.0 dependency.
Gnome 2(Natty too) has libgladeui-1.9 and libgladeui-1-dev. Instead libgladeui-2.0 is a Gnome3 component and Natty introduce Unity and Gnome3 is found only in PPA(moreover with a incomplete uninstall procedure). I have a Lucid host and prefer build in VitrualBox with a Natty+Gnome3 guest.
If you try to build without Gnome3 you get:

checking for Glade core... /usr/include/libgladeui-1.0
checking gladeui/glade.h usability... no
checking gladeui/glade.h presence... no
checking for gladeui/glade.h... no
configure: error: gnunet-gtk requires Glade3 (library and headers)

So Gnome3 is the key to build gnunet guis. After installed Gnome3 install libgladeui-2.0:
sudo apt-get install libgladeui-2.0

Step1. Build gnunet-gtk
cd $HOME/code/gnunet
svn co https://gnunet.org/svn/gnunet-gtk/ && cd gnunet-gtk
./bootstrap && ./configure --prefix=/usr --with-extractor=/usr --with-gnunet=/usr && make
sudo make install
make check(i haven't the output because after Gnome3 uninstall the guest was corrupted --i could not login anymore so i redo a clean Natty guest to probe Unity but i don't install Gnome3--)

Step2. Build gnunet-setup (that's an essential setup. The complete setup is doing trough $HOME/.gnunet/gnunet.conf )
cd $HOME/code/gnunet
svn co https://gnunet.org/svn/gnunet-setup/ && cd gnunet-setup
./bootstrap && ./configure --prefix=/usr --with-gnunet=/usr && make
sudo make install
make check

Note:
If after install gnunet-setup not work go to https://gnunet.org/svn/gnunet-setup/contrib/ download gnunet-setup.glade and copy it in /usr/share/gnunet-setup/ replace the old one. That's because trough build something changes in gnunet-setup.glade. gnunet-setup.glade is made using a glade interface builder application. Version of the glade application used to create a .glade file influences its contents. The one in the svn repository was made with glade-3.10

Now you have the gnunet guis perfectly functioning

PS: don't forget the janitor step posted in #4