Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37ee5b8

Browse files
committed
Link python wrapper to both kinova libraries
1 parent 571fbbd commit 37ee5b8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ PYTHON_INCLUDE:=/usr/include/python2.7
88
endif
99

1010
ifndef KINOVA_INCLUDE_DIR
11-
KINOVA_INCLUDE_DIR:=/usr/include/KinovaAPI
11+
KINOVA_INCLUDE_DIR:=/usr/include
1212
endif
1313

14-
ifndef KINOVA_LIB_DIR
15-
KINOVA_LIB_DIR:=/usr/lib
16-
endif
17-
18-
ifndef KINOVA_LIB
19-
KINOVA_LIB:=Kinova.API.USBCommandLayerUbuntu.so
14+
ifndef KINOVA_LINK
15+
KINOVA_LINK:=-L/usr/lib -l:Kinova.API.USBCommandLayerUbuntu.so -l:Kinova.API.CommLayerUbuntu.so
2016
endif
2117

2218
all: _kinovapy.so kinovapy.py
@@ -26,7 +22,7 @@ clean:
2622

2723

2824
_kinovapy.so: kinovapy.cc
29-
$(CXX) -fPIC -g -shared -o $@ -I$(KINOVA_INCLUDE_DIR) -I$(PYTHON_INCLUDE) $< -L$(KINOVA_LIB_DIR) -l:$(KINOVA_LIB)
25+
$(CXX) -fPIC -g -shared -o $@ -I$(KINOVA_INCLUDE_DIR) -I$(PYTHON_INCLUDE) $< $(KINOVA_LINK)
3026

3127
# maybe need -Wl,-rpath,$(KINOVA_LIB_DIR)
3228

0 commit comments

Comments
 (0)