jrtplib3.7.1安装错误
2012-05-22 10:43
225 查看
rtperrors.cpp:206: warning: deprecated conversion from stringconstant to 'char*'
rtperrors.cpp:206: warning: deprecated conversion from stringconstant to 'char*'
rtperrors.cpp: In function 'std::stringRTPGetErrorString(int)':
rtperrors.cpp:225: error: 'snprintf' was not declared in thisscope
make[1]: *** [rtperrors.lo] 错误 1
make[1]:正在离开目录 /usr/src/include/jrtplib3/
make: *** [all-recursive] 错误 1
接下来更改文件把,首先是rtpdefines.h
----------------------------------------------------------------------------
#if (defined(WIN32) || defined(_WIN32_WCE))
#if (!defined(_WIN32_WCE)) &&(defined(_MSC_VER) && _MSC_VER>= 1400 )
#define RTP_SNPRINTF printf
#else
#define RTP_SNPRINTF printf
#endif
#else
#define RTP_SNPRINTF printf
#endif // WIN32 || _WIN32_WCE
#endif // RTPDEFINES_H
添加头文件stdio.h string.h到
rtpdefines.h
rtppacket.h
rtcpcompoundpacketbuilder.h
转载自:http://blog.sina.com.cn/s/blog_647fc4c50100k9us.html
--------------------------------------------------------------------------------
rtperrors.cpp:206: warning: deprecated conversion from stringconstant to 'char*'
rtperrors.cpp: In function 'std::stringRTPGetErrorString(int)':
rtperrors.cpp:225: error: 'snprintf' was not declared in thisscope
make[1]: *** [rtperrors.lo] 错误 1
make[1]:正在离开目录 /usr/src/include/jrtplib3/
make: *** [all-recursive] 错误 1
接下来更改文件把,首先是rtpdefines.h
----------------------------------------------------------------------------
#if (defined(WIN32) || defined(_WIN32_WCE))
#if (!defined(_WIN32_WCE)) &&(defined(_MSC_VER) && _MSC_VER>= 1400 )
#define RTP_SNPRINTF printf
#else
#define RTP_SNPRINTF printf
#endif
#else
#define RTP_SNPRINTF printf
#endif // WIN32 || _WIN32_WCE
#endif // RTPDEFINES_H
添加头文件stdio.h string.h到
rtpdefines.h
rtppacket.h
rtcpcompoundpacketbuilder.h
转载自:http://blog.sina.com.cn/s/blog_647fc4c50100k9us.html
--------------------------------------------------------------------------------
相关文章推荐
- 安装好netcdf hdf5 后 在lib中make的错误 怎么办
- 编译安装libfreenect2时错误问题
- CentOS 安装软件出现错误:/lib/ld-linux.so.2: bad ELF interpreter 解决
- ubuntu常见错误--Could not get lock /var/lib/dpkg/lock解决 通过终端安装程序sudo apt-get install xxx时出错: E: Coul
- Jrtplib rtp(3.7.1)开源库和jthread1.2.1安装(非交叉编译版以及交叉编译版)
- 安装libudev-dev,解决依赖错误
- Mac通过brew安装Nodejs错误:Could not symlink lib/dtrace/node.d
- linux编译安装php5.4遇到错误:undefined reference to `libiconv_open'
- 安装JDK出现错误:-bash: /usr/java/jdk1.7.0_71/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such fi
- 安装bochs,make时出现错误libpthread.so.0: error adding symbols: DSO missing from command line
- 安装RHEL5 的ASM Lib 时出现 oracleasm >= 1.0.4 错误的解决办法
- python matplotlib 安装 和错误处理
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- Fedora 安装php出现错误 Cannot find libmysqlclient under /usr
- python3 安装 matplotlib 出现的错误
- redhat安装pure-ftpd+mysql时出现libmysqlclient错误的解决办法
- python 2.7安装某些包出现错误:"libxml/xmlversion.h:没有那个文件或目录"
- ubuntu 16.04安装软件常见错误 Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
- python 安装matplotlib后运行图表时提示错误numpy版本不对的解决方法
- 【CentOS 6.5】解决QtCreator 安装时错误:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory