From 97c784b3f77df5e5df06fb6c89ae9c0bf3b260ef Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 10 Jan 2020 00:07:55 +0100 Subject: [PATCH] - 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. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7d23e3e..a9e716a 100644 --- a/Makefile +++ b/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__