Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install libvpx
Failure logs
Starting package 2/4: libvpx:x64-windows
Building package libvpx[core]:x64-windows...
-- Note: libvpx only supports static library linkage. Building static library.
-- Using cached C:/vcpkg/downloads/libvpx-1.8.1.tar.gz
-- Using source at C:/vcpkg/buildtrees/libvpx/src/libvpx-1-87e9c0e1cf
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- PERL_EXE_PATH ; C:/vcpkg/downloads/tools/perl/perl/bin
-- Generating makefile
-- Generating MSBuild projects
-- Building C:/vcpkg/buildtrees/libvpx/x64-windows/vpx.vcxproj for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: msbuild C:/vcpkg/buildtrees/libvpx/x64-windows/vpx.vcxproj /p:Configuration=Release /t:Rebuild /p:Platform=x64 /p:PlatformToolset=v142 /p:VCPkgLocalAppDataDisabled=true /p:UseIntelMKL=No /p:WindowsTargetPlatformVersion=10.0.19025.0 /m /p:WholeProgramOptimization=false
Working Directory: C:/vcpkg/buildtrees/libvpx/x64-windows-rel
Error code: 1
See logs for more information:
C:\vcpkg\buildtrees\libvpx\build-x64-windows-rel-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_msbuild.cmake:119 (vcpkg_execute_required_process)
ports/libvpx/portfile.cmake:73 (vcpkg_build_msbuild)
scripts/ports.cmake:94 (include)
Additional context
Seems like the build process can't find yasm, even though I've added it to PATH
@longnguyen2004 Thanks for reporting this issue.
Could you provide the configure log _C:\vcpkg\buildtrees\libvpx\configure-x64-windows-out.log_ ?
Thanks.
Current workaround: patch the generator script to include the full path to the yasm binary
I'll checkout master again to get the error
yasm should be installed first in _VCPKG_PATH/downloads/tools/yasm_ before libvpx build process, so I think you may installed yasm manually.
Nope I didn't, I let vcpkg download it. But I noticed that yasm is contained inside a versioned subfolder (VCPKG_PATH\downloads\toolsyasm\1.3.0.6). Don't know if that affects the configure process or not
Here's the configure log, looks alright I think. I've tried adding the yasm dir to PATH but that doesn't seem to change anything. I even tried manually building the generated project in VS but no luck
@dan-shaw Could you have a look?
Thanks.
Probably just a problem with my previous Windows installation, upgraded to Windows 10 and everything seems good
@JackBoosY
MSBuild not find yasm in folder VCPKG_PATH\downloads\toolsyasm\1.3.0.6
readme file
[1]: http://www.tortall.net/projects/yasm [2]: For Visual Studio the base yasm binary (not vsyasm) should be in the PATH for Visual Studio. For VS2017 it is sufficient to rename yasm-<version>-<arch>.exe to yasm.exe and place it in: Program Files (x86)/Microsoft Visual Studio/2017/<level>/Common7/Tools/
copy msvc2019 yasm binary, build ok
Microsoft Visual Studio\2019\Enterprise\Common7\Tools
On VS2019 and up look into "Current" folder like:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
Place yasm.exe there as a temporary solution. It then worked for me. :-)
Regards
@Voskrese: have to use msbuild in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin" explicitly.
Regards