11 lines
594 B
Bash
11 lines
594 B
Bash
#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 |