bug-gnubg
[Top][All Lists]
Advanced

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

Re: Réf. : Re: [Bug-gnubg] Python in Win32 GUI build ?


From: Nardy Pillards
Subject: Re: Réf. : Re: [Bug-gnubg] Python in Win32 GUI build ?
Date: Wed, 08 Oct 2003 17:26:57 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8 Oct 2003 at 13:48, address@hidden wrote:

> I've installed Python 2.2.3 but in the GUI build (old and panel/3D)
> the "Python shell (IDLE)" menu is always disabled. Maybe it is built
> without Python support (Nardy ?). Assuming that's the problem, what
> should I do to build with Python support ? Just set USE_PYTHON to 1 (I
> guess it's somewhere in the makefiles or directly in the source) ?
> 
> MaX.
> 

You have installed 2.2.3.
You will find a /include folder there.
Copy the /include folder (with content ;-)) to
[path]/mingw/include/python22
so you will have mingw/include/python22/include

You will need a libpython22.a
That one is not in the installation of Python 2.2.3.
But you can take python22.dll and create the .a library.

This is how to do it:

1. get pexports
   http://starship.python.net/crew/kernr/mingw32
  
2. extract pexports to [path]
   
3. copy python22.dll to [path]
   
4. execute:
   pexports.exe python22.dll > python22.def
   
5. execute:
   [pathOfMinGW\bin]\dlltool.exe --dllname python22.dll --def 
python22.def --output-lib libpython22.a
(that's one line)
   
6. move libpython22.a to [pathOfMinGW\lib]
   
7. delete the copied python22.dll and python22.def

Now adapt the config and makefile files:

config, add (or change #UNDEF USE_PYTHON to):
#define USE_PYTHON 1

makefile, add:

include/python22
and
LIBS -lpython22


- -- 
Louis Nardy Pillards

"It's better to light a candle, than to curse the darkness"


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 -- QDPGP 2.70 
Comment: http://www.gnubg.org/win32

iQA/AwUBP4QswTPEk1cebYRtEQIpwgCg8pF+WQHdZxe4plXIZnK9Bg8f/lkAnj+k
yDBgppNEX7rI1f2qfYQynynb
=XEb1
-----END PGP SIGNATURE-----




reply via email to

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