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

      完成編譯。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章