Thanks, it solves the problem. Now I have another one.
I have one directory with pixmaps.
I want this pixmaps copies to somewrhere when make install (I supose
/usr/local/share/myprogram/pixmaps)
In my program I use
gdk_pixbuf_new_from_file("pixmaps/rotate.xpm", NULL);
¿who should I change that?
I have placed this Makefile.am in the pixmaps directorie
## Process this file with automake to produce Makefile.in
pixmapdir = $(datadir)/pixmaps
EXTRA_DIST = bomb.xmp debian.xpm left.xpm \
right.xpm rotate.xpm source.xpm
pixmap_DATA = bomb.xmp debian.xpm left.xpm \
right.xpm rotate.xpm source.xpm
But when I try to compile it with make
make[2]: Leaving directory `/home/bennett/Programacion/GtkLilo/pixmaps'
make[2]: Entering directory `/home/bennett/Programacion/GtkLilo/pixmaps'
make[2]: *** There is no rule to build the aim `bomb.xmp', needed for `all-am'. Stop.
(This last line is translated because it appears in spanish)
make[2]: Leaving directory `/home/bennett/Programacion/GtkLilo/pixmaps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bennett/Programacion/GtkLilo'
make: *** [all-recursive-am] Error 2
> Hi,
>
> Ruben Porras <nahoo82 telefonica net> writes:
>
> > for the moment I was compiling my progam as said in the gtk+2.0 tutorial
> >
> > gcc src/lilo.c -o gtklilo `pkg-config --cflags --libs gtk+-2.0`
> >
> > but now I want to add some configure stuff.
> >
> > my configure.ac is
> >
> > dnl Process this file with autoconf to produce a configure script
> > AC_INIT(src/lilo.c)
> > AM_INIT_AUTOMAKE(gtklilo, 0.1)
> > AM_MAINTAINER_MODE
> >
> > #AC_ISC_POSIX
> > AC_PROG_CC
> > #AM_PROG_CC_STDC
> > #AC_HEADER_STDC
> >
> > pkg_modules="gtk+-2.0"
> > PKG_CHECK_MODULES(PACKAGE,[$pkg_modules])
> > AC_SUBST(PACKAGE_CFLAGS)
> > AC_SUBST(PACKAGE_LIBS)
> >
> > AC_OUTPUT([
> > Makefile
> > src/Makefile
> > ])
>
> looks fine.
>
> > The problem is that I dont know how to add the --cflags to gcc
>
> you want to add
>
> INCLUDES = @PACKAGE_CFLAGS@
>
> to your Makefile.am
>
>
> Salut, Sven
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
--
The chains are broken and the door is open wide
Our eyes adjusting to the light that was denied
And the voices ringing out now
Sing of freedom
And bring a sense of wonder
http://www.es.debian.org/intro/about.es.html
Attachment:
signature.asc
Description: Esta parte del mensaje esta firmada digitalmente