博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
crtmpserver 在VS2010下的build
阅读量:6464 次
发布时间:2019-06-23

本文共 2493 字,大约阅读时间需要 8 分钟。

Make sure that you have administrative privileges before doing the following steps.

1. 下载并安装(Microsoft Visual C++ 2008 Redistributable Package)
链接:
http://www.microsoft.com/en-us/download/details.aspx?id=29
下载并安装
Download and install “Visual C++ 2008 Redistributables”
2. 下载并安装OpenSSL
链接:
http://slproweb.com/products/Win32OpenSSL.html
下载并安装:Win32 OpenSSL v1.0.1e 
If you install OpenSSL to another place than “C:\OpenSSL-Win32”, 
change OpenSSL include and lib path (in project's properties)
Compile the solution using Microsoft Visual C++.
3. 下载并编译crtmpserver
可以使用TortoiseSVN下载,配置如下:
URL of repository:  https://svn.rtmpd.com/crtmpserver/branches/1.0
Checkout directory: <Your desired checkout folder>
Checkout Depth: Fully recursive
Revision: Head revision
Username: anonymous
Password: <Leave this blank>
下载完成后build
When source code has been checked out successfully, 
go to <checkout folder>/builders/VS2010 folder. 
Inside that folder, double click the VS2010.sln file.
4. 编译出错的解决:
A.  error C2593: 'operator =' is ambiguous
错误提示
crtmpserver\sources\thelib\src\protocols\liveflv\innetliveflvstream.cpp(111): error C2593: 'operator =' is ambiguous
...
crtmpserver\sources\thelib\src\protocols\liveflv\innetliveflvstream.cpp(114): error C2593: 'operator =' is ambiguous
原因:
VS2010在C++的隐式类型转换方面的bug
解决:
crtmpserver\sources\thelib\src\protocols\liveflv\innetliveflvstream.cpp由
info["audio"]["droppedPacketsCount"] = 0;
info["video"]["bytesCount"] = _videoBytesCount;
info["video"]["packetsCount"] = _videoPacketsCount;
info["video"]["droppedPacketsCount"] = 0;
改成
info["audio"]["droppedPacketsCount"] = (uint64_t)0;
info["video"]["bytesCount"] = _videoBytesCount;
info["video"]["packetsCount"] = _videoPacketsCount;
info["video"]["droppedPacketsCount"] = (uint64_t)0;
B.error LNK2019: unresolved external symbol "public: __thiscall
错误提示:
defaultprotocolfactory.obj : error LNK2019: unresolved external symbol "public: __thiscall NATTraversalProtocol::NATTraversalProtocol(void)"
原因:
thelib工程漏了这个文件:
sources\thelib\src \protocols\rtp\nattraversalprotocol.cpp
解决:
将这个文件添加到工程的
thelib->protocols->Source Files->rtp下;
重新编译工程,链接通过,OK搞定
C. 启动程序时提示
"The procedure entry point WSASendMsg could not be located in the 
dynamic link library WS2_32.dll" 
原因:
是系统的原因
解决:
WSASendMsg requires Vista or Server 2008, assuming Windows 7 is also 
okay since it works on my tests.
具体可看链接:
https://groups.google.com/forum/?fromgroups#!searchin/c-rtmp-server/WSASendMsg|sort:relevance/c-rtmp-server/BeC4zB_wems/m6utIOP6fJAJ

转载地址:http://jzhzo.baihongyu.com/

你可能感兴趣的文章
Servlet 技术全总结 (已完成,不定期增加内容)
查看>>
[JSOI2008]星球大战starwar BZOJ1015
查看>>
centos 7 部署LDAP服务
查看>>
揭秘马云帝国内幕:马云的野心有多大
查看>>
iOS项目分层
查看>>
一个action读取另一个action里的session
查看>>
IntelliJ IDEA 注册码
查看>>
String字符串的截取
查看>>
DynamoDB Local for Desktop Development
查看>>
用javascript验证哥德巴赫猜想
查看>>
Shell编程-环境变量配置文件
查看>>
[Unity3d]DrawCall优化手记
查看>>
Struts2和Spring MVC的区别
查看>>
理解Javascript参数中的arguments对象
查看>>
p2:千行代码入门python
查看>>
bzoj1106[POI2007]立方体大作战tet*
查看>>
spring boot configuration annotation processor not found in classpath问题解决
查看>>
团队项目测试报告与用户反馈
查看>>
对软件工程课程的期望
查看>>
Mysql中文字符串提取datetime
查看>>