Skip to content

Compiling OpenRtsp with VS 2012

mlynch-isec edited this page Nov 7, 2013 · 2 revisions

The following allow you to compile the Live555 (OpenRtsp) library for Visual Studio 2012 (VS 2012).

  1. Open win32config Change the TOOLS32 variable to the following: TOOLS32 = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
    And change the LINK_OPTS0 variable to the following:
    LINK_OPTS_0 = $(linkdebug) msvcrt.lib
  2. Launch Command Prompt for Visual Studio 2012
  3. Copy ntwin32.mak / win32.mak into each folder. These files are available from the "include" folder of the Windows SDK or Visual Studio.
	copy /y Win32.Mak liveMedia\Win32.Mak
	copy /y NtWin32.Mak liveMedia\NtWin32.Mak
	copy /y Win32.Mak groupsock\Win32.Mak
	copy /y NtWin32.Mak groupsock\NtWin32.Mak
	copy /y Win32.Mak UsageEnvironment\Win32.Mak
	copy /y NtWin32.Mak UsageEnvironment\NtWin32.Mak
	copy /y Win32.Mak BasicUsageEnvironment\Win32.Mak
	copy /y NtWin32.Mak BasicUsageEnvironment\NtWin32.Mak
	copy /y Win32.Mak testProgs\Win32.Mak
	copy /y NtWin32.Mak testProgs\NtWin32.Mak
	copy /y Win32.Mak mediaServer\Win32.Mak
	copy /y NtWin32.Mak mediaServer\NtWin32.Mak
  1. Run genWindowsMakefiles
  2. Build with nmake
	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
	cd ..

(Instructions adapted from blog post here here)

Clone this wiki locally