[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Compile with python on Windows
From: |
Nardy Pillards |
Subject: |
Re: [Bug-gnubg] Compile with python on Windows |
Date: |
Tue, 15 Jul 2003 18:49:54 +0200 |
From: "Holger" <address@hidden>
Sent: Tuesday, July 15, 2003 6:13 PM
> Hi,
>
> I get linker errors when I compile with USE_PYTHON. And I did not forget
> gnubgmodule.[cho]. ;-) This is also a clean compile. So I'm out of ideas.
>From previous post:
2.
Steps to compile / link with HAVE_PYTHON on Win32
- installed Python 2.2.3
- converted python22.dll (with pexports and dlltool) to libpyton22.a
(needed, since python22.lib is MSVC dependent and mingw/gcc unfriendly)
- made subfolder \python22 in \mingw\include
(maybe the header files can just be copied into \mingw\include
but I did not try that)
- copied *.h from [installed python22]\include to \mingw\include\python22
- config.gui (copied to config.h by make):
#define HAVE_PYTHON 1
- makefile:
-I/MinGW/include/python22 \ added to INCLUDE
-lpython22 added to LIBS
gnubgmodule.c (and .o) added to SOURCE (and OBJS)
(but please change HAVE_PYTHON to USE_PYTHON ;-) )
... and from another post here:
> > Well... I compiled with .... "#define HAVE_PYTHON 1".
> > I did it again, and this time with "#define USE_PYTHON 1".
> > There is 'Python support' now... (silly smile here).
> >
> > The downloadable gnubg-python.zip file is updated.
> > http://users.skynet.be/bk228456/gnubg-python.zip (875 KB)
> > ( mirrored at http://www.gnubg.org/win32/gnubg-python.zip )
> >
> >
> > Nardy
> >
>
> I tried the GUI version. It does accept the Python commands, but does not
> show the result.
>
> So I built the no-gui, and that one seems to work normal.
> (crashed however when I keyed backspaces to correct a typo).
>
> The Win32 no-gui with Python support is uploaded here:
> http://users.skynet.be/bk228456/gnubg-nogui-python.zip
> and mirrored here:
> http://www.gnubg.org/win32/gnubg-nogui-python.zip
>
> (gnubg.py and python22.dll are alos included)
>
> I assume I can start uploading the nogui builds with Python support
included
> from now on?
>
> Nardy
Nardy