openh264
openh264 copied to clipboard
buid openH264 failed in win10 (make ARCH=x86_64 OS=msvc )
hi, I execute the comand make ARCH=x86_64 OS=msvc to build in win10,but error occurs
rc -fo openh264.res openh264.rc make: rc: No such file or directory make: *** [build/msvc-common.mk:54: openh264.res] Error 127
I already set as following, but error is still there...
export PATH="$PATH:/D/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64" export INCLUDE="D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include;D:\Windows Kits\10\Include\10.0.19041.0\um;D:\Windows Kits\10\Include\10.0.19041.0\shared;D:\Windows Kits\10\Include\10.0.19041.0\ucrt" export LIB="D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\lib\x64;D:\Windows Kits\10\Lib\10.0.19041.0\um\x64;D:\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64"
I guess the problem should be here (msvc-common.mk), but I have no idea how to fix it
STATIC_LDFLAGS= CODEC_UNITTEST_CFLAGS=-D_CRT_SECURE_NO_WARNINGS
%.res: %.rc $(QUIET_RC)rc -fo $@ $<
Works for me. Are you doing that under visual studio command prompt? https://docs.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2019
check environment variables, particularly Windows Kits (rc.exe)
Is this still existing? Most of others do not have problem for Win10.
you should call the corresponding .bat file in VS before make ARCH=x86_64 OS=msvc
it is recommended to use build/AutoBuildForWindows.bat to build library on Windows.
e.g. cd your/openh264/path/build
&& AutoBuildForWindows.bat Win64-Release-ASM
then you will get the windows library