当前位置: 首页 > 工具软件 > PJSIP > 使用案例 >

pjsip样例

茅鸿宝
2023-12-01

编译pjsip:
./configure --enable-shared --prefix=$PWD/pj_install
make install

编译uac:
g++ -L…/pjproject/pj_install/lib/ -I…/pjproject/pj_install/include -I…/pjproject/pj_install/include/pjsip-simple/ main.cpp -lpjsip -lpj -lpjlib-util -lpjsip-simple -o main

编译uas:
g++ -L…/pjproject/pj_install/lib/ -I…/pjproject/pj_install/include -I…/pjproject/pj_install/include/pjsip-simple/ main.cpp -lpjsip -lpj -lpjlib-util -lpjsip-simple -o main -fpermissive

执行:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:…/pjproject/pj_install/lib/ ./main

参考:
程序 - https://github.com/pjsip/pjproject
样例 - https://download.csdn.net/download/dailu893/4749671

 类似资料: