Skip to content
New issue

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

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

Already on GitHub? # to your account

[ffmpeg] failed when use ffmpeg by cmake #43927

Open
wpp2014 opened this issue Feb 20, 2025 · 1 comment · May be fixed by #43928
Open

[ffmpeg] failed when use ffmpeg by cmake #43927

wpp2014 opened this issue Feb 20, 2025 · 1 comment · May be fixed by #43928
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@wpp2014
Copy link

wpp2014 commented Feb 20, 2025

Describe the bug
Failed to use ffmpeg by call find_package(FFMPEG REQUIRED) in CMakeLists.txt

Environment

  • OS: Windows

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install ffmpeg[drawtext,opencl,x264,x265,webp,vpx] --triplet=v142-x64-static-mt
  2. use ffmpeg in self project by cmake

Expected behavior
Success to run cmake --build

Failure logs

c:\Self\ffmpeg-test>cmake --preset x64-static-debug
Preset CMake variables:

  CMAKE_BUILD_TYPE="Debug"
  CMAKE_SYSTEM_VERSION="10.0.22621.0"
  CMAKE_TOOLCHAIN_FILE="c:\Self\vcpkg/scripts/buildsystems/vcpkg.cmake"
  IS_DEBUG_BUILD="ON"
  IS_DYNAMIC_BUILD="OFF"
  OUTPUT_PATH="C:/Self/ffmpeg-test/output/x64-static-debug"
  VCPKG_TARGET_TRIPLET="v142-x64-static-mt"

-- The C compiler identification is MSVC 19.29.30158.0
-- The CXX compiler identification is MSVC 19.29.30158.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- VCPKG_TARGET_TRIPLET: v142-x64-static-mt
-- VCPKG_DLL_DIR:
-- IS_DEBUG_BUILD: ON
-- IS_DYNAMIC_BUILD: OFF
-- CMAKE_CONFIGURATION_TYPES: Debug
-- OUTPUT_PATH: C:/Self/ffmpeg-test/output/x64-static-debug
CMake Error at C:/Self/vcpkg/installed/v142-x64-static-mt/share/ffmpeg/FindFFMPEG.cmake:73 (find_library):
  Could not find FFMPEG_DEPENDENCY_usp10_RELEASE using the following names:
  usp10
Call Stack (most recent call first):
  C:/Self/vcpkg/installed/v142-x64-static-mt/share/ffmpeg/FindFFMPEG.cmake:147 (append_dependencies)
  C:/Self/vcpkg/installed/v142-x64-static-mt/share/ffmpeg/vcpkg-cmake-wrapper.cmake:27 (_find_package)
  C:/Self/vcpkg/scripts/buildsystems/vcpkg.cmake:813 (include)
  CMakeLists.txt:54 (find_package)


-- Configuring incomplete, errors occurred!

The attachment is my modification. After the modification, it returned to normal.

fix-use-ffmpeg-failed.patch

wpp2014 added a commit to wpp2014/vcpkg that referenced this issue Feb 20, 2025
@wpp2014 wpp2014 linked a pull request Feb 20, 2025 that will close this issue
7 tasks
@wpp2014
Copy link
Author

wpp2014 commented Feb 20, 2025

I submitted a change:
#43928

@LilyWangLL LilyWangLL added the category:port-bug The issue is with a library, which is something the port should already support label Feb 20, 2025
wpp2014 added a commit to wpp2014/vcpkg that referenced this issue Feb 21, 2025
wpp2014 added a commit to wpp2014/vcpkg that referenced this issue Feb 23, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants