最近换最新版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
完成编译。