Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ffmpeg] build failure #19260

Closed
Hoikas opened this issue Jul 30, 2021 · 10 comments
Closed

[ffmpeg] build failure #19260

Hoikas opened this issue Jul 30, 2021 · 10 comments
Assignees
Labels
category:question This issue is a question

Comments

@Hoikas
Copy link
Contributor

Hoikas commented Jul 30, 2021

Host Environment

  • OS: Windows 10
  • Compiler: Visual Studio 16 2019 16.10

To Reproduce
Steps to reproduce the behavior:
./vcpkg install ffmpeg:x64-windows

Only classic mode appears to be affected.

Failure logs

PS D:\vcpkg> ./vcpkg install ffmpeg:x64-windows
Computing installation plan...
The following packages will be built and installed:
    ffmpeg[avcodec,avdevice,avfilter,avformat,core,gpl,postproc,swresample,swscale]:x64-windows -> 4.4#12
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\Adam\AppData\Local\vcpkg\archives\51\51d411a1cc4023568f5e1f3fd595652f3470dc001c149d30c14f8cb0d376e0ec.zip
Starting package 1/1: ffmpeg:x64-windows
Building package ffmpeg[avcodec,avdevice,avfilter,avformat,core,gpl,postproc,swresample,swscale]:x64-windows...
-- Using D:/vcpkg/downloads/ffmpeg-ffmpeg-n4.4.tar.gz
-- Cleaning sources at D:/vcpkg/buildtrees/ffmpeg/src/n4.4-5002d86a54.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/ffmpeg-ffmpeg-n4.4.tar.gz
-- Applying patch 0001-create-lib-libraries.patch
-- Applying patch 0003-fix-windowsinclude.patch
-- Applying patch 0004-fix-debug-build.patch
-- Applying patch 0006-fix-StaticFeatures.patch
-- Applying patch 0007-fix-lib-naming.patch
-- Applying patch 0009-Fix-fdk-detection.patch
-- Applying patch 0010-Fix-x264-detection.patch
-- Applying patch 0011-Fix-x265-detection.patch
-- Applying patch 0012-Fix-ssl-110-detection.patch
-- Applying patch 0013-define-WINVER.patch
-- Applying patch 0014-avfilter-dependency-fix.patch
-- Applying patch 0015-Fix-xml2-detection.patch
-- Applying patch 0016-configure-dnn-needs-avformat.patch
-- Applying patch 0017-Patch-for-ticket-9019-CUDA-Compile-Broken-Using-MSVC.patch
-- Using source at D:/vcpkg/buildtrees/ffmpeg/src/n4.4-5002d86a54.clean
-- Using msys root at D:/vcpkg/downloads/tools/msys2/aaafe87dcead272e
CMake Error at ports/ffmpeg/portfile.cmake:547 (vcpkg_cmake_get_vars):
  Unknown CMake command "vcpkg_cmake_get_vars".
Call Stack (most recent call first):
  scripts/ports.cmake:141 (include)


Error: Building package ffmpeg:x64-windows 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: ffmpeg:x64-windows
  Vcpkg version: 2021-07-26-9425cf5f512f242c0bcbabac31f08832825aee81
@Be-ing
Copy link
Contributor

Be-ing commented Jul 31, 2021

I encountered this on x64-linux.

@autoantwort
Copy link
Contributor

Was changed in #18839, but should work. Has the port the dependency to vcpkg-cmake?

@autoantwort
Copy link
Contributor

I don't know classic mode that much, but maybe an old version of vcpkg-cmake was already installed, but ffmpeg needs the updated version of vcpkg-cmake. So maybe do a vcpkg upgrade

@Be-ing
Copy link
Contributor

Be-ing commented Jul 31, 2021

vcpkg upgrade fixed it, thanks.

@Be-ing
Copy link
Contributor

Be-ing commented Jul 31, 2021

I think the ffmpeg port should specify a minimum version for vcpkg-cmake?

@autoantwort
Copy link
Contributor

I think the ffmpeg port should specify a minimum version for vcpkg-cmake?

Seems that this is not possible

@JackBoosY
Copy link
Contributor

JackBoosY commented Aug 2, 2021

Unknown CMake command "vcpkg_cmake_get_vars".

Please pull the latest code and bootstrap again.

@JackBoosY JackBoosY added the category:question This issue is a question label Aug 2, 2021
@JackBoosY
Copy link
Contributor

Solved.

@Hoikas
Copy link
Contributor Author

Hoikas commented Sep 30, 2021

Solved in which commit?

@JackBoosY
Copy link
Contributor

@Hoikas This: #19260 (comment)

The reason why vcpkg_cmake_get_vars wasn't find is because vcpkg-cmake has been upgraded.
So please remove vcpkg_cmake and install it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

4 participants