My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BuildFromSourceOnUbuntu  
Updated Feb 4, 2010 by pierre.s...@gmail.com

Introduction

Based on a guide by Ayoli

Step 0: Prerequisites

Get the required packages to build vala and gnome-globalmenu : Open a Terminal (Applications >> Accessories >> Terminal)

sudo apt-get install build-essential flex bison gnome-common libglib2.0-dev gtk-doc-tools autoconf2.13 automake1.9 libgtk2.0-dev libdbus-glib-1-dev libwnck-dev libpanel-applet2-dev libgnome-menu-dev libnotify-dev

You have two methods to get vala. Either 1a or 1b. If you've installed Vala before by compiling it, make sure to do 1a and 1b before going to Step 2 (to be able to remove all traces of a previous manual Vala install)

Step 1-a: Install Vala from the PPA Repository

You should add the Repository and update (or install Vala) https://edge.launchpad.net/~bruce89/+archive/ppa

Step 1-b: Obtain the Source for Vala 0.5.5

cd ~/
wget -c http://download.gnome.org/sources/vala/0.5/vala-0.5.5.tar.bz2
tar xjvf vala-0.5.5.tar.bz2
cd vala-0.5.5/

Step 2: Make sure that no older version of vala is installed

If you're using the source version, make sure that no prior version is installed as a deb by typing

sudo dpkg-query --list |grep vala

If that is the case then type:

sudo apt-get remove vala

Make sure that no source install older than 0.5.5 is on your system. As you're in the Vala directory you've just downloaded, just type:

sudo make uninstall

You can check which version of Vala is installed by typing:

valac --version

Step 3: Configure and Compile Vala

./configure
make
sudo make install
sudo ldconfig

You can check that Vala 0.5.5 is installed and that you ready to go on by typing:

valac --version

Step 4: Obtain the Source for GlobalMenu

Download GlobalMenu

cd ~/
svn checkout http://gnome2-globalmenu.googlecode.com/svn/trunk/ gnome-globalmenu-0.7
cd gnome-globalmenu-0.7

Step 5: Configure and Compile GlobalMenu

./autogen.sh --prefix=/usr
make
sudo make install

Step 6: Remove an obsolete line if you used GlobalMenu before

If you had globalmenu before and have this line in your ~/.gnomerc or ~/.profile : remove it

export GTK_MODULES=globalmenu-gnome

Step 7: Add the GlobalMenu to your panel and enable it

  • Right click on an empty part of your panel
  • choose “Add to panel” from the popup menu
  • Scroll down until you see “Global Menu Panel Applet”
  • Select it and click “add” (or drag and drop it on the panel)
  • GlobalMenu can now be enabled via the preferences dialog of the applet.
  • Right Click on the applet
  • Choose preferences
  • Check the first option : “Enable Global Menu For GTK Applications”.

Step 8: Enjoy

And report any bug or features you'd want to see in Issues.

And voilà ! :)

Comment by pixelaz...@gmail.com, Jan 21, 2009

hi, i followed every step but i got this error "configure: error: test for libpanelapplet-2.0 and libnotify failed. (--without-gnome-panel to disable)." upon copiling global menu issuing this command: ./autogen.sh

please help, tnx

Comment by ayoli...@gmail.com, Jan 22, 2009

@pixelazion : install libnotify-dev will fix this

Comment by pixelaz...@gmail.com, Jan 24, 2009

i guess so, but that's strange coz, i did the prerequisites first, must hav missed it. but anyway i made it work using this:

http://sites.google.com/site/cajablatech/various-ubuntu-files/gnome-globalmenu_0.7.1-1.fc10_i386.deb from the other how to in this site.

the strange thing is when I compile the 0.7.2 version from the download section is there were no errors but the menu don't work, then when i compile the one from the SVN it gave me "configure: error: test for libpanelapplet-2.0 and libnotify failed. (--without-gnome-panel to disable)." error. thingy.

but anyway it's working now, but most of the time it quits unexpectedly. especially when i switch from one window to another too fast.

Comment by themacfa...@gmail.com, Feb 4, 2009

Thanks for the tip, Ayo; I was on the verge of being driven MAD (again). I wish the developers would finish one version (i.e. get the dependencies right, get the right name in the repositories, maybe package an .rpm and a.deb etc.) before going on to the next version... The project's getting a bad reputation for buggy code, etc., just because nothing is finished properly, which is a shame because it's a great idea...

Comment by vmi...@gmail.com, Feb 8, 2009

I just compiled Vala 0.5.5, and used it to build the revision 2259 of global menu. The build went well, and I can add the applet to my panel.

The problem is that the preferences menu is blank (just a blank maybe 40x40 pixel window) with nothing in it (I resized it to check). Of course, the global menu functionality is not there at all as I can't see it on the panel.

The only reason I built it all from source is that I had the EXACT same problem with the stable build in the PPA.

Any help/solutions?

Comment by vmi...@gmail.com, Feb 9, 2009

.. and Revision 2260 breaks the build on Vala 0.5.5.

Comment by Steff...@gmail.com, Feb 15, 2009

i got the same freakin problem as vminch... i just get a litle window with no options in it.. so what should we do?.. plz help ..

Comment by vmi...@gmail.com, Sep 2, 2009

I need to build globalmenu again, and I followed the steps on the wiki. rev2640 is not building. All of the issues are in testman.c;

testman.c:6: error: ‘NULL’ undeclared here (not in a function)

etc..

Comment by hypno...@gmail.com, Jan 26, 2010

I have the same error: testman.c:6: error: ‘NULL’ undeclared here (not in a function)

Comment by gerx...@gmail.com, Oct 2, 2010

i followed all the steps but it did not install for me :(

i'm on ubuntu 10

i'm getting this >

make2?: [testman.vapi] Error 1 make2?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/tests' make1?: [all-recursive] Error 1 make1?: Leaving directory `/home/lalo/gnome-globalmenu-0.7' make: all? Error 2 lalo@lalo-desktop:~/gnome-globalmenu-0.7$ sudo make install make install-recursive make1?: Entering directory `/home/lalo/gnome-globalmenu-0.7' Making install in vapi make2?: Entering directory `/home/lalo/gnome-globalmenu-0.7/vapi' make3?: Entering directory `/home/lalo/gnome-globalmenu-0.7/vapi' make3?: Nothing to be done for `install-exec-am'. make3?: Nothing to be done for `install-data-am'. make3?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/vapi' make2?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/vapi' Making install in tests make2?: Entering directory `/home/lalo/gnome-globalmenu-0.7/tests' /usr/local/bin/valac --vapidir=../vapi -H testman.h -C --basedir=.. --pkg gtk+-2.0 --library testman testman.vala Unknown option -H Run '/usr/local/bin/valac --help' to see a full list of available command line options. make2?: [testman.vapi] Error 1 make2?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/tests' make1?: [install-recursive] Error 1 make1?: Leaving directory `/home/lalo/gnome-globalmenu-0.7' make: install? Error 2 lalo@lalo-desktop:~/gnome-globalmenu-0.7$ sudo make install make install-recursive make1?: Entering directory `/home/lalo/gnome-globalmenu-0.7' Making install in vapi make2?: Entering directory `/home/lalo/gnome-globalmenu-0.7/vapi' make3?: Entering directory `/home/lalo/gnome-globalmenu-0.7/vapi' make3?: Nothing to be done for `install-exec-am'. make3?: Nothing to be done for `install-data-am'. make3?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/vapi' make2?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/vapi' Making install in tests make2?: Entering directory `/home/lalo/gnome-globalmenu-0.7/tests' /usr/local/bin/valac --vapidir=../vapi -H testman.h -C --basedir=.. --pkg gtk+-2.0 --library testman testman.vala Unknown option -H Run '/usr/local/bin/valac --help' to see a full list of available command line options. make2?: [testman.vapi] Error 1 make2?: Leaving directory `/home/lalo/gnome-globalmenu-0.7/tests' make1?: [install-recursive] Error 1 make1?: Leaving directory `/home/lalo/gnome-globalmenu-0.7' make: install? Error 2

this is what i'm am getting when i run the '

Comment by gerx...@gmail.com, Oct 3, 2010

found a much easier way to install

http://www.ubuntugeek.com/how-to-install-globalmenu-in-ubuntu-10-04lucid9-10karmic.html

sudo add-apt-repository ppa:globalmenu-team/ppa sudo apt-get update sudo apt-get install gnome-globalmenu

or http://joesteiger.com/2010/06/14/install-global-menu-mac-os-x-like-panel-ubuntu-10-04/

In case anyone else is having this issue on 10.4 ;)


Sign in to add a comment
Powered by Google Project Hosting