Building The live555 Streaming Media Framework on Windows with Visual Studio 2012/13

The live555 Streaming Media framework allows to stream content over RTP, and comes with a RTSP server. Below some hints how to build on Windows 7 64Bit with Visual Studio Express 2012 though these should also work with VS 2013.

On the command line

More current versions of Visual Studio IDE do not support building makefile based projects, so you need to build from the command line. Instructions on generating makefiles for the windows command-line can be found in the official documentation.

You can still build the project in the IDE. Check the second part of the post for instructions on how to modify the project for that.

From the Windows SDKs include directory copy “NtWin32.Mak” and “Win32.Mak” to the VS include directory eg. “C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include”.

Edit win32config and make “TOOLS32” point to the location of your build tools for me that was “C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC”. Change “msvcirt.lib” to “msvcrt.lib” in the “LINK_OPTS_0” param and the “LINKS” param to ‘ “$(TOOLS32)\bin\$(link)” -out:’ (without the ticks).

From the start menu launch “Developer Command Prompt for VS2012” this will give you a console that is configured for building with VS. Go to the directory where you unpacked the sources and execute “genWindowsMakefiles”.

Now run “nmake -f file.mak” in all subdirs. Eg. “nmake -f groupsock.mak” in the groupsock dir. You should proceed in the following order:

liveMedia

groupsock

UsageEnvironment

BasicUsageEnvironment

testProgs

mediaServer

In the IDE

To get the project to build in the VS IDE you need to patch two files:
In “DelayQueue.cpp” after "const DelayInterval ETERNITY(INT_MAX, MILLION-1);" add

Oh, and something I encountered additionally:
when compiling testProgs.mak in windows; if you encounter ‘file not found / wrong syntax’ problems, open testProgs.mak and look for bad quote marks (“) and replace them correctly (“)