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

Cannot install ffmpeg in linux #5101

Closed
LItwOK opened this issue Jan 8, 2019 · 4 comments · Fixed by #5169
Closed

Cannot install ffmpeg in linux #5101

LItwOK opened this issue Jan 8, 2019 · 4 comments · Fixed by #5169
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@LItwOK
Copy link

LItwOK commented Jan 8, 2019

Platform: Linux
Package: ffmpeg:x64-linux
Vcpkg version: 2018.11.23-unknownhash
Description:
I was going to install pangolin, but a error occured and the log was like:

➜  vcpkg git:(master) ./vcpkg install pangolin
The following packages will be built and installed:
  * ffmpeg[core]:x64-linux
  * glew[core]:x64-linux
    pangolin[core]:x64-linux
Additional packages (*) will be modified to complete this operation.
Starting package 1/3: ffmpeg:x64-linux
Building package ffmpeg[core]:x64-linux... 
-- Using cached /home/lenovo/litw/dependencies/vcpkg/downloads/ffmpeg-4.1.tar.bz2
-- Applying patch /home/lenovo/litw/dependencies/vcpkg/ports/ffmpeg/create-lib-libraries.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch /home/lenovo/litw/dependencies/vcpkg/ports/ffmpeg/detect-openssl.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch /home/lenovo/litw/dependencies/vcpkg/ports/ffmpeg/configure_opencv.patch
-- Applying patch failed. This is expected if this patch was previously applied.
CMake Error at scripts/cmake/vcpkg_acquire_msys.cmake:43 (message):
  vcpkg_acquire_msys() can only be used on Windows hosts
Call Stack (most recent call first):
  ports/ffmpeg/portfile.cmake:29 (vcpkg_acquire_msys)
  scripts/ports.cmake:71 (include)

Says I can only use ffmpeg on Windows? And when I tried to install ffmpeg seperately, same problem rose again:

➜  vcpkg git:(master) ./vcpkg install ffmpeg
The following packages will be built and installed:
    ffmpeg[core]:x64-linux
Starting package 1/1: ffmpeg:x64-linux
Building package ffmpeg[core]:x64-linux... 
-- Using cached /home/lenovo/litw/dependencies/vcpkg/downloads/ffmpeg-4.1.tar.bz2
-- Applying patch /home/lenovo/litw/dependencies/vcpkg/ports/ffmpeg/create-lib-libraries.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch /home/lenovo/litw/dependencies/vcpkg/ports/ffmpeg/detect-openssl.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch /home/lenovo/litw/dependencies/vcpkg/ports/ffmpeg/configure_opencv.patch
-- Applying patch failed. This is expected if this patch was previously applied.
CMake Error at scripts/cmake/vcpkg_acquire_msys.cmake:43 (message):
  vcpkg_acquire_msys() can only be used on Windows hosts
Call Stack (most recent call first):
  ports/ffmpeg/portfile.cmake:29 (vcpkg_acquire_msys)
  scripts/ports.cmake:71 (include)

Tried:
I've tried ./vcpkg update and git pull, but this made no difference.
And I installed ffmpeg via apt: sudo apt install ffmpeg. Also didn't work.

Is there any advice? Or do I have to transplant all my codes into Windows if I have to use vcpkg?

@PhoebeHui PhoebeHui added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Jan 16, 2019
@rayworks
Copy link

Same issue on Mac (OS 10.14.3):

Package: ffmpeg:x64-osx
Vcpkg version: 2018.11.23-unknownhash

@nussetorten
Copy link

👍

@Trapov
Copy link

Trapov commented Mar 15, 2019

Same problem.

The following packages will be built and installed:
    ffmpeg[core]:x64-linux
Starting package 1/1: ffmpeg:x64-linux
Building package ffmpeg[core]:x64-linux... 
-- Using cached /home/dmitriy/projects/common/vcpkg/downloads/ffmpeg-4.1.tar.bz2
-- Applying patch /home/dmitriy/projects/common/vcpkg/ports/ffmpeg/create-lib-libraries.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch /home/dmitriy/projects/common/vcpkg/ports/ffmpeg/detect-openssl.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch /home/dmitriy/projects/common/vcpkg/ports/ffmpeg/configure_opencv.patch
-- Applying patch failed. This is expected if this patch was previously applied.
CMake Error at scripts/cmake/vcpkg_acquire_msys.cmake:43 (message):
  vcpkg_acquire_msys() can only be used on Windows hosts
Call Stack (most recent call first):
  ports/ffmpeg/portfile.cmake:29 (vcpkg_acquire_msys)
  scripts/ports.cmake:71 (include)


Error: Building package ffmpeg:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https:/Microsoft/vcpkg/issues including:
  Package: ffmpeg:x64-linux
  Vcpkg version: 2018.11.23-unknownhash

Additionally, attach any relevant sections from the log files above.

@sbr-dev
Copy link
Contributor

sbr-dev commented Jun 16, 2019

Hi all,
Sill having this problem. Has anyone found a fix or still waiting for a PR to Vcpkg repos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants