diff --git a/build.sh b/build.sh index 9d1aa5a..37c12a7 100644 --- a/build.sh +++ b/build.sh @@ -1,9 +1 @@ -g++ -shared -fPIC -std=c++11 \ - $(python3 -m pybind11 --includes) \ # 自动获取 pybind11 和 Python 头文件路径 - -I./include \ # 保留自定义头文件路径 - -L./lib -L/usr/lib/x86_64-linux-gnu \ - -lMRTCEngine \ # 保留其他必要库 - -lpython3.10 \ # 仍然需要链接 Python - -Wl,-rpath='$ORIGIN/lib' \ # 保留运行时库路径 - -o rtc_plugins$(python3-config --extension-suffix) \ # 标准化输出文件名 - rtc_plugins.cpp util/RTCContext.cpp +g++ -shared -fPIC -std=c++11 $(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