I am trying to compile a very simple test stub that uses gnome-menu.
It compiles OK but it complains while linking.
Code: Select all
undefined reference to 'menu_layout_load'
Prerequisites:
Download and compile gnome-menus source:
ftp://ftp.gnome.org/pub/gnome/sources/gnome-menus/2.12/
To make it work on puppy you need to disable python during configuration
Code: Select all
./configure --disable-python
It requires to include glib and gnome-menu libraries. Here is the compilation command I'm using (of course, replace the /root/data/tmp with the path where you extracted the gnome-menus).
Code: Select all
gcc -I/root/data/tmp/gnome-menus-2/12/0/libmenu -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o test main.c