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

Build fails with fresh rust project and lastest opencv via homebrew on macos #110

Closed
benmarten opened this issue Apr 4, 2020 · 7 comments

Comments

@benmarten
Copy link

benmarten commented Apr 4, 2020

In a project that's worked 3 weeks ago, now i'm seeing the below error. This is reproducible in a bare bones cargo project. (llvm pkg-config opencv are installed.)

  1. Operating system: macOS
  2. The way you installed OpenCV: package, official binary distribution, manual compilation, etc.: homebrew
  3. OpenCV version: 4.2.0_3
  4. Attach the full output of the following command from your project directory:
~/d/r/test2 (master|…) $ RUST_BACKTRACE=full cargo build -vv                                                                                 19:22:32
       Fresh autocfg v1.0.0
       Fresh cfg-if v0.1.10
       Fresh lazy_static v1.4.0
       Fresh scopeguard v1.1.0
       Fresh either v1.5.3
       Fresh semver-parser v0.7.0
       Fresh pkg-config v0.3.17
       Fresh glob v0.3.0
       Fresh once_cell v1.3.1
       Fresh slab v0.4.2
       Fresh semver v0.9.0
       Fresh libc v0.2.68
       Fresh maybe-uninit v2.0.0
       Fresh crossbeam-utils v0.7.2
       Fresh memoffset v0.5.4
       Fresh num-traits v0.2.11
       Fresh num_cpus v1.12.0
       Fresh jobserver v0.1.21
       Fresh crossbeam-epoch v0.8.2
       Fresh crossbeam-queue v0.2.1
       Fresh num-integer v0.1.42
       Fresh cc v1.0.50
       Fresh num-complex v0.2.4
       Fresh crossbeam-deque v0.7.3
       Fresh num-bigint v0.2.6
       Fresh num-iter v0.1.40
       Fresh rayon-core v1.7.0
       Fresh num-rational v0.2.4
       Fresh rayon v1.3.0
       Fresh num v0.2.1
   Compiling opencv v0.33.1
     Running `/Users/ben/dev/rust/test2/target/debug/build/opencv-467584ecce62010c/build-script-build`
