尝试为windows构建live555。我已按照说明(http://tujv.bitbucket.org/2016/02/building-live555/)并生成了make文件。
运行此命令时:
nmake /B -f liveMedia.mak
输出:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl" -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include" Media.cpp
"C:\Program" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl' : return code '0x1'
Stop.
它说“C:\ Program”不被识别为命令。
通常它会说当带空格的路径没有引号,但路径末尾有引号时,我不明白为什么它不能识别它。
以下是liveMedia.mak的开头,其中设置了路径变量:
INCLUDES = -Iinclude -I../UsageEnvironment/include -I../groupsock/include
PREFIX = /usr/local
LIBDIR = $(PREFIX)/lib
##### Change the following for your environment:
# Comment out the following line to produce Makefiles that generate debuggable code:
NODEBUG=1
# The following definition ensures that we are properly matching
# the WinSock2 library file with the correct header files.
# (will link with "ws2_32.lib" and include "winsock2.h" & "Ws2tcpip.h")
TARGETOS = WINNT
# If for some reason you wish to use WinSock1 instead, uncomment the
# following two definitions.
# (will link with "wsock32.lib" and include "winsock.h")
#TARGETOS = WIN95
#APPVER = 4.0
#!include <ntwin32.mak>
UI_OPTS = $(guilflags) $(guilibsdll)
# Use the following to get a console (e.g., for debugging):
CONSOLE_UI_OPTS = $(conlflags) $(conlibsdll)
CPU=i386
TOOLS32 = C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
COMPILE_OPTS = $(INCLUDES) $(cdebug) $(cflags) $(cvarsdll) -I. -I"$(TOOLS32)\include"
C = c
C_COMPILER = "$(TOOLS32)\bin\cl"
C_FLAGS = $(COMPILE_OPTS)
CPP = cpp
CPLUSPLUS_COMPILER = $(C_COMPILER)
CPLUSPLUS_FLAGS = $(COMPILE_OPTS)
如果有人看到错误或解决问题,我会非常感激
提前致谢