Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

vcpkg install fails on macOS Mojave #6994

Closed
hamzaalomari opened this issue Jun 22, 2019 · 4 comments · Fixed by #5169
Closed

vcpkg install fails on macOS Mojave #6994

hamzaalomari opened this issue Jun 22, 2019 · 4 comments · Fixed by #5169

Comments

@hamzaalomari
Copy link

I tried installing opencv using vcpkg on my mac, I keep getting the same error. I have the latest vcpkg, cmake and python 3.7.3. This is the error I get what I get:

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: /Users/dimai./vcpkg/downloads/tools/cmake-3.14.0-osx/cmake-3.14.0-Darwin-x86_64/CMake.app/Contents/bin/cmake;/Users/dimai./vcpkg/buildtrees/opencv/src/3.4.3-6bc372f345;-DOpenCV_DISABLE_ARCH_PATH=ON;-DBUILD_DOCS=OFF;-DBUILD_EXAMPLES=OFF;-DBUILD_JASPER=OFF;-DBUILD_JPEG=OFF;-DBUILD_OPENEXR=OFF;-DBUILD_PACKAGE=OFF;-DBUILD_PERF_TESTS=OFF;-DBUILD_PNG=OFF;-DBUILD_PROTOBUF=OFF;-DBUILD_TESTS=OFF;-DBUILD_TIFF=OFF;-DBUILD_WEBP=OFF;-DBUILD_WITH_DEBUG_INFO=ON;-DBUILD_WITH_STATIC_CRT=0;-DBUILD_ZLIB=OFF;-DBUILD_opencv_apps=OFF;-DBUILD_opencv_bgsegm=ON;-DBUILD_opencv_dnn=OFF;-DBUILD_opencv_flann=ON;-DBUILD_opencv_line_descriptor=ON;-DBUILD_opencv_ovis=OFF;-DBUILD_opencv_python2=OFF;-DBUILD_opencv_python3=OFF;-DBUILD_opencv_saliency=ON;-DBUILD_opencv_sfm=OFF;-DBUILD_opencv_world=OFF;-DPROTOBUF_UPDATE_FILES=;-DUPDATE_PROTO_FILES=;-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON;-DCMAKE_DISABLE_FIND_PACKAGE_JNI=ON;-DCMAKE_MODULE_PATH=;-DENABLE_CXX11=ON;-DENABLE_PYLINT=OFF;-DOPENCV_ENABLE_NONFREE=OFF;-DINSTALL_FORCE_UNIX_PATHS=ON;-DINSTALL_LICENSE=OFF;-DOPENCV_CONFIG_INSTALL_PATH=share/opencv;-DOPENCV_DOWNLOAD_PATH=/Users/dimai./vcpkg/downloads/opencv-cache;-DOPENCV_OTHER_INSTALL_PATH=share/opencv;-DWITH_CUBLAS=OFF;-DWITH_CUDA=OFF;-DWITH_EIGEN=ON;-DWITH_FFMPEG=OFF;-DWITH_GDCM=OFF;-DWITH_IPP=OFF;-DWITH_JASPER=OFF;-DWITH_JPEG=ON;-DWITH_LAPACK=OFF;-DWITH_MATLAB=OFF;-DWITH_MSMF=ON;-DWITH_OPENCLAMDBLAS=OFF;-DWITH_OPENEXR=OFF;-DWITH_OPENGL=ON;-DWITH_PNG=ON;-DWITH_PROTOBUF=OFF;-DWITH_QT=OFF;-DWITH_TBB=OFF;-DWITH_TIFF=ON;-DWITH_VTK=OFF;-DWITH_WEBP=OFF;-DWITH_ZLIB=ON;-DCURRENT_INSTALLED_DIR=/Users/dimai./vcpkg/installed/x64-osx;-DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja;-DCMAKE_SYSTEM_NAME=Darwin;-DBUILD_SHARED_LIBS=OFF;-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/dimai./vcpkg/scripts/toolchains/osx.cmake;-DVCPKG_TARGET_TRIPLET=x64-osx;-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=/Users/dimai./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_TARGET_ARCHITECTURE=x64;-DCMAKE_INSTALL_LIBDIR:STRING=lib;-DCMAKE_INSTALL_BINDIR:STRING=bin;-DINSTALL_HEADERS=OFF;-DINSTALL_OTHER=OFF;-G;Ninja;-DCMAKE_BUILD_TYPE=Debug;-DCMAKE_INSTALL_PREFIX=/Users/dimai./vcpkg/packages/opencv_x64-osx/debug
Working Directory: /Users/dimai./vcpkg/buildtrees/opencv/x64-osx-dbg
Error code: 1
See logs for more information:
/Users/dimai./vcpkg/buildtrees/opencv/config-x64-osx-dbg-out.log
/Users/dimai./vcpkg/buildtrees/opencv/config-x64-osx-dbg-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:283 (vcpkg_execute_required_process)
ports/opencv/portfile.cmake:249 (vcpkg_configure_cmake)
scripts/ports.cmake:71 (include)

