rtc_plugins/build.sh

17 lines
676 B
Bash
Raw Normal View History

2025-04-10 12:54:23 +08:00
#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
2025-04-09 16:51:49 +08:00
g++ -shared -fPIC \
2025-04-09 18:13:36 +08:00
-I/usr/include/python3.10 -I/usr/include/python3.10/numpy -I./include \
2025-04-10 12:54:23 +08:00
-I/usr/include/python3.10 -I/usr/include/numpy \
2025-04-09 16:51:49 +08:00
-Wl,-rpath='$ORIGIN/lib' \
2025-04-10 12:54:23 +08:00
-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 \
2025-04-09 16:51:49 +08:00
-o rtc_plugins.so