PDA

View Full Version : Glade: autogen.sh says "I can't find glade's gnome m4 macros."



Ozzyas
March 15th, 2007, 11:20 AM
Hello,

I recently installed Edgy Eft. When I run autogen.sh on C++ code generated by glade, autogen.sh aborts saying "I can't find glade's gnome m4 macros. Please copy them to ./macros and retry."

Looking into autogen.sh reveals that

[ -r $GLADE_MACROS/gnome/gnome.m4 ] fails; for two reasons:


GLADE_MACROS=`which glade | sed -e 's-bin/glade-share/glade-'` leaves $GLADE_MACROS empty
There is no file "gnome.m4" on my system.


I've got the following glade packages installed:

glademm/edgy uptodate 2.6.0-1.3
libglademm-2.4-dev/edgy uptodate 2.6.3-0ubuntu2
glade-gnome-2/edgy uptodate 2.12.1-5ubuntu2
libglademm-2.4-1c2a/edgy uptodate 2.6.3-0ubuntu2
glade-common/edgy uptodate 2.12.1-5ubuntu2
glade-doc-2/edgy uptodate 2.12.1-5ubuntu2
glade-gnome/edgy uptodate 2.12.1-5ubuntu2
glade-doc/edgy uptodate 2.12.1-5ubuntu2
python-glade2/edgy uptodate 2.10.3-0ubuntu3
libgladeui-1-common/edgy uptodate 3.0.2-0ubuntu1
libglade2.0-cil/edgy uptodate 2.10.0-0ubuntu2
libgladeui-1-4/edgy uptodate 3.0.2-0ubuntu1
libglade2-dev/edgy uptodate 1:2.6.0-1ubuntu2
libglade2-0/edgy uptodate 1:2.6.0-1ubuntu2


Did I miss any dependancies?

The following m4-scripts are present on my system:

/usr/share/aclocal/gnome-doc-utils.m4
/usr/share/aclocal/gnome-common.m4
/usr/share/aclocal/gnome-compiler-flags.m4
/usr/share/glade-2/gnome/gnome-compiler-flags.m4
/usr/share/glade-2/gnome/gnome-common.m4


Can I use any of those instead?

Thank you for your attention.

lnostdal
March 15th, 2007, 12:31 PM
Do not generate source code using Glade! It is deprecated!

Use Glade to generate the .glade/XML-files (use `Save' instead of `Build'), then instead use the libglade-API to load those files (GUI-descriptions) in at runtime: http://developer.gnome.org/doc/API/2.0/libglade/index.html

I link to some writings about gtk+/glade/libglade in my signature; check them out.

Ozzyas
March 15th, 2007, 01:34 PM
Thanks, I will try that.

One attempt at solving my problem was to install glade-3. I switched back to glade-2 because the "generate source" button was missing, :lolflag:.