[opencv 0.33.1] === Setting up OpenCV library from pkg_config
[opencv 0.33.1] === OpenCV library configuration: Library {
[opencv 0.33.1]     pkg_name: "opencv4",
[opencv 0.33.1]     include_paths: [
[opencv 0.33.1]         "/usr/local/Cellar/opencv/4.2.0_2/include/opencv4/opencv",
[opencv 0.33.1]         "/usr/local/Cellar/opencv/4.2.0_2/include/opencv4",
[opencv 0.33.1]     ],
[opencv 0.33.1]     version: "4.2.0",
[opencv 0.33.1]     cargo_metadata: [
[opencv 0.33.1]         "cargo:rustc-link-search=native=/usr/local/Cellar/opencv/4.2.0_2/lib",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_gapi",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_stitching",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_aruco",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_bgsegm",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_bioinspired",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_ccalib",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_dnn_objdetect",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_dnn_superres",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_dpm",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_highgui",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_face",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_freetype",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_fuzzy",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_hfs",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_img_hash",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_line_descriptor",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_quality",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_reg",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_rgbd",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_saliency",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_sfm",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_stereo",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_structured_light",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_phase_unwrapping",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_superres",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_optflow",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_surface_matching",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_tracking",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_datasets",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_text",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_dnn",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_plot",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_videostab",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_videoio",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_xfeatures2d",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_shape",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_ml",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_ximgproc",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_video",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_xobjdetect",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_objdetect",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_calib3d",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_imgcodecs",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_features2d",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_flann",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_xphoto",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_photo",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_imgproc",
[opencv 0.33.1]         "cargo:rustc-link-lib=opencv_core",
[opencv 0.33.1]     ],
[opencv 0.33.1] }
[opencv 0.33.1] === Found OpenCV library version: 4.2.0 in headers located at: /Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_HEADER_DIR
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/imgproc.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/bioinspired.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/ocvrs_resolve_types.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-features2d.cpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/calib3d.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/face.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-dnn.cpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/sfm.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/hdf.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/ccalib.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/common.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/dnn.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/videoio.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-core.cpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/core.hpp
[opencv 0.33.1] cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/aruco.hpp
[opencv 0.33.1] TARGET = Some("x86_64-apple-darwin")
[opencv 0.33.1] OPT_LEVEL = Some("0")
[opencv 0.33.1] HOST = Some("x86_64-apple-darwin")
[opencv 0.33.1] CXX_x86_64-apple-darwin = None
[opencv 0.33.1] CXX_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.33.1] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] DEBUG = Some("true")
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
[opencv 0.33.1] CXX_x86_64-apple-darwin = None
[opencv 0.33.1] CXX_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.33.1] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
[opencv 0.33.1] CXX_x86_64-apple-darwin = None
[opencv 0.33.1] CXX_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.33.1] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
[opencv 0.33.1] CXX_x86_64-apple-darwin = None
[opencv 0.33.1] CXX_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.33.1] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
[opencv 0.33.1] CXX_x86_64-apple-darwin = None
[opencv 0.33.1] CXX_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.33.1] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
[opencv 0.33.1] CXX_x86_64-apple-darwin = None
[opencv 0.33.1] CXX_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.33.1] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/features2d.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/features2d.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/highgui.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/highgui.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/calib3d.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/calib3d.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgcodecs.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgcodecs.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgproc.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgproc.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/manual-dnn.o" "-c" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-dnn.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/manual-features2d.o" "-c" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-features2d.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres.cpp"
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/manual-core.o" "-c" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-core.cpp"
[opencv 0.33.1] cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp:2:
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:29: error: no member named '__cxx11' in namespace 'std'
[opencv 0.33.1] cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
[opencv 0.33.1] cargo:warning=                       ~~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:55: error: expected '(' for function-style cast or type construction
[opencv 0.33.1] cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
[opencv 0.33.1] cargo:warning=                                                  ~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:86: error: explicit template instantiation cannot have a definition; if this definition is meant to be an explicit specialization, add '<>' after the 'template' keyword
[opencv 0.33.1] cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
[opencv 0.33.1] cargo:warning=~~~~~~~~                                                                             ^
[opencv 0.33.1] cargo:warning=        <>
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:86: error: no variable template matches specialization
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:103: error: expected ';' at end of declaration
[opencv 0.33.1] cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
[opencv 0.33.1] cargo:warning=                                                                                                      ^
[opencv 0.33.1] cargo:warning=                                                                                                      ;
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:101: error: expected unqualified-id
[opencv 0.33.1] cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
[opencv 0.33.1] cargo:warning=                                                                                                    ^
[opencv 0.33.1] cargo:warning=<scratch space>:299:1: note: expanded from here
[opencv 0.33.1] cargo:warning=>
[opencv 0.33.1] cargo:warning=^
[opencv 0.33.1] cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp:2:
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:41: error: no member named '__cxx11' in namespace 'std'
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                   ~~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:67: error: expected '(' for function-style cast or type construction
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                              ~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:91: error: expected a type
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                                                          ^
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml.cpp"
[opencv 0.33.1] cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres.cpp:3:
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres_types.hpp:5:41: error: no member named '__cxx11' in namespace 'std'
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                   ~~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres_types.hpp:5:67: error: expected '(' for function-style cast or type construction
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                              ~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres_types.hpp:5:91: error: expected a type
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                                                          ^
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/objdetect.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/objdetect.cpp"
[opencv 0.33.1] cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn.cpp:2:
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_types.hpp:80:41: error: no member named '__cxx11' in namespace 'std'
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                   ~~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_types.hpp:80:67: error: expected '(' for function-style cast or type construction
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                              ~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_types.hpp:80:91: error: expected a type
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                                                          ^
[opencv 0.33.1] cargo:warning=3 errors generated.
[opencv 0.33.1] exit code: 1
[opencv 0.33.1] running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/photo.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/photo.cpp"
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann.cpp:3:
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann_types.hpp:20:41: error: no member named '__cxx11' in namespace 'std'
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                   ~~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann_types.hpp:20:67: error: expected '(' for function-style cast or type construction
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                              ~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann_types.hpp:20:91: error: expected a type
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                                                          ^
[opencv 0.33.1] cargo:warning=3 errors generated.
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] exit code: 1
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] cargo:warning=3 errors generated.
[opencv 0.33.1] exit code: 1
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml.cpp:3:
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml_types.hpp:28:41: error: no member named '__cxx11' in namespace 'std'
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                   ~~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml_types.hpp:28:67: error: expected '(' for function-style cast or type construction
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                              ~~~~^
[opencv 0.33.1] cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml_types.hpp:28:91: error: expected a type
[opencv 0.33.1] cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
[opencv 0.33.1] cargo:warning=                                                                                          ^
[opencv 0.33.1] cargo:warning=3 errors generated.
[opencv 0.33.1] exit code: 1
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] cargo:warning=9 errors generated.
[opencv 0.33.1] exit code: 1
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] 
[opencv 0.33.1] 
[opencv 0.33.1] error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp" with args "c++" did not execute successfully (status code exit code: 1).
[opencv 0.33.1] 
[opencv 0.33.1] 
error: failed to run custom build command for `opencv v0.33.1`

