[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about automake
From: |
Ralf Wildenhues |
Subject: |
Re: about automake |
Date: |
Sat, 18 Oct 2008 08:41:52 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hello OuYang,
* ouyang User wrote on Fri, Oct 17, 2008 at 12:17:18PM CEST:
> I write a program about gtk form. When I use the way of automake to
> compile it, error is out.
[...]
> make[1]: Entering directory `/home/ouyang/testdlg'
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT calculate.o -MD -MP -MF
> ".deps/calculate.Tpo" \
> -c -o calculate.o `test -f 'calculate.c' || echo './'`calculate.c; \
> then mv -f ".deps/calculate.Tpo" ".deps/calculate.Po"; \
> else rm -f ".deps/calculate.Tpo"; exit 1; \
> fi
> calculate.c:1:21: error: gtk/gtk.h: No such file or directory
It looks like you are either missing the gtk/gtk.h header, or an include
path so the compiler can find the header. For the former, please ensure
that you have the gtk devel package(s) installed. For the latter, you
might have to pass the right CPPFLAGS to configure. On my system, that
would be
./configure CPPFLAGS=-I/usr/include/gtk-2.0
but that could be different on yours.
To make your life easier, GTK distributes Autoconf macros for your
package to use. Again, here, /usr/share/aclocal/gtk-2.0.m4 contains
a macro AM_PATH_GTK_2_0 that will define GTK_CFLAGS and GTK_LIBS for
you to use.
Hope that helps.
Cheers,
Ralf
- about automake, ouyang User, 2008/10/17
- Re: about automake,
Ralf Wildenhues <=