[gcompris-devel] The python plugin...

Bruno Coudoin bruno.coudoin at free.fr
Wed Mar 5 11:18:04 UTC 2003


Now, I installed
libpython2.2-devel
pygtk2.0-devel

And I can pass the configure step.

Now I am in trouble with src/board/Makefile.am

The first lines are not handled properly, these lines need not to start
with space:
python_plugin = libpython.la
python_subdir = python


Then, I don't understand why, the libpython_la_CPPFLAGS is not taken in
account and the phyton include are not used.
As a temporary workaround, I add them to global includes :
INCLUDES = \
	-I.. \
	-I$(top_srcdir)/intl \
	$(GCOMPRIS_CFLAGS) \
	$(XML_CFLAGS) \
	$(PYTHON_CFLAGS) \
	$(PYGTK_CFLAGS)


AND NOW I GOT THE PYTHON COMPILED !!!!

Now, at running time I have :
./src/boards/.libs/libpython.so: undefined symbol: PyType_Type

Olivier, HELP.

We are getting closer...

Bruno.

Le mer 05/03/2003 à 18:16, Olivier Samyn a écrit :
> Ah ah... at last bruno have the canvas bug :)
> 
> Be happy the patch I send for gcompris2.3 works also with the cvs
> version...
> 
> Also, I tested the latest version of gnomecanvas as you suggested and
> the problem we had is not solved (it resolv some other for which I don't
> made a patch but not the biggest one that prevent the menus and
> shapegames to work as they have to).
> 
> Do you got my patched version of gcompris working ?
> 
> Also, I added some more functions to the python wrapper those last
> days... but I'll wait for the python be in the cvs to make a patch and
> add thos functions (gameutil and sound wrapper for now... the rest will
> come soon)
> 
> Olivier
> 
> 
> Le mar 04/03/2003 à 19:50, Bruno Coudoin a écrit :
> > OK, I have been able to compile gcompirs (cvs version) on my Mandrake
> > 9.1 box.
> > The trick is that there is 2 autoconf version and by default, just the
> > old one is there. I installed the newest 2.5 and I'am
> > 
> > $ rpm -qa | grep autoconf
> > autoconf-2.13-16mdk
> > autoconf2.5-2.57-3mdk
> > 
> > Now I have installed gcompris and nothing works :( I believe its the
> > canvas refresh bug)
> > 
> > 
> > BTW, Pascal I got :
> > ./src/boards/.libs/libsubmarine.so: undefined symbol:
> > item_rotate_with_center
> > 
> > Bruno.
> > 
> > Le lun 03/03/2003 à 20:06, Olivier Samyn a écrit :
> > > Le lun 03/03/2003 à 19:34, Bruno Coudoin a écrit :
> > > > OK, I do my best trying to release your code but I have many trouble
> > > > with the autoconf process.
> > > > Here is my conf. I have a brain new Mandrake 9.1. I updated to
> > > > autoconf-2.54 and automake-1.6.3
> > > > Then sh autogen.sh gives me the following error and I am stuck. What can
> > > > I do ?
> > > > 
> > > > $ sh autogen.sh
> > > > Gcompris modified gnome-autogen.sh
> > > > checking for autoconf >= 2.53...
> > > >   testing autoconf2.50... not found.
> > > >   testing autoconf... found.
> > > > checking for automake >= 1.6...
> > > >   testing automake-1.7... not found.
> > > >   testing automake-1.6... found.
> > > > checking for libtool >= 1.4.3...
> > > >   testing libtoolize... found.
> > > > checking for glib-gettext >= 2.2.0...
> > > >   testing glib-gettextize... found.
> > > > checking for intltool >= 0.25...
> > > >   testing intltoolize... found.
> > > > checking for pkg-config >= 0.14.0...
> > > >   testing pkg-config... found.
> > > > Checking for required M4 macros...
> > > > Checking for forbidden M4 macros...
> > > > **Warning**: I am going to run `configure' with no arguments.
> > > > If you wish to pass any to it, please specify them on the
> > > > `autogen.sh' command line.
> > > >  
> > > > Processing ./configure.in
> > > > Running aclocal-1.6...
> > > > Running libtoolize...
> > > > Running glib-gettextize... Ignore non-fatal messages.
> > > > Copying file po/Makefile.in.in
> > > >  
> > > > Please add the files
> > > >   codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
> > > >   progtest.m4
> > > > from the /usr/share/aclocal directory to your autoconf macro directory
> > > > or directly to your aclocal.m4 file.
> > > > You will also need config.guess and config.sub, which you can get from
> > > > ftp://ftp.gnu.org/pub/gnu/config/.
> > > >  
> > > > Running intltoolize...
> > > > patching file po/Makefile.in.in
> > > 
> > > Until those lines, the process seems to work and I get something similar
> > > on my two systems...
> > > 
> > > > Running autoheader...
> > > > Can't locate Autom4te/General.pm in @INC (@INC contains:
> > > > /nfs/users/thunder/cvs/ximian-desktop/autoconf/dest/usr/share/autoconf
> > > > /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> > > > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> > > > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> > > > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> > > > /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
> > > > /usr//bin/autoheader line 36.
> > > > BEGIN failed--compilation aborted at /usr//bin/autoheader line 36.
> > > > 
> > > > 
> > > 
> > > It seems there is a problem with the autoconf installation... If you
> > > look at line 36 of the autoheader script, it loads a perl module named:
> > > Autom4te::General
> > > 
> > > And those module files are located on my system into /usr/share/autoconf
> > > (even on my LFS where I just did a ./configure; make; make install)
> > > 
> > > how do you updated you autoconf ? with mandrake rpm's ? do you tryed to
> > > use it outside my patched gcompris ?
> > > 
> > > also this line in the search path seems strange:
> > > nfs/users/thunder/cvs/ximian-desktop/autoconf/dest/usr/share/autoconf
> > > seems it was a badly configured/installed script...
> > > 
> > > And finally, what where the Mandrake 9.1 installed version of
> > > automake/autoconf ? They are maybe enough recent to work... no ?
-- 
ofset    http://ofset.sf.net/
gcompris http://ofset.sf.net/gcompris





More information about the Gcompris-devel mailing list