Error: Building package opencv:x64-osx failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https:/Microsoft/vcpkg/issues including:
Package: opencv:x64-osx
Vcpkg version: 2019.06.21-unknownhash

####################################################

This is the output of the config-x64-osx-dbg-out.log file:

-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- The C compiler identification is AppleClang 10.0.1.10010046
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /opt/local/bin/python2.7 (found suitable version "2.7.16", minimum required is "2.7")
-- Could NOT find PythonLibs: Found unsuitable version "2.7.10", but required is exact version "2.7.16" (found /usr/lib/libpython2.7.dylib)
-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7.3", minimum required is "3.4")
-- Found PythonLibs: /usr/local/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib (found suitable exact version "3.7.3")
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Success
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WINCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WINCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_NARROWING
-- Performing Test HAVE_CXX_WNO_NARROWING - Success
-- Performing Test HAVE_C_WNO_NARROWING
-- Performing Test HAVE_C_WNO_NARROWING - Success
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_WNO_LONG_LONG
-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
-- Performing Test HAVE_C_WNO_LONG_LONG
-- Performing Test HAVE_C_WNO_LONG_LONG - Success
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_CXX_WNO_SEMICOLON_BEFORE_METHOD_BODY
-- Performing Test HAVE_CXX_WNO_SEMICOLON_BEFORE_METHOD_BODY - Success
-- Performing Test HAVE_C_WNO_SEMICOLON_BEFORE_METHOD_BODY
-- Performing Test HAVE_C_WNO_SEMICOLON_BEFORE_METHOD_BODY - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - Success
-- Performing Test HAVE_CPU_SSE_SUPPORT (check file: cmake/checks/cpu_sse.cpp)
-- Performing Test HAVE_CPU_SSE_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE2_SUPPORT (check file: cmake/checks/cpu_sse2.cpp)
-- Performing Test HAVE_CPU_SSE2_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Failed
-- Performing Test HAVE_CXX_MPOPCNT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CXX_MPOPCNT - Success
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Failed
-- Performing Test HAVE_CXX_MSSE4_2 (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CXX_MSSE4_2 - Success
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Failed
-- Performing Test HAVE_CXX_MF16C (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_MF16C - Success
-- Performing Test HAVE_CXX_MFMA
-- Performing Test HAVE_CXX_MFMA - Success
-- Performing Test HAVE_CPU_AVX_SUPPORT (check file: cmake/checks/cpu_avx.cpp)
-- Performing Test HAVE_CPU_AVX_SUPPORT - Failed
-- Performing Test HAVE_CXX_MAVX (check file: cmake/checks/cpu_avx.cpp)
-- Performing Test HAVE_CXX_MAVX - Success
-- Performing Test HAVE_CPU_AVX2_SUPPORT (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CPU_AVX2_SUPPORT - Failed
-- Performing Test HAVE_CXX_MAVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_MAVX2 - Success
-- Performing Test HAVE_CPU_AVX_512F_SUPPORT (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CPU_AVX_512F_SUPPORT - Failed
-- Performing Test HAVE_CXX_MAVX512F (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CXX_MAVX512F - Success
-- Performing Test HAVE_CPU_AVX512_SKX_SUPPORT (check file: cmake/checks/cpu_avx512skx.cpp)
-- Performing Test HAVE_CPU_AVX512_SKX_SUPPORT - Failed
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ (check file: cmake/checks/cpu_avx512skx.cpp)
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Success
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libz.a (found suitable version "1.2.11", minimum required is "1.2.3")
-- Found JPEG: /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libjpeg.a (found version "62")
-- Found TIFF: optimized;/Users/dimai./vcpkg/installed/x64-osx/lib/libtiff.a;debug;/Users/dimai./vcpkg/installed/x64-osx/debug/lib/libtiffd.a (found version "4.0.10")
-- Found ZLIB: /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libz.a (found version "1.2.11")
-- Found PNG: optimized;/Users/dimai./vcpkg/installed/x64-osx/share/png/../../lib/libpng16.a;debug;/Users/dimai./vcpkg/installed/x64-osx/debug/lib/libpng16d.a (found version "1.6.37")
-- Looking for /Users/dimai./vcpkg/installed/x64-osx/include/libpng/png.h
-- Looking for /Users/dimai./vcpkg/installed/x64-osx/include/libpng/png.h - not found
-- Checking for module 'gstreamer-base-1.0'
-- No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
-- No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
-- No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
-- No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
-- No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
-- No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
-- No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
-- No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
-- No package 'gstreamer-pbutils-0.10' found
-- Checking for module 'libdc1394-2'
-- No package 'libdc1394-2' found
-- Checking for module 'libdc1394'
-- No package 'libdc1394' found
-- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_OBJCXX_FOBJC_EXCEPTIONS
-- Performing Test HAVE_OBJCXX_FOBJC_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success

-- General configuration for OpenCV 3.4.3 =====================================
-- Version control: unknown

-- Platform:
-- Timestamp: 2019-06-22T18:05:49Z
-- Host: Darwin 18.5.0 x86_64
-- CMake: 3.14.0
-- CMake generator: Ninja
-- CMake build tool: /usr/local/bin/ninja
-- Configuration: Debug

-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3 SSSE3 SSE4_1
-- requested: DETECT
-- Dispatched code generation: SSE4_2 FP16 AVX AVX2 AVX512_SKX
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_2 (1 files): + POPCNT SSE4_2
-- FP16 (1 files): + POPCNT SSE4_2 FP16 AVX
-- AVX (4 files): + POPCNT SSE4_2 AVX
-- AVX2 (8 files): + POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (0 files): + POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX

-- C/C++:
-- Built as dynamic libs?: NO
-- C++11: YES
-- C++ Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ (ver 10.0.1.10010046)
-- C++ flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -g1
-- C++ flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- C flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -g1
-- C flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release): -L/usr/local/opt/icu4c/lib
-- Linker flags (Debug): -L/usr/local/opt/icu4c/lib
-- ccache: NO
-- Precompiled headers: NO
-- Extra dependencies: -framework OpenCL /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libjpeg.a m /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libz.a -framework Cocoa -framework Accelerate -framework AVFoundation -framework CoreGraphics -framework CoreMedia -framework CoreVideo -framework QuartzCore
-- 3rdparty dependencies: ittnotify

-- OpenCV modules:
-- To be built: calib3d core features2d flann highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator shape stitching superres video videoio videostab
-- Disabled: js python3 world
-- Disabled by dependency: -
-- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn java python2 ts viz
-- Applications: -
-- Documentation: NO
-- Non-free algorithms: NO

-- GUI:
-- Cocoa: YES
-- OpenGL support: NO

-- Media I/O:
-- ZLib: /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libz.a (ver 1.2.11)
-- JPEG: /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libjpeg.a (ver 62)
-- PNG: optimized /Users/dimai./vcpkg/installed/x64-osx/share/png/../../lib/libpng16.a debug /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libpng16d.a (ver 1.6.37)
-- TIFF: optimized /Users/dimai./vcpkg/installed/x64-osx/lib/libtiff.a debug /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libtiffd.a optimized /Users/dimai./vcpkg/installed/x64-osx/lib/liblzma.a debug /Users/dimai./vcpkg/installed/x64-osx/debug/lib/liblzmad.a /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libjpeg.a /Users/dimai./vcpkg/installed/x64-osx/debug/lib/libz.a m (ver 42 / 4.0.10)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES

-- Video I/O:
-- DC1394: NO
-- GStreamer: NO
-- AVFoundation: YES

-- Parallel framework: GCD

-- Trace: YES (with Intel ITT)

-- Other third-party libraries:
-- Eigen: YES (ver 3.3.7)
-- Custom HAL: NO

-- OpenCL: YES (no extra features)
-- Include path: NO
-- Link libraries: -framework OpenCL

-- Python (for build): /opt/local/bin/python2.7

-- Java:
-- ant: NO
-- JNI: NO
-- Java wrappers: NO
-- Java tests: NO

-- Install to: /Users/dimai./vcpkg/packages/opencv_x64-osx/debug


--
-- Configuring incomplete, errors occurred!
See also "/Users/dimai./vcpkg/buildtrees/opencv/x64-osx-dbg/CMakeFiles/CMakeOutput.log".
See also "/Users/dimai./vcpkg/buildtrees/opencv/x64-osx-dbg/CMakeFiles/CMakeError.log".

####################################################

And this is the output of the config-x64-osx-dbg-err.log file:

Traceback (most recent call last):
File "", line 1, in
ImportError: No module named numpy.distutils
CMake Warning (dev) at /Users/dimai./vcpkg/scripts/buildsystems/vcpkg.cmake:222 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "OpenCV_HAL" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:763 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/dimai./vcpkg/scripts/buildsystems/vcpkg.cmake:231 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "OpenCV_HAL" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:763 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/dimai./vcpkg/scripts/buildsystems/vcpkg.cmake:242 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "OpenCV_HAL" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:763 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/dimai./vcpkg/scripts/buildsystems/vcpkg.cmake:254 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "OpenCV_HAL" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:763 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$<NOT:$CONFIG:DEBUG>:/Users/dimai./vcpkg/installed/x64-osx/share/png/../../lib/libpng16.a>
Call Stack (most recent call first):
cmake/OpenCVGenPkgconfig.cmake:52 (ocv_get_all_libs)
CMakeLists.txt:860 (include)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$CONFIG:DEBUG:/Users/dimai./vcpkg/installed/x64-osx/debug/lib/libpng16d.a>
Call Stack (most recent call first):
cmake/OpenCVGenPkgconfig.cmake:52 (ocv_get_all_libs)
CMakeLists.txt:860 (include)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$&lt;$&lt;NOT:$CONFIG:DEBUG>:/Users/dimai./vcpkg/installed/x64-osx/lib/libtiff.a>
Call Stack (most recent call first):
cmake/OpenCVGenPkgconfig.cmake:52 (ocv_get_all_libs)
CMakeLists.txt:860 (include)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$CONFIG:DEBUG:/Users/dimai./vcpkg/installed/x64-osx/debug/lib/libtiffd.a>
Call Stack (most recent call first):
cmake/OpenCVGenPkgconfig.cmake:52 (ocv_get_all_libs)
CMakeLists.txt:860 (include)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$&lt;$&lt;NOT:$CONFIG:DEBUG>:/Users/dimai./vcpkg/installed/x64-osx/lib/liblzma.a>
Call Stack (most recent call first):
cmake/OpenCVGenPkgconfig.cmake:52 (ocv_get_all_libs)
CMakeLists.txt:860 (include)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$CONFIG:DEBUG:/Users/dimai./vcpkg/installed/x64-osx/debug/lib/liblzmad.a>
Call Stack (most recent call first):
cmake/OpenCVGenPkgconfig.cmake:52 (ocv_get_all_libs)
CMakeLists.txt:860 (include)

CMake Error: Could not open file for write in copy operation /Users/dimaivcpkg/buildtrees/opencv/x64-osx-dbg/unix-install/OpenCVConfig.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at cmake/OpenCVGenConfig.cmake:91 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
cmake/OpenCVGenConfig.cmake:109 (ocv_gen_config)
CMakeLists.txt:867 (include)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$&lt;$&lt;NOT:$CONFIG:DEBUG>:/Users/dimai./vcpkg/installed/x64-osx/share/png/../../lib/libpng16.a>
Call Stack (most recent call first):
CMakeLists.txt:1043 (ocv_get_all_libs)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$CONFIG:DEBUG:/Users/dimai./vcpkg/installed/x64-osx/debug/lib/libpng16d.a>
Call Stack (most recent call first):
CMakeLists.txt:1043 (ocv_get_all_libs)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$&lt;$&lt;NOT:$CONFIG:DEBUG>:/Users/dimai./vcpkg/installed/x64-osx/lib/libtiff.a>
Call Stack (most recent call first):
CMakeLists.txt:1043 (ocv_get_all_libs)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$CONFIG:DEBUG:/Users/dimai./vcpkg/installed/x64-osx/debug/lib/libtiffd.a>
Call Stack (most recent call first):
CMakeLists.txt:1043 (ocv_get_all_libs)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$&lt;$&lt;NOT:$CONFIG:DEBUG>:/Users/dimai./vcpkg/installed/x64-osx/lib/liblzma.a>
Call Stack (most recent call first):
CMakeLists.txt:1043 (ocv_get_all_libs)

CMake Warning at cmake/OpenCVUtils.cmake:1374 (message):
Unexpected CMake generator expression:
$<$CONFIG:DEBUG:/Users/dimai./vcpkg/installed/x64-osx/debug/lib/liblzmad.a>
Call Stack (most recent call first):
CMakeLists.txt:1043 (ocv_get_all_libs)

@cbezault
Copy link
Contributor

Opencv is known not to build on macOS. #5169 should fix that.

@cenit
Copy link
Contributor

cenit commented Jun 23, 2019

not just should, it has to! I use it on my Mac, which is updated with Mojave :)

@hemulens
Copy link

hemulens commented Jun 1, 2020

@cenit, could you please explain how you installed it? I can't install it on my OS X Mojave and I get the same error as @hamzaalomari
:(

@cenit
Copy link
Contributor

cenit commented Jun 2, 2020

just with ./vcpkg install opencv it works here.
Can you just post your error logs and files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants