Re: Build error? (Was: Re: Compile error?)



Thus spake Nils Barth:
> Thus spake Nils Barth:
> > I'm having trouble compiling GTK.
> > After compiling and installing CVS HEAD glib, I check out CVS HEAD
> > gtk+, and autogen.sh dies with:
> > ./configure: syntax error near unexpected token
> > `AM_PATH_GLIB_2_0(1.3.1,,'
> > ./configure: ./configure: line 4315: `  AM_PATH_GLIB_2_0(1.3.1,,'
> > 
> > (or rather, it ends with:
> > Now type 'make' to compile Gtk+.
> > and then make has no targets and dies)
> > 
> > How can I fix this?

Okay, figured out the problem, kinda.

Er, all I know about autoconf I learned in the past few minutes of
reading the manual, but it seems the problem is:
in ./aclocal.m4, there is no
AC_DEFUN(AM_PATH_GLIB_2_0
though there is a
AC_DEFUN(AM_PATH_GLIB

Note: I have been doing all my development in my home directory.
Now, aclocal.m4 is generated from /usr/share/aclocal/*.m4 stuff,
instead of $my_unstable/share/aclocal
(where $my_unstable=/home/nbarth/work/software/unstable).
However, I built/installed glib with:
$ ./autogen.sh --prefix=$my_unstable
and I tried building gtk+ (or pango -- same problem) with
$ ./autogen.sh --prefix=$my_unstable
and
$ ./autogen.sh --prefix=$my_unstable --with-glib=$my_unstable
and
$ ./autogen.sh --prefix=$my_unstable --with-glib=$my_unstable\
  --with-glib-2_0=$my_unstable
(and combinations thereof), making sure to delete aclocal.m4 and
config.cache between attempts.
Still no good.

So:
(0) Would a fix simply involve having aclocal.m4 generated from
$my_unstable/share/aclocal?
(1) Would it be better for me to just dump prefixes and install
glib-2.0 (and fribidi, and pango, and gtk+-2.0) as root?
These don't conflict with [glib,gtk+]-1.2 anymore, right?
(2) If I just want to do GTK+ development, is it okay to use the RPMs
of glib, fribidi, and pango (from the pango site), or do I need to
keep up-to-date with CVS glib (and pango)?

-- 
  -nils
Public key: http://www.fas.harvard.edu/~nbarth/pub-key.txt





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