Windows平台VS2010编译live555

准备

下载地址:http://www.live555.com/liveMedia/public/

编译

打开win32config修改以下几行:

1.TOOLS32 = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC

2.LINK_OPTS_0 = $(linkdebug) msvcirt.lib改为:msvcrt.lib,由于编译器所要LINK的运行库不一样了

3.groupsock/makefile.head文件中,INCLUDES = -Iinclude -I../UsageEnvironment/include"一行的末尾加上-DNO_STRSTREAM".

4.运行genWindowsMakefiles.cmd 生成VS能够编译的*.mak文件

5.在根目录下增加compile.bat文件,用来编译程序,内容如下:

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\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

问题

你可能感兴趣的:(Windows平台VS2010编译live555)