Closed fawdlstty closed 4 years ago
vcpkg install ffmpeg[ffmpeg,ffplay,nonfree,avresample]:x86-windows-static
failed、
vcpkg install x264:x86-windows-static
failed、
……
What's happening?
run vcpkg install x264:x86-windows-static
log:
Computing installation plan...
The following packages will be built and installed:
x264[core]:x86-windows-static
Starting package 1/1: x264:x86-windows-static
Building package x264[core]:x86-windows-static...
-- Using community triplet x86-windows-static. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: D:\GitHub\vcpkg\triplets\community\x86-windows-static.cmake
-- Using cached D:/GitHub/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at D:/GitHub/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Using generator make
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x86-windows-static-dbg
-- Configuring x86-windows-static-rel
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Building x86-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: D:/GitHub/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c "make -j" 9
Working Directory: D:/GitHub/vcpkg/buildtrees/x264/x86-windows-static-dbg
See logs for more information:
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_make.cmake:124 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_make.cmake:24 (vcpkg_build_make)
ports/x264/portfile.cmake:29 (vcpkg_install_make)
scripts/ports.cmake:90 (include)
Error: Building package x264:x86-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: x264:x86-windows-static
Vcpkg version: 2020.02.04-nohash
Additionally, attach any relevant sections from the log files above.
run failed command:
D:\GitHub\vcpkg\buildtrees\x264\x86-windows-static-dbg>D:/GitHub/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c "make -j" 9
cat ../src/14d026c3bd-bca2ebf740/common/opencl/x264-cl.h ../src/14d026c3bd-bca2ebf740/common/opencl/bidir.cl ../src/14d026c3bd-bca2ebf740/common/opencl/downscale.cl ../src/14d026c3bd-bca2ebf740/common/opencl/intra.cl ../src/14d026c3bd-bca2ebf740/common/opencl/motionsearch.cl ../src/14d026c3bd-bca2ebf740/common/opencl/subpel.cl ../src/14d026c3bd-bca2ebf740/common/opencl/weightp.cl | ../src/14d026c3bd-bca2ebf740/tools/cltostr.sh common/oclobj.h
dependency file generation...
rc.exe -DDEBUG -nologo -I. -I../src/14d026c3bd-bca2ebf740/extras -fox264res.o ../src/14d026c3bd-bca2ebf740/x264res.rc
make: rc.exe: Command not found
cl -D_DEBUG -O1 -Z7 -DWIN32 -D_WINDOWS -W3 -MP -D_DEBUG -MTd -Z7 -Ob0 -Od -RTC1 -I. -I../src/14d026c3bd-bca2ebf740 -nologo -GS- -DHAVE_STRING_H -I../src/14d026c3bd-bca2ebf740/extras -c ../src/14d026c3bd-bca2ebf740/x264.c -Fox264.o
make: *** [x264res.o] Error 127
make: *** Waiting for unfinished jobs....
cl: 命令行 warning D9025 :正在重写“/O1”(用“/Od”)
x264.c
../src/14d026c3bd-bca2ebf740/x264.c(35): fatal error C1083: 无法打开包括文件: “windows.h”: No such file or directory
make: *** [x264.o] Error 2
D:\GitHub\vcpkg\buildtrees\x264\x86-windows-static-dbg>
It looks like my environment configuration problem, but I'm not sure exactly where it is. Do I have the latest version of vs2017community and vs2019community installed
Hi @fawdlstty thanks for posting this issue.
Could you please try to remove msys2
from D:/GitHub/vcpkg/downloads/tools/msys2
and try to build it again?
Also we suggest use English package in Visual Studio.
Let me describe the situation: both of my visual studio versions contain English language packages, and I also installed ffmpeg with VCPKG a few months ago.I updated VCPKG and recompiled it these days, both of these projects failed.Recent changes to the computer include: updating visual studio, updating VCPKG
Could you please try to remove msys2 from D:/GitHub/vcpkg/downloads/tools/msys2 and try to build it again?
D:\GitHub\vcpkg\buildtrees\x264\x86-windows-static-dbg>vcpkg install ffmpeg[ffmpeg,ffserver,ffplay,ffprobe,bzip2,x264,nonfree,avresample]:x86-windows-static Your feedback is important to improve Vcpkg! Please take 3 minutes to complete our survey by running: vcpkg contact --survey Computing installation plan... The following packages will be built and installed: ffmpeg[avresample,bzip2,core,ffmpeg,ffplay,ffprobe,ffserver,gpl,nonfree,x264]:x86-windows-static Starting package 1/1: ffmpeg:x86-windows-static Building package ffmpeg[avresample,bzip2,core,ffmpeg,ffplay,ffprobe,ffserver,gpl,nonfree,x264]:x86-windows-static... Warning: abi keys are missing values: bzip2 zlib
-- Using community triplet x86-windows-static. This triplet configuration is not guaranteed to succeed. -- [COMMUNITY] Loading triplet configuration from: D:\GitHub\vcpkg\triplets\community\x86-windows-static.cmake -- Using cached D:/GitHub/vcpkg/downloads/ffmpeg-ffmpeg-n4.2.tar.gz -- Extracting source D:/GitHub/vcpkg/downloads/ffmpeg-ffmpeg-n4.2.tar.gz -- Applying patch 0001-create-lib-libraries.patch -- Applying patch 0002-detect-openssl.patch -- Applying patch 0003-fix-windowsinclude.patch -- Applying patch 0004-fix-debug-build.patch -- Applying patch 0005-fix-libvpx-linking.patch -- Using source at D:/GitHub/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc -- Acquiring MSYS Packages... -- Acquiring MSYS Packages... OK -- Building Options: --enable-asm --enable-yasm --disable-doc --enable-debug --enable-runtime-cpudetect --enable-nonfree --enable-gpl --disable-openssl --enable-ffmpeg --enable-ffplay --enable-ffprobe --disable-libvpx --enable-libx264 --disable-opencl --disable-lzma --enable-bzlib --enable-avresample --extra-cflags=-DHAVE_UNISTD_H=0 -- Building Release Options: --extra-cflags=-MT --extra-cxxflags=-MT -- Building ffmpeg for Release -- Building Debug Options: --debug --extra-cflags=-MTd --extra-cxxflags=-MTd -- Building ffmpeg for Debug -- Installing: D:/GitHub/vcpkg/packages/ffmpeg_x86-windows-static/share/ffmpeg/copyright -- Performing post-build validation There should be no bin\ directory in a static build, but D:\GitHub\vcpkg\packages\ffmpeg_x86-windows-static\bin is present. There should be no debug\bin\ directory in a static build, but D:\GitHub\vcpkg\packages\ffmpeg_x86-windows-static\debug\bin is present. If the creation of bin\ and/or debug\bin\ cannot be disabled, use this in the portfile to remove them
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
There should be no empty directories in D:\GitHub\vcpkg\packages\ffmpeg_x86-windows-static The following empty directories were found:
D:/GitHub/vcpkg/packages/ffmpeg_x86-windows-static/bin
D:/GitHub/vcpkg/packages/ffmpeg_x86-windows-static/debug/bin
If a directory should be populated but is not, this might indicate an error in the portfile. If the directories are not needed and their creation cannot be disabled, use something like this in the portfile to remove them:
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/a/dir ${CURRENT_PACKAGES_DIR}/some/other/dir)
Found 2 error(s). Please correct the portfile:
D:\GitHub\vcpkg\ports\ffmpeg\portfile.cmake
-- Performing post-build validation done
Error: Building package ffmpeg:x86-windows-static failed with: POST_BUILD_CHECKS_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update
, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: ffmpeg:x86-windows-static
Vcpkg version: 2020.02.04-nohash
Additionally, attach any relevant sections from the log files above.
x264:x86-windows-static has install success
Thanks for your update.
As for the issue on ffmpeg
, I will fix it later.
If you need to use it now, please add this code toportfile.cmake
and build it agiain.
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
Thanks for your update. As for the issue on
ffmpeg
, I will fix it later. If you need to use it now, please add this code toportfile.cmake
and build it agiain.if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) endif()
I have added those lines inside the file following file "vcpkg\ports\ffmpeg\portfile.cmake" at end of the file as shown in the above screenshot, still, that problem exists, may I know have I done it correctly or something wrong in the approach?
Hi @nirzaf
Since the path you build contains spaces. Please try to clone vcpkg to a directory without spaces and build it again.
Thanks for your response @NancyLi1013 but still I got the same output
Please check if you have access to this URL first.
https://www.tortall.net/projects/yasm/snapshots/v1.3.0.6.g1962/yasm-1.3.0.6.g1962.exe
@NancyLi1013 I download it separately, when I click it, it was popping a window & disappeared within a fraction of second, moreover that link doesn't work always in this link, you are able to download that file
It might be something wrong with your network. Please put the attachment (yasm-1.3.0.6.g1962.exe) to c:/vcpkg/vcpkg/downloads/ folder and try to build it again.
This issue has been fixed. Please try to update vcpkg and build it again.
Host Environment
To Reproduce Steps to reproduce the behavior:
vcpkg install ffmpeg[ffmpeg,ffplay,nonfree,avresample]:x86-windows-static
Failure logs
Additional context build-x86-windows-static-rel-out.log: