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

crtmpserver 在VS2010下的build的更多相关文章

  1. 在VS2010下编译和使用tesseract_ocr识别验证码

    对于自动识别验证码,使用trsseract是个不错的选择,有兴趣的的朋友可以试试. 编译tesseract 官网提供了vs2008的编译说明和工程,但在vs2010下的编译时基本相同的,因此我使用的方 ...

  2. VS2010下配置Opencv2.4.3 .

    VS2008下OpenCV的配置过程在OpenCV论坛上写的很详细,具体过程可以见如下链接http://www.opencv.org.cn/index.php/VC_2008_Express%E4%B ...

  3. 在vs2010下编译boost

    1. 解压缩后,运行bootstrap.bat批处理文件,得到bjam.exe; 2. 在vs2010下编译boost boost最新版本已经支持vs2010,然而直接下载编译会发现一堆bug: 首先 ...

  4. CxImage在VS2010下的配置

    http://blog.csdn.net/youzhuo/article/details/24601621 一.编译Cximage 1.在SourceForge上下载cximage702_full.7 ...

  5. .NET Core竟然无法在Mac下进行build

    KRuntime 改为 XRE 之后(详见从 KRE 到 XRE :ASP.NET 5 中正在消失的那些K),昨天在 mac 用 git 签出 XRE 的代码库,直接执行其中的 build 命令 sh ...

  6. ActiveX控件的基本操作方法以及如何在VS2010下使用控件

    在此,小编就介绍下ActiveX控件的基本操作方法以及如何在VS2010下使用控件,我们以一个程序为例, (1)      打开VS2010编译器(右键以管理员身份运行,因为ActiveX需要注册), ...

  7. VS2010 下编译 cocos2d-x-2.1.4

    在VS2010 下编译 cocos2d-x-2.1.4   首先感谢 cocos2d-x 团队为我们做出这么好的跨平台框架,让我们这些码农省了很多时间,事半功倍. 里沃特最近在编译 win32 版本的 ...

  8. VS2010下创建的VB.NET项目打包发布安装包的流程

    VS2010下创建的VB.NET项目打包发布安装包的流程 参考:http://blog.csdn.net/liuyanlinglanq/article/details/8609675  关于relea ...

  9. 关于vs2010下水晶报表的使用入门

    关于vs2010下使用水晶报表了解情况记录如下: 1.首先vs2010不再自带水晶报表控件了,需要下载安装vs2010配套的水晶报表控件:CRforVS_13_0.这个控件安装很简单,基本上都选择默认 ...

随机推荐

  1. Python抓取微博评论(二)

    对于新浪微博评论的抓取,首篇做的时候有些考虑不周,然后现在改正了一些地方,因为有人问,抓取评论的时候“爬前50页的热评,或者最新评论里的前100页“,这样的数据看了看,好像每条微博的评论都只能抓取到前 ...

  2. Nginx 502错误:upstream sent too big header while reading response header from upstream

    原因: 在使用Shiro的rememberMe功能时,服务器返回response的header部分过大导致. 解决方法: https://stackoverflow.com/questions/238 ...

  3. 冒泡法的算法最佳情况下的时间复杂度为什么是O(n)

    我在许多书本上看到冒泡排序的最佳时间复杂度是O(n),即是在序列本来就是正序的情况下. 但我一直不明白这是怎么算出来的,因此通过阅读<算法导论-第2版>的2.2节,使用对插入排序最佳时间复 ...

  4. Hadoop HDFS 单节点部署方案

    初学者,再次记录一下. 确保Java 和 Hadoop已安装完毕(每个人的不一定一样,但肯定都有数据,仅供参考) [root@jans hadoop-2.9.0]# pwd /usr/local/ha ...

  5. JS~jwPlayer为js预留的回调方法大总结

    对于一个成功的产品,它是对外封闭的,但又是对外开放的,这句话并不矛盾,让我来说一下,说它对外封闭是因为它本身的代码不允许你去修改,而说它开放,是因为它为我们定义了很多API,或者叫回调方法,对于jwp ...

  6. axios请求数据

    1.安装axios模块 import axios from 'axios'; //安装方法 npm install axios //或 bower install axios 2.引入模块 直接引用: ...

  7. 转:xxe attack学习

    小结 1.http包发送类型:content-type:text/xml2.xxe漏洞非常危险, 因为此漏洞会造成服务器上敏感数据的泄露,和潜在的服务器拒绝服务攻击.要去校验DTD(document ...

  8. json调试

    private static void mockapi(OkHttpClient.Builder httpClientBuilder) { if (Config.isMockApi) { MockAp ...

  9. Wannafly挑战赛7 D - codeJan与青蛙

    codeJan喜欢观察世界.有一天,codeJan发现一个非常奇怪的现象.有一些年轻的青蛙聚集在一条直线上的某些位置上,同一个位置可能有多个青蛙.这些青蛙每次只会向前跳一米,并且每只青蛙每跳一次都会发 ...

  10. linux常用解压命令总结

    .xz 解压: tar xvf FileName.tar.xz 打包: tar cvf FileName.tar DirName .tar 解包:tar xvf FileName.tar 打包:tar ...