rtc_plugins/build.sh

18 lines
683 B
Bash
Raw Normal View History

2025-04-10 16:20:22 +08:00
g++ -shared -fPIC \
-I/usr/include/python3.10 -I/usr/include/python3.10/numpy -I./include \
-L./lib \
2025-04-10 17:53:30 +08:00
-DRTC_NUMPY_IMPL \
2025-04-10 16:20:22 +08:00
rtc_plugins.cpp util/RTCContext.cpp \
-lMRTCEngine -lboost_python310 -lpython3.10 \
-Wl,-rpath='$ORIGIN/lib' \
-o rtc_plugins.so
2025-04-10 12:54:23 +08:00
#g++ -shared -fPIC \
# -I/usr/include/python3.10 -I/usr/include/python3.10/numpy -I./include \
2025-04-10 16:20:22 +08:00
# -I/usr/include/python3.10 -I/usr/include/numpy \
2025-04-10 12:54:23 +08:00
# -Wl,-rpath='$ORIGIN/lib' \
2025-04-10 16:20:22 +08:00
# -lboost_python310 -lpython3.10 \
# -lMRTCEngine -lboost_python310 -lpython3.10 \
# -L$(python3 -c "import numpy; print(numpy.get_include())") \
# rtc_plugins.cpp util/RTCContext.cpp \
2025-04-10 12:54:23 +08:00
# -o rtc_plugins.so