Caused by:
  process didn't exit successfully: `/Users/ben/dev/rust/test2/target/debug/build/opencv-467584ecce62010c/build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=OPENCV_HEADER_DIR
cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/imgproc.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/bioinspired.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/ocvrs_resolve_types.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-features2d.cpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/calib3d.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/face.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-dnn.cpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/sfm.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/hdf.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/ccalib.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/common.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/dnn.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/videoio.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-core.cpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/core.hpp
cargo:rerun-if-changed=/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/aruco.hpp
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-apple-darwin")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/features2d.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/features2d.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/highgui.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/highgui.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/calib3d.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/calib3d.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgcodecs.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgcodecs.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgproc.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/imgproc.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/manual-dnn.o" "-c" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-dnn.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/manual-features2d.o" "-c" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-features2d.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres.cpp"
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/manual-core.o" "-c" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp/manual-core.cpp"
cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp:2:
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:29: error: no member named '__cxx11' in namespace 'std'
cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
cargo:warning=                       ~~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:55: error: expected '(' for function-style cast or type construction
cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
cargo:warning=                                                  ~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:86: error: explicit template instantiation cannot have a definition; if this definition is meant to be an explicit specialization, add '<>' after the 'template' keyword
cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
cargo:warning=~~~~~~~~                                                                             ^
cargo:warning=        <>
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:86: error: no variable template matches specialization
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:103: error: expected ';' at end of declaration
cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
cargo:warning=                                                                                                      ^
cargo:warning=                                                                                                      ;
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:101: error: expected unqualified-id
cargo:warning=template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
cargo:warning=                                                                                                    ^
cargo:warning=<scratch space>:299:1: note: expanded from here
cargo:warning=>
cargo:warning=^
cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp:2:
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:41: error: no member named '__cxx11' in namespace 'std'
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                   ~~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:67: error: expected '(' for function-style cast or type construction
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                              ~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:91: error: expected a type
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                                                          ^
exit code: 0
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml.cpp"
cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres.cpp:3:
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres_types.hpp:5:41: error: no member named '__cxx11' in namespace 'std'
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                   ~~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres_types.hpp:5:67: error: expected '(' for function-style cast or type construction
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                              ~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_superres_types.hpp:5:91: error: expected a type
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                                                          ^
exit code: 0
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/objdetect.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/objdetect.cpp"
cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn.cpp:2:
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_types.hpp:80:41: error: no member named '__cxx11' in namespace 'std'
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                   ~~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_types.hpp:80:67: error: expected '(' for function-style cast or type construction
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                              ~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/dnn_types.hpp:80:91: error: expected a type
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                                                          ^
cargo:warning=3 errors generated.
exit code: 1
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/photo.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/photo.cpp"
exit code: 0
exit code: 0
cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann.cpp:3:
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann_types.hpp:20:41: error: no member named '__cxx11' in namespace 'std'
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                   ~~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann_types.hpp:20:67: error: expected '(' for function-style cast or type construction
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                              ~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/flann_types.hpp:20:91: error: expected a type
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                                                          ^
cargo:warning=3 errors generated.
exit code: 0
exit code: 1
exit code: 0
cargo:warning=3 errors generated.
exit code: 1
exit code: 0
exit code: 0
cargo:warning=In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml.cpp:3:
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml_types.hpp:28:41: error: no member named '__cxx11' in namespace 'std'
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                   ~~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml_types.hpp:28:67: error: expected '(' for function-style cast or type construction
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                              ~~~~^
cargo:warning=/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/ml_types.hpp:28:91: error: expected a type
cargo:warning=template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
cargo:warning=                                                                                          ^
cargo:warning=3 errors generated.
exit code: 1
exit code: 0
cargo:warning=9 errors generated.
exit code: 1
exit code: 0

