You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2007-08-13 20:03:09

yS
Member
Registered: 2007-04-22
Posts: 6

Can't build glade port in Ubuntu 7.04

When configuring...

checking for LIBGLADE... yes
WARNING: intltool and/or gettext are not available therefore the gtk-glade interface won't be installed. The gtk-glade UI requires intltool and gettext.

Strange. Looking at configure script...

if test "x$HAVE_SDL" = "xyes"; then
  # SDL adds just a cli
  UI_DIR="cli $UI_DIR"
  if test "x$HAVE_GTK" = "xyes"; then
    # GTK requires SDL
    UI_DIR="gtk $UI_DIR"
  fi

  if test "x$HAVE_LIBGLADE" = "xyes"; then

      echo "WARNING: intltool and/or gettext are not available therefore the gtk-glade interface won't be installed. The gtk-glade UI requires intltool and gettext."

  fi
fi

So if $HAVE_LIBGLADE equals to yes... then... warning?! I'm missing something, isn't it?

Anyway, glade port isn't built, and if I try to build it by doing "make" in the src/gtk-glade directory...

main.c: In function 'main':
main.c:616: error: 'GETTEXT_PACKAGE' undeclared (first use in this function)
main.c:616: error: (Each undeclared identifier is reported only once
main.c:616: error: for each function it appears in.)
make: *** [main.o] Error 1

But I DO have gettext and intltool...

$ LANGUAGE=en apt-cache policy gettext | grep Installed
  Installed: 0.16.1-1ubuntu2
$ LANGUAGE=en apt-cache policy intltool | grep Installed
  Installed: 0.35.5-0ubuntu2

Any directions, please? Thank you very much.

Offline

#2 2007-08-14 15:26:36

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Can't build glade port in Ubuntu 7.04

That's very weird...
That's not what i see in configure.ac from the official 0.7.3 tarball.
In fact, here's what there is:

  if test "x$HAVE_LIBGLADE" = "xyes"; then
    AC_PROVIDE_IFELSE([IT_PROG_INTLTOOL],[
      # libglade requires SDL too
      UI_DIR="gtk-glade $UI_DIR"

      dnl -- localization for gtk-glade UI
      GETTEXT_PACKAGE=desmume
      AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the gettext package name])
      AC_SUBST(GETTEXT_PACKAGE)
      ALL_LINGUAS="fr"
      AM_GLIB_GNU_GETTEXT
      PO_DIR="po"
      PO_FILES="intltool-extract intltool-merge intltool-update"
      PO_FILES_IN="intltool-extract.in intltool-merge.in intltool-update.in"
      PO_MAKEFILE="po/Makefile.in"
    ],[
      echo "WARNING: intltool and/or gettext are not available therefore the gtk-glade interface won't be installed. The gtk-glade UI requires intltool and gettext."
    ])
  fi

The warning is printed if IT_PROG_INTLTOOL is not available.
IT_PROG_INTLTOOL is defined in /usr/share/aclocal/intltool.m4 .

Offline

#3 2007-08-15 18:50:20

yS
Member
Registered: 2007-04-22
Posts: 6

Re: Can't build glade port in Ubuntu 7.04

Yes, that's truth, but take a look at "configure", not "configure.ac". I shouldn't need to run "./autogen.sh" in a tarball release, as said in the README.LIN.

Btw, when I run "./autogen.sh" the configure script looks better (I think it's now ok) but ...

$ LANGUAGE=en ./autogen.sh
Running intltoolize
cp: cannot create regular file `po/Makefile.in.in': No such file or directory
intltoolize: cannot copy '/usr/share/intltool/Makefile.in.in' to 'po/Makefile.in.in'
autoreconf2.50: Entering directory `.'
autoreconf2.50: configure.ac: not using Gettext
autoreconf2.50: running: aclocal  --output=aclocal.m4t
autoreconf2.50: `aclocal.m4' is unchanged
autoreconf2.50: configure.ac: tracing
autoreconf2.50: configure.ac: not using Libtool
autoreconf2.50: running: /usr/bin/autoconf --force
autoreconf2.50: configure.ac: not using Autoheader
autoreconf2.50: running: automake --add-missing --copy --force-missing
configure.ac:190: required file `./${PO_MAKEFILE}.in' not found
autoreconf2.50: automake failed with exit status: 1

Offline

#4 2007-08-18 13:16:50

musuruan
Member
Registered: 2007-05-19
Posts: 2

Re: Can't build glade port in Ubuntu 7.04

I have the same problem on a Fedora 7. It seems that the po subdirectory (and its files) weren't packaged. Could you please provide an updated source package that solves this problem?

Thanks.

Andrea.

Offline

#5 2007-09-03 20:12:51

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Can't build glade port in Ubuntu 7.04

You may use the fixed source tarball i've created for Debian (it includes po/):
http://pkg-games.alioth.debian.org/tarb … rig.tar.gz

Offline

Board footer

Powered by FluxBB