Compile Live555 using VS2005
来源:互联网 发布:mysql基本语法 编辑:程序博客网 时间:2024/04/29 20:23
Compile Live555 using VS2005
Live555 is a media library to support local and streaming play media files. Its source code is easy to understand and extensible so it's suitable for doing some quick experimentals or demos. It's a cross-platform solution which supports Windows and Linux. But the original source package cannot generate the correct make file for VS2005. We need do some modification listed step by step here.
1. Modify the line "TOOLS32 = ..." in win32config to point to the VS2005 installed directory in your host machine. For example, "TOOLS32 = C:/Program Files/Microsoft Visual Studio 8/VC" is corresponding to my desktop's configuration.
2. Modify the line "LINK_OPTS_0 = $(linkdebug) msvicrt.lib" in win32config to "LINK_OPTS_0 = $(linkdebug) msvcrt.lib", otherwise VS2005 will report msvicrt.lib cannot be found.
3. Run genWindowsMakefiles.cmd to generate *.mak for VS2005.
4. Modify liveMedia/RTSPOverHTTPServer.cpp to add the following code:
#include <string.h>
#if defined(__WIN32__) || defined(_WIN32)
#define snprintf _snprintf
#endif
#if defined(__WIN32__) || defined(_WIN32)
#define snprintf _snprintf
#endif
5. Modify groupsock/Makefile.head. Change from "INCLUDES = -Iinclude -I../UsageEnvironment/include" to "INCLUDES = -Iinclude -I../UsageEnvironment/include -DNO_STRSTREAM".
6. Save the following commands into a bat file in the src directory.
call "C:/Program Files/Microsoft Visual Studio 8/VC/vcvarsall.bat"
cd liveMedia
nmake /B -f liveMedia.mak
cd ../groupsock
nmake /B -f groupsock.mak
cd ../UsageEnvironment
nmake /B -f UsageEnvironment.mak
cd ../BasicUsageEnvironment
nmake /B -f BasicUsageEnvironment.mak
cd ../testProgs
nmake /B -f testProgs.mak
cd ../mediaServer
nmake /B -f mediaServer.mak
nmake /B -f liveMedia.mak
cd ../groupsock
nmake /B -f groupsock.mak
cd ../UsageEnvironment
nmake /B -f UsageEnvironment.mak
cd ../BasicUsageEnvironment
nmake /B -f BasicUsageEnvironment.mak
cd ../testProgs
nmake /B -f testProgs.mak
cd ../mediaServer
nmake /B -f mediaServer.mak
7. run the saved bat file. Done :)
Now it's turn to debug using VS2005, because we don't have a solution file for VS2005, so we need to find another method to debug run.
1. you need to modify win32config to enable debug mode. Just comment the line "NODEBUG=1".
2. File->Open->Project/Solution to load a exe file to be debugged.
3. Debug->Step Over, it will stop at the main function entry point.
- Compile Live555 using VS2005
- Compile Live555 using VS2005
- Compile Live555 using VS2005
- live555 vs2005
- live555 cross compile
- LIVE555 Cross-compile & Usage
- Compile ARPACK x64 dll & lib For VS2005 On Windows 7 by Using MinGW64
- vs2005添加live555工程
- Compile libtorrent for VS2005
- compile emule on vs2005
- VS2005下配置live555工程
- VS2005下配置live555工程
- Live555 compile for iOS build error
- Using TTS in VS2005
- Using CGAL in VS2005
- live555学习笔记1:在vs2005下调试live555,成功!
- 在WindowsXP下用VS2005编译live555
- 在WindowsXP下用VS2005编译live555
- [flex2][组件]canvas相关
- 這段時間看了基本比較有意思的書
- [flex2]动态生成组件
- C#操作xml文件入门
- 发送邮件程序Csharp2005
- Compile Live555 using VS2005
- 如何在三个月掌握三年的经验(转载&&笔记)
- 线程同步的几种方式
- C#实现从Internet上抓取指定URL的源码的方案
- MFC编程之三: 绘图-1(画图)
- CSS SPAN和DIV的区别
- Koomail是什么
- 一个针对IE7的CSS Hack
- 图片防盗链代码