Libvpx/compile fails on Win x64 -v visualstudio build
As I mentioned in issue #260 (closed), lipvpx compile step is giving me some trouble. Full log attached.
Build process on Windows 10 x64
; visualstudio
, nvcodec and intelmsdk variants enabled.
Error output:
[(59/73) gst-plugins-bad-1.0 -> install]
[(59/73) gst-plugins-bad-1.0 -> post_install]
WARNING: x86_64 pkg-config file 'c:/GStreamer_Cerbero/cerbero/build/dist/msvc_x86_64/lib/pkgconfig/gstreamer-codecs-1.0.pc' not found
[(59/73) gst-plugins-bad-1.0 -> gen_library_file]
[(60/73) libvpx -> fetch]
[(60/73) libvpx -> extract]
[(60/73) libvpx -> configure]
[(60/73) libvpx -> compile]
Running command 'C:/MinGW/msys/1.0/bin/make.EXE HAVE_GNU_STRIP=no'
[CREATE] vpx.def
[CREATE] vpx_config.asm
[CREATE] vpx_scale_rtcd.h
[CREATE] vpx_dsp_rtcd.h
[CREATE] vp8_rtcd.h
[CREATE] vp9_rtcd.h
[CREATE] vpx.vcxproj
generating filter 'Source Files' from 475 files
generating filter 'Header Files' from 227 files
generating filter 'Build Files' from 21 files
generating filter 'References' from 8 files
Ignored files list (8 items) is:
/utf-8
CHANGELOG
vpx_scale/vpx_scale_rtcd.pl
vpx_dsp/vpx_dsp_rtcd_defs.pl
vp8/common/rtcd_defs.pl
vp9/common/vp9_rtcd_defs.pl
build/make/version.sh
build/make/rtcd.pl
[CREATE] vpx.pc
[CREATE] vpx.sln
/c/GStreamer_Cerbero/cerbero/build/sources/msvc_x86_64/libvpx-v1.8.1/build/make/gen_msvs_sln.sh \
\
--dep=test_libvpx:gtest \
--ver=16\
--out=vpx.sln vpx.vcxproj
msbuild.exe vpx.sln -m -t:Build \
-p:Configuration="Debug" -p:Platform="x64"
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2020.04.04 23:33:07.
1>Project "c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.sln" on node 1 (Build target(s)).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|x64".
1>Project "c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.sln" (1) is building "c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.vcxproj" (2) on node 1 (default targets).
2>PrepareForBuild:
Creating directory "x64\Debug\vpx\".
Creating directory "x64\Debug\vpx\vpx.tlog\".
InitializeBuildStatus:
Creating "x64\Debug\vpx\vpx.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Assembling emms_mmx.asm
'nasm' is not recognized as an internal or external command,
operable program or batch file.
Assembling float_control_word.asm
'nasm' is not recognized as an internal or external command,
operable program or batch file.
Assembling intrapred_sse2.asm
'nasm' is not recognized as an internal or external command,
operable program or batch file.
[...] (Many similar error messages cut)
Assembling vp9_error_sse2.asm
'nasm' is not recognized as an internal or external command,
operable program or batch file.
Assembling vp9_quantize_ssse3_x86_64.asm
'nasm' is not recognized as an internal or external command,
operable program or batch file.
2>c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 9009. [c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.vcxproj]
2>Done Building Project "c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.vcxproj" (default targets) -- FAILED.
1>Done Building Project "c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.sln" (Build target(s)) -- FAILED.
Build FAILED.
"c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.sln" (Build target) (1) ->
"c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.vcxproj" (default target) (2) ->
(CustomBuild target) ->
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 9009. [c:\GStreamer_Cerbero\cerbero\build\sources\msvc_x86_64\libvpx-v1.8.1\vpx.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.76
make[1]: *** [Debug_x64] Error 1
make: *** [.DEFAULT] Error 2
Recipe 'libvpx' failed at the build step 'compile'
Command Error: Running ['C:/MinGW/msys/1.0/bin/make.EXE', 'HAVE_GNU_STRIP=no'] returned 2
Adding nasm.exe's folder (cerbero\build\build-tools\bin) to the Path solves this error.
This might not be a Cerbero issue, because I'm getting it with an older commit as well that worked before. It might've been caused by an upgraded python module, for example.