[gcompris-devel] problem compiling

Frederic Peters fpeters at tiscalinet.be
Fri Jan 4 03:26:02 UTC 2002


Nicolas Pettiaux wrote:
>> Frederic (he is a debian maintainer who helped a lot in the configuration at 
>> the primary school La Futaie) who was with me today was kind enough to help 
>> and succeeded in compiling gcompris 0.9.7. He told me he would also send you 
>> the needed comments and diff files.

And Bruno Coudoin replied:
> That's great. I am aware that the current CVS is not perfect in this
> area. (that's why it's still a CVS ;)
> I am waiting for his patch and comments.

ok, I am not an automake/autoconf expert (and not even trying to) so
the solution is not the perfect one (I duplicate many things I could
have got from gnome aclocal macros) but it works.

ok, the changes:
 - src/boards/Makefile.am: removed every $(GNOME_XML)
 - xml-i18n-*.in: used @INTLTOOL_PERL on first lines (intltool is the
   new name for xml-i18n-tools)
 - configure.in: added checks for libgnomeprint, libxml2 and
   libgnomecanvaspixbuf using gnome-config

There is a problem mixing libgnomeprint and libxml2 since
libgnomeprint still uses libxml1. I ordered the include properly but
that is a dangerous issue...

There is still an issue at the end with xml-i18n-merge stating it
doesn't know the '-p' option.

cvs diff attached (and you should add .cvsignore files all around so
that autogenerated files don't go into cvs)

Regards,
	Frederic

[PS: for the record (and the documentation) packages I needed to build
gcompris on debian (sid, woody shouldn't be much different):
intltool, libgnome-dev, libgnomeprint-dev, libgdk-pixbuf-gnome-dev,
libgtkhtml-dev, libgconf-dev, libgal-dev [not sure I used it but I
remember that one from yesterday], texi2html, libxml2-dev (I think I
didn't forget any) ]

-- 
Frederic Peters <fpeters at tiscalinet.be>   « Le travail a été ce que l'homme
Debian GNU/Linux: http://www.debian.org      a trouvé de mieux pour ne rien
Gaby: http://gaby.sourceforge.net            faire de sa vie. »  R. Vaneigem
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/gnome/gcompris/configure.in,v
retrieving revision 1.12
diff -r1.12 configure.in
40c40,84
< GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS -lgnomecanvaspixbuf"
---
> 
> gnome_modules=
> 
> TMP=`$GNOME_CONFIG --cflags gnome 2> /dev/null`
> if test "_$TMP" = "_"; then
>   AC_MSG_ERROR(Cannot find libgnome)
> else
>   gnome_modules="gnome $gnome_modules"
> fi
> 
> TMP=`$GNOME_CONFIG --cflags gnomeui 2> /dev/null`
> if test "_$TMP" = "_"; then
>   AC_MSG_ERROR(Cannot find libgnomeui)
> else
>   gnome_modules="gnomeui $gnome_modules"
> fi
> 
> TMP=`$GNOME_CONFIG --cflags gnomecanvaspixbuf 2> /dev/null`
> if test "_$TMP" = "_"; then
>   AC_MSG_ERROR(Cannot find libgnomecanvaspixbuf)
> else
>   gnome_modules="gnomecanvaspixbuf $gnome_modules"
> fi
> 
> TMP=`$GNOME_CONFIG --cflags print 2> /dev/null`
> if test "_$TMP" = "_"; then
>   AC_MSG_ERROR(Cannot find libgnomeprint)
> else
>   gnome_modules="print $gnome_modules"
> fi
> 
> TMP=`$GNOME_CONFIG --cflags xml2 2> /dev/null`
> if test "_$TMP" = "_"; then
>   AC_MSG_ERROR(Cannot find libxml2)
> else
>   gnome_modules="xml2 $gnome_modules"
> fi
> 
> GNOME_CFLAGS=`$GNOME_CONFIG --cflags $gnome_modules 2> /dev/null`
> GNOME_LDFLAGS=`$GNOME_CONFIG --libs $gnome_modules 2> /dev/null`
> 
> CPPFLAGS="$CPPFLAGS $GNOME_CFLAGS"
> LIBS="$LIBS $GNOME_LDFLAGS"
> 
> GDK_PIXBUF_LIBS=""
Index: xml-i18n-extract.in
===================================================================
RCS file: /cvs/gnome/gcompris/xml-i18n-extract.in,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 xml-i18n-extract.in
1c1
< #!@XML_I18N_TOOLS_PERL@ -w 
---
> #!@INTLTOOL_PERL@ -w 
Index: xml-i18n-merge.in
===================================================================
RCS file: /cvs/gnome/gcompris/xml-i18n-merge.in,v
retrieving revision 1.2
diff -r1.2 xml-i18n-merge.in
1c1
< #!@XML_I18N_TOOLS_PERL@ -w
---
> #!@INTLTOOL_PERL@ -w
Index: xml-i18n-update.in
===================================================================
RCS file: /cvs/gnome/gcompris/xml-i18n-update.in,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 xml-i18n-update.in
1c1
< #!@XML_I18N_TOOLS_PERL@ -w
---
> #!@INTLTOOL_PERL@ -w
Index: src/boards/Makefile.am
===================================================================
RCS file: /cvs/gnome/gcompris/src/boards/Makefile.am,v
retrieving revision 1.9
diff -r1.9 Makefile.am
29c29
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
38c38
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
46c46
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
55c55
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
64c64
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
73c73
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
82c82
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
91c91
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
100c100
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
109c109
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
118c118
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
127c127
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
136c136
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
145c145
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
154c154
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
163c163
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
171c171
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
179c179
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \
187c187
< 	$(GNOME_XML_LIB) $(INTLLIBS) \
---
> 	$(INTLLIBS) \


More information about the Gcompris-devel mailing list