Skip to content

Cannot install ffmpeg in linux #5101

@LItwOK

Description

@LItwOK

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions