[cmake] Error: Building package opencv4:x64-osx-dynamic failed with: BUILD_FAILED
[cmake] Please ensure you're using the latest portfiles with `./vcpkg update`, then
[cmake] submit an issue at https://github.com/Microsoft/vcpkg/issues including:
[cmake] Package: opencv4:x64-osx-dynamic
[cmake] Vcpkg version: 2021-08-12-unknownhash
[cmake]
[cmake] Additionally, attach any relevant sections from the log files above.
[cmake] -- Running vcpkg install - failed
[cmake] CMake Error at 3rdparty/vcpkg/scripts/buildsystems/vcpkg.cmake:827 (message):
[cmake] vcpkg install failed. See logs for more information:
[cmake] /Users/papillonmac/Documents/Testing/build/vcpkg-manifest-install.log
[cmake] Call Stack (most recent call first):
[cmake] /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
[cmake] CMakeLists.txt:2 (project)
[cmake]
[cmake]
[cmake] CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
[cmake] CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
[cmake] -- Configuring incomplete, errors occurred!
Additional context
I have used the custom triplet x64-osx-dynamic.cmake from vcpkg/triplets/community/ to built the dynamic libraries on macOS for opencv4. Has anyone a suggestion on how to solve this error?
This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue and provides /Users/papillonmac/Documents/Testing/3rdparty/vcpkg/buildtrees/opencv4/install-x64-osx-dynamic-dbg-out.log.
Host Environment
To Reproduce Steps to reproduce the behavior: I have used the following manifest file (vcpkg.json):
In Visual Studio Code the
settings.json
file is as follows:Failure logs During compiling, the following error occurs when it starts to build the OpenCV library.
Additional context I have used the custom triplet
x64-osx-dynamic.cmake
fromvcpkg/triplets/community/
to built the dynamic libraries on macOS for opencv4. Has anyone a suggestion on how to solve this error?