From 396f808877bae139db749113d34a43db56ade406 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Sun, 4 May 2025 10:01:24 +0800 Subject: [PATCH] debug --- build.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 0c87326..b28caf5 100644 --- a/build.sh +++ b/build.sh @@ -1 +1,11 @@ -g++ -shared -fPIC -std=c++17 $(python3 -m pybind11 --includes) -I./include -L./lib -L/usr/lib/x86_64-linux-gnu -lMRTCEngine -lpython3.10 -Wl,-rpath='$ORIGIN/lib' -o rtc_plugins$(python3-config --extension-suffix) rtc_plugins.cpp util/RTCContext.cpp +#g++ -shared -fPIC -std=c++17 $(python3 -m pybind11 --includes) -I./include -L./lib -L/usr/lib/x86_64-linux-gnu -lMRTCEngine -lpython3.10 -Wl,-rpath='$ORIGIN/lib' -o rtc_plugins$(python3-config --extension-suffix) rtc_plugins.cpp util/RTCContext.cpp + +g++ -shared -fPIC -std=c++17 \ + $(python3 -m pybind11 --includes) \ + -I./include \ + -L./lib \ # 指定库搜索路径 + -Wl,-rpath='$ORIGIN/lib' \ # 设置运行时库路径 + -lMRTCEngine \ # 必须明确链接 + -lpython3.10 \ + -o rtc_plugins$(python3-config --extension-suffix) \ + rtc_plugins.cpp util/RTCContext.cpp \ No newline at end of file