ONVIF Server框架搭建#
一、利用gSoap生成ONVIF Server框架
1. 下载GSOAP包
2. 编译GSOAP
软件安装三部曲:
./configure --prefix=~/gSoap(你自己的选择的安装路径)
sudo make
make install
如果遇到错误,请参考https://blog.youkuaiyun.com/qq_18854309/article/details/76737948
等相关博客
3. 使用GSOAP工具生成onvif.h文件
- 在gsoap-2.8目录下新建一个目录,目录的名字随意,比如
onvif_build
(注意改目录的位置为gsoap-2.8/onvif_build); - 将gsoap-2.8/gsoap路径下的typemap.dat和gsoap-2.8/_install/bin下的wsdl2h放入
onvifh_build
目录下; - 确认当前网络是否联网,确保网络在联网状态下,并且要求网络畅通;
- 在terminal终端输入cd跳转到
on