I'm trying to test the live555 libraries (live555.com) on Windows. Here are the instructions: http://www.live555.com/liveMedia/#config-windows
我正在测试Windows上的live555库(live555.com)。下面是说明:http://www.live555.com/liveMedia/#config-windows
I managed to generate the .mak files, but now I do not know how to use them in Visual Studio 2010 to start any of the applications (as openRTSP or playSIP).
我设法生成了.mak文件,但是现在我不知道如何在Visual Studio 2010中使用它们来启动任何应用程序(如openRTSP或playSIP)。
How I can use or open .mak files in Visual Studio 2010?
如何在Visual Studio 2010中使用或打开.mak文件?
Thanks for the help. Greetings!
谢谢你的帮助。问候!
4 个解决方案
#1
7
As far as I know you can't open .maks in recent visual studios - you have to compile them from the command-line instead.
就我所知,您不能在最近的visual studio中打开.maks——您必须从命令行编译它们。
Open a Visual Studio command prompt (or run vsvars32.bat from the VS Common\Tools directory in a regular command prompt) then try
打开Visual Studio命令提示符(或运行vsvars32)。从VS普通\工具目录中的一个常规命令提示)然后尝试
nmake /f abc.mak
I've a feeling you could open makefiles them way back in VS6 but can't remember - it might have been generate them instead.
我有一种感觉,您可以在VS6中打开makefile,但不记得了——它可能已经生成了它们。
#2
13
In trying to compile live555 with Visual Studio 2012 I had similar issues. Here's some stuff I needed to do to make it build. Items 3+ are based on these instructions for compiling live555 with vs2008
在尝试用Visual Studio 2012编译live555时,我遇到了类似的问题。这里有一些东西我需要做,使它建立。项目3+基于vs2008编译live555的说明
1) I had to copy nmake.exe into the VC\bin directory from another location (it was somewhere else). See social MSDN page for more info.
我必须复制nmake。将exe从另一个位置放入VC\bin目录(它位于其他位置)。更多信息请参见社会化MSDN页面。
2) In addition I also had to remove question marks from the .mak files ("prefix? =...", for example) for conditional assignment or it wouldn't build (the error was "too many names to the left of =").
2)此外,我还必须从.mak文件中删除问号(“前缀?”)=……例如)用于条件赋值或它不会构建(错误是“在=的左边有太多的名称”)。
3) Open the ‘win32config’ file and change the TOOLS32=... variable to your VS2008 install directory. For me, it’s TOOLS32=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
3)打开“win32config”文件并更改工具s32 =…变量到您的VS2008安装目录。对我来说,它是TOOLS32=C:\程序文件(x86)\Microsoft Visual Studio 11.0\VC
4) In ‘win32config’, modify the LINK_OPTS_0=
... line from msvcirt.lib to msvcrt.lib. This fixes the link error: LINK : fatal error LNK1181: cannot open input file 'msvcirt.lib'
4)在“win32config”中,修改LINK_OPTS_0=…从msvcirt线。msvcrt.lib*。这修复了链接错误:link:致命错误LNK1181:无法打开输入文件“msvcirt.lib”
5) Open the Visual Studio command prompt. From the ‘live’ source directory, run genWindowsMakefiles
5)打开Visual Studio命令提示符。从“live”源目录运行genwindowsmakefile
6) Now you’re ready to build. Simply run the following commands:
现在你已经准备好建造了。只需运行以下命令:
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
#3
1
Found this link for VS2012 (also works for VS2013): http://blog.mmone.de/2013/06/building-the-live555-streaming-media-framwork-on-windows-with-visual-studio-2012/
找到了VS2012的链接(也适用于VS2013): http://blog.mmone.de3/06/building -the-live555-streaming-media- work- frame -window -with- visualstudio2012 /
#4
1
Download and build script for "Visual Studio 2017 Community", C++ Features required (Setup Dialog of Visual Studio) 7Zip is also required.
下载并构建“Visual Studio 2017 Community”脚本,需要c++特性(Visual Studio设置对话框)7Zip。
install-live555.cmd
install-live555.cmd
PowerShell (New-Object System.Net.WebClient).DownloadFile('http://www.live555.com/liveMedia/public/live555-latest.tar.gz','live555-latest.tar.gz');
"%PROGRAMFILES%\7-Zip\7z.exe" x -aoa live555-latest.tar.gz
"%PROGRAMFILES%\7-Zip\7z.exe" x -aoa live555-latest.tar
powershell -Command "(gc live\win32config) -replace '!include <ntwin32.mak>', '#!include <ntwin32.mak>' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'c:\\Program Files\\DevStudio\\Vc', 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace '\(TOOLS32\)\\bin\\cl', '(TOOLS32)\bin\HostX86\x64\cl' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'LINK = \$\(link\) -out:', 'LINK = link ws2_32.lib /out:' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'LIBRARY_LINK = lib -out:', 'LIBRARY_LINK = lib /out:' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'msvcirt.lib', 'msvcrt.lib' | Out-File live\win32config"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=x64
cd live
call genWindowsMakefiles
cd liveMedia
del *.obj *.lib
nmake /B -f liveMedia.mak
cd ..\groupsock
del *.obj *.lib
nmake /B -f groupsock.mak
cd ..\UsageEnvironment
del *.obj *.lib
nmake /B -f UsageEnvironment.mak
cd ..\BasicUsageEnvironment
del *.obj *.lib
nmake /B -f BasicUsageEnvironment.mak
cd ..\testProgs
del *.obj *.lib
nmake /B -f testProgs.mak
cd ..\mediaServer
del *.obj *.lib
nmake /B -f mediaServer.mak
cd ..
pause
#1
7
As far as I know you can't open .maks in recent visual studios - you have to compile them from the command-line instead.
就我所知,您不能在最近的visual studio中打开.maks——您必须从命令行编译它们。
Open a Visual Studio command prompt (or run vsvars32.bat from the VS Common\Tools directory in a regular command prompt) then try
打开Visual Studio命令提示符(或运行vsvars32)。从VS普通\工具目录中的一个常规命令提示)然后尝试
nmake /f abc.mak
I've a feeling you could open makefiles them way back in VS6 but can't remember - it might have been generate them instead.
我有一种感觉,您可以在VS6中打开makefile,但不记得了——它可能已经生成了它们。
#2
13
In trying to compile live555 with Visual Studio 2012 I had similar issues. Here's some stuff I needed to do to make it build. Items 3+ are based on these instructions for compiling live555 with vs2008
在尝试用Visual Studio 2012编译live555时,我遇到了类似的问题。这里有一些东西我需要做,使它建立。项目3+基于vs2008编译live555的说明
1) I had to copy nmake.exe into the VC\bin directory from another location (it was somewhere else). See social MSDN page for more info.
我必须复制nmake。将exe从另一个位置放入VC\bin目录(它位于其他位置)。更多信息请参见社会化MSDN页面。
2) In addition I also had to remove question marks from the .mak files ("prefix? =...", for example) for conditional assignment or it wouldn't build (the error was "too many names to the left of =").
2)此外,我还必须从.mak文件中删除问号(“前缀?”)=……例如)用于条件赋值或它不会构建(错误是“在=的左边有太多的名称”)。
3) Open the ‘win32config’ file and change the TOOLS32=... variable to your VS2008 install directory. For me, it’s TOOLS32=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
3)打开“win32config”文件并更改工具s32 =…变量到您的VS2008安装目录。对我来说,它是TOOLS32=C:\程序文件(x86)\Microsoft Visual Studio 11.0\VC
4) In ‘win32config’, modify the LINK_OPTS_0=
... line from msvcirt.lib to msvcrt.lib. This fixes the link error: LINK : fatal error LNK1181: cannot open input file 'msvcirt.lib'
4)在“win32config”中,修改LINK_OPTS_0=…从msvcirt线。msvcrt.lib*。这修复了链接错误:link:致命错误LNK1181:无法打开输入文件“msvcirt.lib”
5) Open the Visual Studio command prompt. From the ‘live’ source directory, run genWindowsMakefiles
5)打开Visual Studio命令提示符。从“live”源目录运行genwindowsmakefile
6) Now you’re ready to build. Simply run the following commands:
现在你已经准备好建造了。只需运行以下命令:
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
#3
1
Found this link for VS2012 (also works for VS2013): http://blog.mmone.de/2013/06/building-the-live555-streaming-media-framwork-on-windows-with-visual-studio-2012/
找到了VS2012的链接(也适用于VS2013): http://blog.mmone.de3/06/building -the-live555-streaming-media- work- frame -window -with- visualstudio2012 /
#4
1
Download and build script for "Visual Studio 2017 Community", C++ Features required (Setup Dialog of Visual Studio) 7Zip is also required.
下载并构建“Visual Studio 2017 Community”脚本,需要c++特性(Visual Studio设置对话框)7Zip。
install-live555.cmd
install-live555.cmd
PowerShell (New-Object System.Net.WebClient).DownloadFile('http://www.live555.com/liveMedia/public/live555-latest.tar.gz','live555-latest.tar.gz');
"%PROGRAMFILES%\7-Zip\7z.exe" x -aoa live555-latest.tar.gz
"%PROGRAMFILES%\7-Zip\7z.exe" x -aoa live555-latest.tar
powershell -Command "(gc live\win32config) -replace '!include <ntwin32.mak>', '#!include <ntwin32.mak>' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'c:\\Program Files\\DevStudio\\Vc', 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace '\(TOOLS32\)\\bin\\cl', '(TOOLS32)\bin\HostX86\x64\cl' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'LINK = \$\(link\) -out:', 'LINK = link ws2_32.lib /out:' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'LIBRARY_LINK = lib -out:', 'LIBRARY_LINK = lib /out:' | Out-File live\win32config"
powershell -Command "(gc live\win32config) -replace 'msvcirt.lib', 'msvcrt.lib' | Out-File live\win32config"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=x64
cd live
call genWindowsMakefiles
cd liveMedia
del *.obj *.lib
nmake /B -f liveMedia.mak
cd ..\groupsock
del *.obj *.lib
nmake /B -f groupsock.mak
cd ..\UsageEnvironment
del *.obj *.lib
nmake /B -f UsageEnvironment.mak
cd ..\BasicUsageEnvironment
del *.obj *.lib
nmake /B -f BasicUsageEnvironment.mak
cd ..\testProgs
del *.obj *.lib
nmake /B -f testProgs.mak
cd ..\mediaServer
del *.obj *.lib
nmake /B -f mediaServer.mak
cd ..
pause