ONVIF: gsoap安装过程

下面在ubuntu10.04中安装过程:

(1)下载最新gsoap 2.8.11(http://www.cs.fsu.edu/~engelen/soapdownload.html);

(2)在ubuntu10.04中configure。出现如下问题:

configure: error: C++ compiler cannot create executables

原因是漏安装了g++。重新安装后问题解决。(http://5491911.blog.51cto.com/5481911/932205

(3)make. 遇到的问题:

root@ubuntu:/home/zsq/gsoap_2.8.11/gsoap-2.8# make
cd . && /bin/bash /home/zsq/gsoap_2.8.11/gsoap-2.8/missing –run aclocal-1.10
/home/zsq/gsoap_2.8.11/gsoap-2.8/missing: line 46: aclocal-1.10: command not found
WARNING: `aclocal-1.10′ is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the `README’ file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing `aclocal-1.10′ program.
make: *** [aclocal.m4] Error 1

安装如下安装包,解决问题(http://ubuntuforums.org/showthread.php?p=9300062

Install the automake1.10 package (for 10.04 Lucid.)

遇到新的问题:../../ylwrap: line 111: yacc: command not found

解决办法:apt-get install byacc.

问题:missing: line 46: flex: command not found

解决:apt-get install flex (需要重新运行./configure)

问题:

gcc -DWITH_YACC -DWITH_FLEX -DSOAPCPP_IMPORT_PATH=”\”/usr/local/share/gsoap/import\”" -DLINUX -g -O2 -o soapcpp2 soapcpp2-soapcpp2_yacc.o soapcpp2-soapcpp2_lex.o soapcpp2-symbol2.o soapcpp2-error2.o soapcpp2-init2.o soapcpp2-soapcpp2.o -ly -lfl
/usr/bin/ld: cannot find -ly

解决:apt-get install bison


问题:

/usr/bin/ld: cannot find -lssl

解决:apt-get install libssl-dev

至此,make通过。

(4)make install

结束

你可能感兴趣的:(ONVIF: gsoap安装过程)