Skip to content

Commit 66614de

Browse files
Update README.md
1 parent 76813b1 commit 66614de

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,28 @@ ECS:Python (Embedded C++ Scripting with Python) is a simple Python wrapper libra
1010
To get started all you need to do from your project is #include "EcsPython.h", and link to the EcsPython library. Included with ECS:Python is a demo project (/example) written to assist developers in understanding how to use the API.
1111

1212
ECS:Python requires a Python distribution to be installed on your system. Python can be downloaded from: www.python.org/download
13+
14+
15+
## Build
16+
17+
```
18+
git clone https://github.com/cross-platform/ecs-python.git
19+
cd ecs-python
20+
mkdir build
21+
cd build
22+
cmake ..
23+
make
24+
```
25+
26+
- *`cmake ..` will auto-detect your IDE / compiler. To manually select one, use `cmake -G`.*
27+
- *When building for an IDE, instead of `make`, simply open the cmake generated project file.*
28+
29+
30+
## Debugging on Windows:
31+
32+
The Windows Python distros do not come packaged with a debug library: "pythonXX_d.lib".
33+
So, in order to get ECS:Python to compile in Debug mode:
34+
35+
1. Open: "<python_install_dir>\include\pyconfig.h"
36+
2. Comment out the line "# define Py_DEBUG"
37+
3. Search and replace "_d.lib" with ".lib"

0 commit comments

Comments
 (0)