microsoft / vcpkg

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

[ffmpeg] Build error on x64-windows #36319

Open Katana2333 opened 5 months ago

Katana2333 commented 5 months ago

I got a problem when installing ffmpeg, it seems to be something wrong with the file "yuv2rgb_neon.S"

OPERATION SYSTEM:

WINDOWS10 x64

COMPILER:

MSVC 2022

LOG :

`PS D:\Inviwo\vcpkg> ./vcpkg install ffmpeg:x64-windows Computing installation plan... The following packages will be built and installed: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows@6.1#2

Call Stack (most recent call first): scripts/cmake/vcpkg_extract_source_archive.cmake:147 (z_vcpkg_apply_patches) scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive) scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex) ports/ffmpeg/portfile.cmake:1 (vcpkg_from_github) scripts/ports.cmake:170 (include)

error: building ffmpeg:x64-windows failed with: BUILD_FAILED Elapsed time to handle ffmpeg:x64-windows: 11 s Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+ffmpeg You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[ffmpeg]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2FInviwo%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md`

JonLiu1993 commented 5 months ago
  1. cd <vcpkg-root>
  2. git pull
  3. .\bootstrap-vcpkg.bat
  4. .\vcpkg upgrade - if all is good continue to step six, otherwise step 5
  5. .\vcpkg upgrade --no-dry-run
  6. .\vcpkg install boost-thread:x64-osx

If the error occurs again please provide the complete error log

Katana2333 commented 5 months ago
  1. cd <vcpkg-root>
  2. git pull
  3. .\bootstrap-vcpkg.bat
  4. .\vcpkg upgrade - if all is good continue to step six, otherwise step 5
  5. .\vcpkg upgrade --no-dry-run
  6. .\vcpkg install boost-thread:x64-osx

If the error occurs again please provide the complete error log

Thanks for your advice! I've tried above commands, everything goes fine except the last step, and the error log is:

PS D:\Inviwo\vcpkg> .\vcpkg install boost-thread:x64-osx
Computing installation plan...
The following packages will be built and installed:
  * boost-algorithm:x64-osx@1.84.0
  * boost-align:x64-osx@1.84.0
  * boost-array:x64-osx@1.84.0
  * boost-assert:x64-osx@1.84.0
  * boost-atomic:x64-osx@1.84.0
  * boost-bind:x64-osx@1.84.0
  * boost-build:x64-windows@1.84.0
  * boost-chrono:x64-osx@1.84.0
  * boost-concept-check:x64-osx@1.84.0
  * boost-config:x64-osx@1.84.0
  * boost-container:x64-osx@1.84.0
  * boost-container-hash:x64-osx@1.84.0
  * boost-conversion:x64-osx@1.84.0
  * boost-core:x64-osx@1.84.0
  * boost-date-time:x64-osx@1.84.0
  * boost-describe:x64-osx@1.84.0
  * boost-detail:x64-osx@1.84.0
  * boost-exception:x64-osx@1.84.0
  * boost-function:x64-osx@1.84.0
  * boost-function-types:x64-osx@1.84.0
  * boost-functional:x64-osx@1.84.0
  * boost-fusion:x64-osx@1.84.0
  * boost-integer:x64-osx@1.84.0
  * boost-intrusive:x64-osx@1.84.0
  * boost-io:x64-osx@1.84.0
  * boost-iterator:x64-osx@1.84.0
  * boost-lexical-cast:x64-osx@1.84.0
  * boost-modular-build-helper:x64-windows@1.84.0
  * boost-move:x64-osx@1.84.0
  * boost-mp11:x64-osx@1.84.0
  * boost-mpl:x64-osx@1.84.0
  * boost-numeric-conversion:x64-osx@1.84.0
  * boost-optional:x64-osx@1.84.0
  * boost-predef:x64-osx@1.84.0
  * boost-preprocessor:x64-osx@1.84.0
  * boost-range:x64-osx@1.84.0
  * boost-ratio:x64-osx@1.84.0
  * boost-regex:x64-osx@1.84.0
  * boost-smart-ptr:x64-osx@1.84.0
  * boost-static-assert:x64-osx@1.84.0
  * boost-system:x64-osx@1.84.0
    boost-thread:x64-osx@1.84.0
  * boost-throw-exception:x64-osx@1.84.0
  * boost-tokenizer:x64-osx@1.84.0
  * boost-tuple:x64-osx@1.84.0
  * boost-type-traits:x64-osx@1.84.0
  * boost-typeof:x64-osx@1.84.0
  * boost-uninstall:x64-osx@1.84.0
  * boost-uninstall:x64-windows@1.84.0
  * boost-unordered:x64-osx@1.84.0
  * boost-utility:x64-osx@1.84.0
  * boost-variant2:x64-osx@1.84.0
  * boost-vcpkg-helpers:x64-osx@1.84.0
  * boost-winapi:x64-osx@1.84.0
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-osx...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "localhost:1080".
error: while detecting compiler information:
The log file content at "D:\Inviwo\vcpkg\buildtrees\detect_compiler\stdout-x64-osx.log" is:
-- Downloading https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-win.zip -> ninja-win-1.10.2.zip...
-- Configuring x64-osx
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: D:/Inviwo/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
    Working Directory: D:/Inviwo/vcpkg/buildtrees/detect_compiler/x64-osx-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      D:\Inviwo\vcpkg\buildtrees\detect_compiler\config-x64-osx-rel-CMakeCache.txt.log
      D:\Inviwo\vcpkg\buildtrees\detect_compiler\config-x64-osx-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:314 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:170 (include)

error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

And more infomation in \Inviwo\vcpkg\buildtrees\detect_compiler\config-x64-osx-out.log:

[1/1] "C:/Program Files/CMake/bin/cmake.exe" -E chdir ".." "C:/Program Files/CMake/bin/cmake.exe" "D:/Inviwo/vcpkg/scripts/detect_compiler" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:/Inviwo/vcpkg/packages/detect_compiler_x64-osx" "-DCMAKE_MAKE_PROGRAM=D:/Inviwo/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Inviwo/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=D:/Inviwo/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=D:/Inviwo/vcpkg" "-DZ_VCPKG_ROOT_DIR=D:/Inviwo/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/Inviwo/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64"
FAILED: ../CMakeCache.txt 
"C:/Program Files/CMake/bin/cmake.exe" -E chdir ".." "C:/Program Files/CMake/bin/cmake.exe" "D:/Inviwo/vcpkg/scripts/detect_compiler" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:/Inviwo/vcpkg/packages/detect_compiler_x64-osx" "-DCMAKE_MAKE_PROGRAM=D:/Inviwo/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Inviwo/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=D:/Inviwo/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=D:/Inviwo/vcpkg" "-DZ_VCPKG_ROOT_DIR=D:/Inviwo/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/Inviwo/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64"
-- The C compiler identification is unknown
CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeFindBinUtils.cmake:251 (message):
  Could not find install_name_tool, please check your installation.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeDetermineCCompiler.cmake:196 (include)
  CMakeLists.txt:11 (enable_language)

-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.
github-actions[bot] commented 4 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

nerodroid commented 1 month ago

Any luck on this ?