diff --git a/build.sh b/build.sh index b5e154c..efa442e 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,17 @@ +#g++ -shared -fPIC \ +# -I/usr/include/python3.10 -I/usr/include/python3.10/numpy -I./include \ +# -L./lib \ +# rtc_plugins.cpp util/RTCContext.cpp \ +# -lMRTCEngine -lboost_python310 -lpython3.10 \ +# -Wl,-rpath='$ORIGIN/lib' \ +# -o rtc_plugins.so g++ -shared -fPIC \ -I/usr/include/python3.10 -I/usr/include/python3.10/numpy -I./include \ - -L./lib \ - rtc_plugins.cpp util/RTCContext.cpp \ - -lMRTCEngine -lboost_python310 -lpython3.10 \ + -I/usr/include/python3.10 -I/usr/include/numpy \ -Wl,-rpath='$ORIGIN/lib' \ + -lboost_python310 -lpython3.10 \ + -lMRTCEngine -lboost_python310 -lpython3.10 \ + -L$(python3 -c "import numpy; print(numpy.get_include())") \ + -lnumpy_core \ + rtc_plugins.cpp util/RTCContext.cpp \ -o rtc_plugins.so \ No newline at end of file