--- stderr
=== Setting up OpenCV library from pkg_config
=== OpenCV library configuration: Library {
    pkg_name: "opencv4",
    include_paths: [
        "/usr/local/Cellar/opencv/4.2.0_2/include/opencv4/opencv",
        "/usr/local/Cellar/opencv/4.2.0_2/include/opencv4",
    ],
    version: "4.2.0",
    cargo_metadata: [
        "cargo:rustc-link-search=native=/usr/local/Cellar/opencv/4.2.0_2/lib",
        "cargo:rustc-link-lib=opencv_gapi",
        "cargo:rustc-link-lib=opencv_stitching",
        "cargo:rustc-link-lib=opencv_aruco",
        "cargo:rustc-link-lib=opencv_bgsegm",
        "cargo:rustc-link-lib=opencv_bioinspired",
        "cargo:rustc-link-lib=opencv_ccalib",
        "cargo:rustc-link-lib=opencv_dnn_objdetect",
        "cargo:rustc-link-lib=opencv_dnn_superres",
        "cargo:rustc-link-lib=opencv_dpm",
        "cargo:rustc-link-lib=opencv_highgui",
        "cargo:rustc-link-lib=opencv_face",
        "cargo:rustc-link-lib=opencv_freetype",
        "cargo:rustc-link-lib=opencv_fuzzy",
        "cargo:rustc-link-lib=opencv_hfs",
        "cargo:rustc-link-lib=opencv_img_hash",
        "cargo:rustc-link-lib=opencv_line_descriptor",
        "cargo:rustc-link-lib=opencv_quality",
        "cargo:rustc-link-lib=opencv_reg",
        "cargo:rustc-link-lib=opencv_rgbd",
        "cargo:rustc-link-lib=opencv_saliency",
        "cargo:rustc-link-lib=opencv_sfm",
        "cargo:rustc-link-lib=opencv_stereo",
        "cargo:rustc-link-lib=opencv_structured_light",
        "cargo:rustc-link-lib=opencv_phase_unwrapping",
        "cargo:rustc-link-lib=opencv_superres",
        "cargo:rustc-link-lib=opencv_optflow",
        "cargo:rustc-link-lib=opencv_surface_matching",
        "cargo:rustc-link-lib=opencv_tracking",
        "cargo:rustc-link-lib=opencv_datasets",
        "cargo:rustc-link-lib=opencv_text",
        "cargo:rustc-link-lib=opencv_dnn",
        "cargo:rustc-link-lib=opencv_plot",
        "cargo:rustc-link-lib=opencv_videostab",
        "cargo:rustc-link-lib=opencv_videoio",
        "cargo:rustc-link-lib=opencv_xfeatures2d",
        "cargo:rustc-link-lib=opencv_shape",
        "cargo:rustc-link-lib=opencv_ml",
        "cargo:rustc-link-lib=opencv_ximgproc",
        "cargo:rustc-link-lib=opencv_video",
        "cargo:rustc-link-lib=opencv_xobjdetect",
        "cargo:rustc-link-lib=opencv_objdetect",
        "cargo:rustc-link-lib=opencv_calib3d",
        "cargo:rustc-link-lib=opencv_imgcodecs",
        "cargo:rustc-link-lib=opencv_features2d",
        "cargo:rustc-link-lib=opencv_flann",
        "cargo:rustc-link-lib=opencv_xphoto",
        "cargo:rustc-link-lib=opencv_photo",
        "cargo:rustc-link-lib=opencv_imgproc",
        "cargo:rustc-link-lib=opencv_core",
    ],
}
=== Found OpenCV library version: 4.2.0 in headers located at: /Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4


