onvif开发系列之--------编译gsoap

最近换最新版gsoap发现与原来版本有些不同,以此备忘。

一、下载最新版gsoap 

http://www.cs.fsu.edu/~engelen/soap.html

gsoap_2.8.21.zip

(P.S. 本来是下载的2.8.20版本的,结果在stdsoap2.cpp中 soap_dateTime2s()出了个问题,直接用2.8.21版本的stdsoap2.cpp又报什么版本不同的错,索性就重新编译2.8.21版本 
)

二、编译gsoap

gsoap下载下来后发现只有mac与win32 ,其他版本重新编译。

使用环境:gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 

需要依赖的工具和库有:

1. Automake tools (make and GNU m4) to configure and build
2. Bison http://www.gnu.org/software/bison or the alternative Yacc
3. Flex http://flex.sourceforge.net 
4a. either OpenSSL (for optional HTTPS) http://www.openssl.org
4b. or GNUTLS (for optional HTTPS) http://www.gnu.org/software/gnutls/
5. Zlib (for optional compression) http://www.zlib.net
6. Pthreads or win32 threads (optional)

具体步骤参考:http://www.cnblogs.com/coveted/p/3492342.html

    sudo apt-get install g++ bison flex openssl libssl-dev 

然后到 gsoap-2.8/ 目录下

1、    ./configure

2、   make

3、    make install

      完成编译。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值