|
BuildFromSource
how to build global menu from the source.
IntroductionThis article will help you to build gnome-globalmenu from a svn snapshot. This guide works for the master branch on github. Step 0: Prerequisites
Step 1: Obtain the SourceRead GitRepository for how to get the source code from the git repository. Step 2: Compile the Sourceconfigurecd gnome-globalmenu ./autogen.sh --prefix=/usr --sysconfdir=/etc make For most linux flavors I know, --prefix=/usr is more preferable than --prefix=/usr/local. The sysconfdir parameter is to make gconf happy. Other things you may want to change are (useful for packagers) --disable-tests # disable building the tests (they take some time) --disable-schemas-install # disable installing the gconf schemas. DON'T use this unless you know what you are doing componentsTake a look at GlobalMenuSpecification to first understand the required components. libglobalmenu-gnome converts each gtk window to a client. GlobalMenu.PanelApplet is a Global Menu Server. It is a panel applet that features some window management. libgnomenu-panel is another Global Menu Server. It is a GTK Plugin that adds global menu entry to the GNOME main menu bar. modulelibglobalmenu-gnome is a GTK plugin module that makes GTK aware of the global menu by dynamic patching. The library is built under gtk-modules/globalmenu/. At this stage you can set the environment to test the global menu: export GTK_MODULES=globalmenu-gnome Using the environment variable to load the module for end users is not recommended because it is not integrated into the gnome stack. After installation you can enable the module with a gconf key, as mentioned later. If you are debugging, some libtool tricks can help cd gtk-modules/globalmenu; libtool gdb [any application] Environment variable GLOBALMENU_GNOME_AGRS contains the gnu style arguments of the gtk plugin module library GLOBALMENU_GNOME_ARGS= --verbose --disable --log-file="filename" In order not to mess up with gnome-keyring and similar applications that relies on 'zero' output of messages, by default the module will log the verbose messages to ~/.gnomenu.log. The magic environment variable GTK_MENUBAR_NO_MAC can be specified for the module to ignore the applications. export GTK_MENUBAR_NO_MAC=[prgname list, eg: "gedit gnome-settings-daemon"] If some application doesn't work well with the plugin, please file an issue. appletThe gnome-panel applet is built at applet/GlobalMenu.PanelApplet. The applet is built with libgnomenu, which composes the GTK widget representaion of Global Menu. If GNOME_GlobalMenu_PanelApplet.server is not installed to the correct bonobo-activation location, you can not add the applet to the panel. Also, see David's tricks for debugging a panel applet. --verbose for many debug messages. Step 3: InstallcheckFirst check if things are sane. make check Sometimes the checks are broken. If that's the case please file a bug report. installTo install su -c 'make install' post-install configurationIf you disabled the installation of the schema, please install it by the method specified by your distributation. Ensure libglobalmenu-gnome is loaded as a Gtk module by setting the gconf key apps/gnome-settings-daemon/gtk-modules/globalmenu-gnome Notice that loading and unloading the module on the fly is yet experimental. Random crashes do occur: Save your work before toggling Global Menu! So please immediately restart your gnome session after changing this key. Remember to add the applet to your panel. There is also a shortcut to this key in the preference window of the applet. Step 4: PackagingHINTS: Because some of the c source code is built from vala code, prepend a make before make dist to avoid strange building problems. Step 5: Removesu -c 'make uninstall' TroubleshootingIn GeneralPlease report to our project's mail list the detail of the trouble which traps you . We will try to help. the address of the mail list is googlegroups.com: gnome-globalmenu . reverse the order and replace : with @. GIT traffic also goes into the groups. |
Sign in to add a comment
@pixelazion: you should install libgnome-menu-dev
Hi rainwoodman,
im trying to compile gnome globalmenu following the instructions for CentOS5.2 and when I enter ./autogen.sh --prefix=/usr --sysconfdir=/etc
it displays this error:
Please add the files
from the /usr/share/aclocal directory to your autoconf macro directory or directly to your aclocal.m4 file. You will also need config.guess and config.sub, which you can get from ftp://ftp.gnu.org/pub/gnu/config/.Running intltoolize... Running gnome-doc-common... Running aclocal-1.4... aclocal: configure.ac: 14: macro `AM_PROG_CC_C_O' not found in library aclocal: configure.ac: 21: macro `AM_GCONF_SOURCE_2' not found in library
Could you help me please?
thanks for your work! Regards from Gibraltar
sorry i forgot to say that i want to make it work in xfce :D
hi in opensuse 11.1 gnome 2.26 show this:
make: No hay ninguna regla para construir el objetivo licenses.h', necesario para all'. Alto.
say, there is not ruls to buil licenses.s needed for 'alls, stop.
one one idea???
koxmoz: http://pastebin.com/m1cd692f8
I got following notification after adding global menu applet on Debian lenny
Global Menu Plugin is not enabled on this desktop. Enable the plugin by accessing the preference dialog via a right click, or by exporting GTK_MODULES=globalmenu-gnome in your profile.
I've tried this but nothing happened. What to do
./autogen.sh: 15: ./configure: not found in fact, the folder doesn't contain any script named "configure", and neither does the folder on the Internet....
In ubuntu 9.10 ,I got this error while I make it: "make5?: 没有规则可以创建“test-adapter”需要的目标“../libserver.la”。 停止。" what`s wrong?
Same problem here (ubuntu 9.10 amd64, vala 0.7.8)
@iwillhappy1314, @Iviggiani Try: