microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.19k stars 6.39k forks source link

[ffmpeg] Build error on arm64-osx-dynamic #36730

Closed wingenium-nagesh closed 8 months ago

wingenium-nagesh commented 8 months ago

Package: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:arm64-osx-dynamic@6.1#2

Host Environment

To Reproduce

vcpkg install Failure logs

-- Using cached ffmpeg-ffmpeg-n6.1.tar.gz.
-- Cleaning sources at /Users/nagesh/Downloads/inviwo/base/vcpkg/buildtrees/ffmpeg/src/n6.1-f7bac3f35b.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/nagesh/Downloads/inviwo/base/vcpkg/downloads/ffmpeg-ffmpeg-n6.1.tar.gz
-- Applying patch 0001-create-lib-libraries.patch
-- Applying patch 0002-fix-msvc-link.patch
-- Applying patch 0003-fix-windowsinclude.patch
-- Applying patch 0004-fix-debug-build.patch
-- Applying patch 0005-fix-nasm.patch
-- Applying patch 0006-fix-StaticFeatures.patch
-- Applying patch 0007-fix-lib-naming.patch
-- Applying patch 0009-Fix-fdk-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 0015-Fix-xml2-detection.patch
-- Applying patch 0020-fix-aarch64-libswscale.patch
-- Applying patch 0022-fix-iconv.patch
-- Using source at /Users/nagesh/Downloads/inviwo/base/vcpkg/buildtrees/ffmpeg/src/n6.1-f7bac3f35b.clean
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:166 (message):
  Could not find nasm.  Please install it via your package manager:

      brew install nasm
Call Stack (most recent call first):
  /Users/nagesh/Downloads/inviwo/base/inviwo/tools/vcpkg/ffmpeg/portfile.cmake:29 (vcpkg_find_acquire_program)
  scripts/ports.cmake:170 (include)

Additional context

vcpkg.json ``` { "name": "inviwo", "version-string": "0.9.11.1", "homepage": "https://github.com/inviwo/inviwo", "license": "BSD-2-Clause", "vcpkg-configuration": { "default-registry": { "kind": "builtin", "baseline": "53bef8994c541b6561884a8395ea35715ece75db" }, "overlay-ports": [ "./tools/vcpkg" ] }, "dependencies": [ "assimp", "benchmark", "cimg", "eigen3", "fmt", "freetype", "glew", "glfw3", "glm", "gtest", { "name": "hdf5", "features": [ "cpp", "zlib" ] }, "libjpeg-turbo", "libpng", "minizip", "nlohmann-json", "nifticlib", "openexr", "pybind11", "roaring", "tclap", "tiff", "tinydir", "tinyxml2", "llnl-units", "utfcpp", "zlib", "pegtl", "inja", "ffmpeg", "warn", "zlib" ], "features": { "qt": { "description": "Get Qt from vcpkg", "dependencies": [ { "name": "qtbase", "features": [ "gui", "jpeg", "png", "widgets", "zstd" ] }, "qtsvg" ] }, "ttk": { "description": "Support topology-tool-kit modules", "dependencies": [ "topology-tool-kit" ] }, "vtk": { "description": "Support VTK modules", "dependencies": [ { "name": "vtk", "features": [ "opengl", "utf8" ] } ] }, "dome": { "description": "Inviwo Dome dependencies", "dependencies": [ { "name": "tracy", "features": [ "gui-tools" ] }, { "name": "sgct", "features": [ "tracy", "freetype" ] } ] } } } ```
github-actions[bot] commented 8 months ago

From the log:

  Could not find nasm.  Please install it via your package manager:

      brew install nasm
wingenium-nagesh commented 8 months ago

I have installed nasm via brew. the error still persists

╰─➤ brew install nasm 127 ↵ Warning: nasm 2.16.01 is already installed and up-to-date. To reinstall 2.16.01, run: brew reinstall nasm