From: cpinson <cp...@fr...> - 2004-11-26 19:42:46
|
Loic Dachary wrote: > Zhao Huang (zhuang@Princeton.EDU) writes: > > Hi, > > > > I'm writing to ask you for help on using your python verson of > > the pokersource package. I know a little bit about python, but I've > > never tried extending it with C modules before. Can you send me > > instructions on how to compile your package using MSVC++ or even > > better yet send me a precompiled object for use under winxp? > > > > I've managed to compile the C version of the pokersource, but I > > have no idea on to begin with your python ver. Thanks! > > I know nothing about windows myself and I am therefore unable > to help you. However, Cedric Pinson and Igor Kravtchenko know how to > do what you want and may be willing to help. > > Cheers, > I can explain how we work on win32. We have a cvs and a standard hierarchy. I will take as example default value that should work for a full install. Let's go. You need to get the cvs called envwin32. extract it on your disk (C:\dev\), and create a virtual drive u: that point to the following directory (with the command subst like this subst u: "c:\dev\envwin32"). Then setup environnement variable from the file envars.txt (this file is in envwin32) in order to compile fine with .NET projects. You need to install Pyhton (http://www.python.org/ftp/python/2.3.4/Python-2.3.4.exe) and twisted (http://twistedmatrix.com/products/get-current.epy?type=win32-py2.3.exe) in the default directory of the install. You will need to add the include and libs path in the visual studio configuration eg: C:\Program Files\Python23\libs for python libs C:\Program Files\Python23\include for python include I recommand you to install cygwin, we use some scripts to help us in some tasks. So now you can extract the following modules in the directory u\:libs\internal\ directory. osgcal, poker-eval, underware, openalpp, openscenegraph, osgal, cal3d, poker3dwin32. Now you should can open the solution in u:\libs\internal\underware\underware.sln and compile the solution. if all is ok you can run the cygwin shell and go to u:\script. execute the commande ./make_working_common.sh debug for debug or ./make_working_common.sh release for release it should copy all needed files in the directory u:working/release/. To run the game run file u:\working\release\example\poker\poker3d.exe I hope it will help you. Don't hesitate to ask if you have problems Cheers Cedric |