[glade--]No rule to make target `1.c', needed by `1.o'. Stop.



Hello,


I'm trying to use glade-2 1.1.1 with the latest glademm from cvs under
Debian unstable. I create a window with a menu, save it as 1.glade, and
feed it to glade--. It says:

Found pkg-config version 0.11.0
Generating code for gtk 2.0.6 (pkg-config), gtkmm 1.3.21 (pkg-config),
[gnomemm 1.2.2 (pkg-config)]


Then I run autogen.sh. It doesn't give errors, except the following
messages:

...
You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'.
...
src/Makefile.am:7: bad macro name `__SOURCES'
src/Makefile.am:18: bad macro name `__LDADD'
src/Makefile.am:7: invalid unused variable name: `__SOURCES'
src/Makefile.am:18: invalid unused variable name: `__LDADD'
...


After that, make fails:

/usr/bin/make  all-recursive
make[1]: Entering directory `/home/ibr/tmp/glade/1'
Making all in src
make[2]: Entering directory `/home/ibr/tmp/glade/1/src'
make[2]: *** No rule to make target `1.c', needed by `1.o'.  Stop.
make[2]: Leaving directory `/home/ibr/tmp/glade/1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ibr/tmp/glade/1'
make: *** [all-recursive-am] Error 2


The generated src/Makefile doesn't contain any implicit .cc.o rules, and
lists "1_SOURCES = 1.c". I change the latter to .cc and add the
following lines:

%.o:    %.cc
        $(COMPILE) -c $<


This time make at least invokes the compiler, which also fails:

gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c 1.cc
1.cc:8: gtkmm/main.h: No such file or directory
In file included from window1.hh:13,
                 from 1.cc:10:
window1_glade.hh:13: gtkmm/window.h: No such file or directory


I define INCLUDES in src/Makefile:

INCLUDES = -I/usr/include/gtkmm-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0

Compilation fails with other include files (like glibmmconfig.h,
gtkmmconfig.h, gdkmmconfig.h, pango/pango-item.h and many others) not
found.


I've tried to paste libtool.m4 before and after aclocal.m4 contents; the
result was the same. Glade 0.6.4 output also caused the same problem.
Seems that I can go further hacking the Makefiles, but I suspect this
might be a simple auto* problem. I would be very grateful if anyone
could help me with that.


Thanks in advance,
Baurjan.

P.S. Please cc to me, I'm not subscribed.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]