Skip to content
Snippets Groups Projects

Update of install process

Merged Quentin Leblanc requested to merge QL-devel into main
2 files
+ 105
11
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 24
0
OPENCVFLAG=`pkg-config --libs --cflags opencv3`
CAMERAFLAG=-lrealsense2
YAMLFLAG=-I/usr/local/include -L/usr/local/lib -lyaml-cpp
DEP_SANDBOX=$(OPENCVFLAG) $(CAMERAFLAG) $(YAMLFLAG)
SANDBOX=-I/home/quentin/Documents/HEPIA/ar_sandbox_lib/inc -L/home/quentin/Documents/HEPIA/ar_sandbox_lib/build_test/lib -lsandbox
CFLAGS=-std=c++11 -Wall -Wextra -g -Ilib -fPIC
WRAPPER_NAME=sandbox_wrapper.so
all: sandbox_wrapper.so
sandbox_wrapper: sandbox_wrapper.o
c++ -o $@ $^ $(shell python3-config --libs) $(CFLAGS) $(SANDBOX) $(DEP_SANDBOX) $(LDFLAGS)
sandbox_wrapper.so: sandbox_wrapper.o
c++ -O3 -shared $(CFLAGS) $(shell python3 -m pybind11 --includes) $^ -o $(WRAPPER_NAME)$(python3-config --extension-suffix) $(DEP_SANDBOX) $(SANDBOX)
sandbox_wrapper.o: sandbox_wrapper.cpp
c++ -c $^ -o $@ -I/usr/include/python3.13 $(python3 -m pybind11 --includes) $(CFLAGS) $(SANDBOX) $(DEP_SANDBOX)
clean:
rm *.so *.o
\ No newline at end of file
Loading