rtc_plugins/build.sh

18 lines
728 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 \
2025-04-15 12:47:47 +08:00
-L./lib -L/usr/lib/x86_64-linux-gnu \
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 \
2025-04-15 12:52:27 +08:00
-lMRTCEngine -lboost_python310 -lboost_numpy310 -lpython3.10 \
2025-04-10 16:20:22 +08:00
-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