bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Win32 and Python 2.2 - libpython22.a


From: Nardy Pillards
Subject: Re: [Bug-gnubg] Win32 and Python 2.2 - libpython22.a
Date: Mon, 14 Jul 2003 15:29:22 +0200

Compile and link OK here

1.
Compiling gnubgmodule.c:

A lot of 'warning: have_xyz redefined'

And these warnings:
gnubgmodule.c: In function `PyToCubeInfo':
gnubgmodule.c:161: warning: unused variable `pch'
gnubgmodule.c: In function `PyToEvalContext':
gnubgmodule.c:261: warning: unused variable `pch'
gnubgmodule.c: In function `PythonMET':
gnubgmodule.c:534: warning: unused variable `pyf'
gnubgmodule.c: In function `PythonPositionID':
gnubgmodule.c:627: warning: implicit declaration of function `PositionID'
gnubgmodule.c: In function `PythonPositionFromID':
gnubgmodule.c:640: warning: implicit declaration of function
`PositionFromID'
gnubgmodule.c: In function `PythonPositionBearoff':
gnubgmodule.c:671: warning: implicit declaration of function
`PositionBearoff'
gnubgmodule.c: In function `PythonPositionFromBearoff':
gnubgmodule.c:695: warning: implicit declaration of function `Combination'
gnubgmodule.c:704: warning: implicit declaration of function
`PositionFromBearof
f'
C:/MINGW/include/winnt.h: At top level:
gnubgmodule.c:677: warning: `PythonPositionFromBearoff' defined but not used

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)

3.
Testing ???
(I have to leave soon and won't be back until tomorrow)

If someone wants to test this build, it's here:
http://users.skynet.be/bk228456/gnubg-python.zip (875 KB)
( mirrored at http://www.gnubg.org/win32/gnubg-python.zip )

The gnubg build is called gnubg-python.exe, and python22.dll and gnubg.py
are included.

Nardy


----- Original Message ----- 
From: "Nardy Pillards" <address@hidden>
To: "GNUBackgammon bug reporting" <address@hidden>
Sent: Monday, July 14, 2003 12:46 AM
Subject: [Bug-gnubg] Win32 and Python 2.2 - libpython22.a


> This URL:
> http://nitace.bsd.uchicago.edu:8080/Wikis/Leo/CompilingPythonWin
>
> Look for:
> A python2.2 import library for distutils.
> __________
> Nardy
>
>
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-gnubg
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]