mirror of
https://github.com/BlackLight/leap-sdk-python3.git
synced 2024-11-23 20:25:13 +01:00
- More robust Python include directory lookup
- Force the use of swig-3, as swig 4 has broken backwards compatibility with some library symbols required by Leap.
This commit is contained in:
parent
630b90a95d
commit
97c784b3f7
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -11,8 +11,8 @@ all:
|
|||
cp -r $(SDK_PATH)/include ./include
|
||||
wget http://tinyurl.com/leap-i-patch -O Leap.i.diff
|
||||
patch -p0 < Leap.i.diff
|
||||
swig -c++ -python -o LeapPython.cpp -interface LeapPython ./include/Leap.i
|
||||
g++ -fPIC -I/usr/include/python$(PYTHON3_VERSION)m -I$(SDK_PATH)/include LeapPython.cpp $(SDK_PATH)/lib/$(ARCH)/libLeap.so -shared -o LeapPython.so
|
||||
swig-3 -c++ -python -o LeapPython.cpp -interface LeapPython ./include/Leap.i
|
||||
g++ -fPIC -I/usr/include/python$(PYTHON3_VERSION)m -I/usr/include/python$(PYTHON3_VERSION) -I$(SDK_PATH)/include LeapPython.cpp $(SDK_PATH)/lib/$(ARCH)/libLeap.so -shared -o LeapPython.so
|
||||
|
||||
clean:
|
||||
rm -rf __pycache__
|
||||
|
|
Loading…
Reference in a new issue