![]() Add Leap.lib and the full path to python33.lib, typically C:\Python33\libs\python33.lib. Add the path containing Python.h, typically C:\Python33\include. Go to to the C/C -> General property page. From there, set the 'Target Name' to LeapPython and set the 'Configuration Type' to 'Dynamic Library (.dll)'. Open up the project properties, select the Release configuration, and go to the Configuration Properties -> General page. For example: c:\leap_python33>"C:\Program Files (x86)\swigwin-2.0.9\swig.exe" -c -python -o LeapPython.cpp -interface LeapPython Leap.i Copy Leap.h, LeapMath.h, Leap.i, and Leap.lib (x86) into this project folder.įrom that folder, run SWIG to generate LeapPython.cpp. ![]() Install Visual Studio (any of 2008, 2010, or 2012 should be fine), Python 3.3.0 for Windows x86, and swig-2.0.9.Ĭreate an empty C project. On Windows:īuilding LeapPython.pyd on Windows (32-bit Python 3.3.0 for this example) : With a few steps, you can build your own Python 3.3.0 wrapper.
0 Comments
Leave a Reply. |