(→What you need) |
m |
||
| Line 3: | Line 3: | ||
== What you need == | == What you need == | ||
| - | This tutorial explains you, how you can build cspython, _cspace, and CEL blpython plugins with MSVC. First, I assume, you succeslfully compiled CS (and optionally CEL). You can find the comlete | + | This tutorial explains you, how you can build cspython, _cspace, and CEL blpython plugins with MSVC. First, I assume, you succeslfully compiled CS (and optionally CEL). You can find the comlete guide to do this in the [http://www.crystalspace3d.org/docs/online/manual-1.0/cs_2.4.2.php#2.4.2 manual]. |
| - | Get python packages from the official [http://www.python.org site], and download a Windows binary package. Install it. Finally, download the correct ''cs_pyth.cpp'' from [http://www.crystaldoc.atw.hu/src/CS/cs_pyth.zip here]. | + | Get python packages from the official [http://www.python.org site], and download a Windows binary package. Install it. Finally, download the correct ''cs_pyth.cpp'' from [http://www.crystaldoc.atw.hu/src/CS/cs_pyth.zip here]. Extract the zip file, and copy int your CS/plugins/cscript/csypthon directory. Yes, rewrite the original file. |
| - | + | Prepertion finished. | |
| + | |||
| + | == Setting up MSVC IDE == | ||
| + | |||
| + | 1. Run MSVC IDE. | ||
| + | 2. Go to the ''Tools->Options->Projects and Solutions->VC++ Directories'' | ||
| + | Select ''Include files'' above. Click to New Line icon, and type or select your ''Python"2X/Include'' directory. | ||
| + | 3. Select ''Library files'' Click to New Line icon, and type or select your ''Python"2X/libs'' directory. | ||
| + | |||
| + | From now MSVC will find Python related headers and directories. | ||
| + | |||
| + | == Creating the solution == | ||
Revision as of 15:25, 28 January 2007
Contents |
Compiling Python bindings with MSVC
What you need
This tutorial explains you, how you can build cspython, _cspace, and CEL blpython plugins with MSVC. First, I assume, you succeslfully compiled CS (and optionally CEL). You can find the comlete guide to do this in the manual. Get python packages from the official site, and download a Windows binary package. Install it. Finally, download the correct cs_pyth.cpp from here. Extract the zip file, and copy int your CS/plugins/cscript/csypthon directory. Yes, rewrite the original file. Prepertion finished.
Setting up MSVC IDE
1. Run MSVC IDE. 2. Go to the Tools->Options->Projects and Solutions->VC++ Directories Select Include files above. Click to New Line icon, and type or select your Python"2X/Include directory. 3. Select Library files Click to New Line icon, and type or select your Python"2X/libs directory.
From now MSVC will find Python related headers and directories.