error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp" "-I" "/Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4" "-I" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-deprecated-declarations" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.o" "-c" "/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp" with args "c++" did not execute successfully (status code exit code: 1).

Any ideas?

@twistedfall
Copy link
Owner

twistedfall commented Apr 4, 2020

Binding generator was completely rewritten in version 0.30, so that must be a regression. Have you tried building with --features buildtime-bindgen? You'll need libclang for that (e.g. from homebrew's llvm package).

@benmarten
Copy link
Author

Thanks, I could prob. help out too, if I'd knew how to run the last command "c++" "-O0" manually, or sth... Is there a staging dir? Thanks anyways...

@twistedfall
Copy link
Owner

Those commands are run in the general cargo out directory of the crate build, in your case it's /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/, but the hash is different for different crate version and feature sets.

@benmarten
Copy link
Author

Thanks, this is the output:

~/d/r/t/t/d/b/o/out (master|✔) $ c++ -O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -I /Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/src_cpp -I /Users/ben/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/opencv-0.33.1/headers/4 -I /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out -I . -Wall -Wextra -std=c++11 -Wno-deprecated-declarations -Wno-unused-variable -Wno-return-type-c-linkage -o /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.o -c /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp
In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp:2:
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:29: error: no member named '__cxx11' in
      namespace 'std'
template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
                       ~~~~~^
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:55: error: expected '(' for function-style
      cast or type construction
template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
                                                  ~~~~^
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:86: error: explicit template instantiation
      cannot have a definition; if this definition is meant to be an explicit specialization, add '<>' after the 'template' keyword
template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
~~~~~~~~                                                                             ^
        <>
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:86: error: no variable template matches
      specialization
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:103: error: expected ';' at end of
      declaration
template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
                                                                                                      ^
                                                                                                      ;
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:112:101: error: expected unqualified-id
template struct Result<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>;
                                                                                                    ^
<scratch space>:299:1: note: expanded from here
>
^
In file included from /Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core.cpp:2:
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:41: error: no member named '__cxx11' in
      namespace 'std'
template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
                                   ~~~~~^
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:67: error: expected '(' for function-style
      cast or type construction
template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
                                                              ~~~~^
/Users/ben/dev/rust/test2/target/debug/build/opencv-ff70dd177048d86f/out/core_types.hpp:129:91: error: expected a type
template struct Result<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*>;
                                                                                          ^
9 errors generated.

@benmarten
Copy link
Author

Looks like there are many errors. I can't seem to make sense of any specific one... Maybe its some wrong compiler version?

c++ --version 00:02:08
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@benmarten
Copy link
Author

benmarten commented Apr 4, 2020

Have you tried building with --features buildtime-bindgen?

Yes thanks, that actually made it work: features = ['opencv-4', 'buildtime-bindgen']
Both in my test and regular project!

@twistedfall
Copy link
Owner

Good to hear! I'm still going to try to update the default bindings so that they don't include this non-portable declaration

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

No branches or pull requests

2 participants