crtmpserver 在VS2010下的build
来源:互联网 发布:东方财富通 mac 编辑:程序博客网 时间:2024/05/24 01:16
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
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
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- wertc在vs2010下build出错
- CRTMPServer 在CentOS 64-bit下的编译
- OpenCV-2.2.0-win32-vs2010在VS2010下的安装
- OpenCV-2.2.0-win32-vs2010在VS2010下的安装
- opengl在vs2010下的配置问题
- opengl在vs2010下的配置问题
- opencv在vs2010下的配置
- opencv2.3在VS2010下的配置
- boost_1.47在VS2010下的安装
- log4net 在VS2010 NET4下的使用
- Qt在vs2010下的配置
- winpcap在vs2010下的环境配置
- CodeBlocks在win7+VS2010下的配置
- android之Fragment(官网资料翻译)
- 【xitongshoucang.com】全方位对Shift键大揭秘
- English is important
- adb命令
- 竖式菜单---纯CSS京东商城分类导航菜单代码
- crtmpserver 在VS2010下的build
- 8051单片机的指令系统有什么特点?
- 加载驱动过程
- Android开发系列链接
- Python 的神奇方法指南
- 【绿色软件下么】不为人知的Word缩进设置
- Running Apache Tika in Server Mode
- 关于DLL搜索路径的顺序问题
- android 根据IP获取天气情况 详细讲解