opencv-rust: Build fail on Ubuntu 18.04 x86_64

With gcc 7

cargo:warning=At global scope:
cargo:warning=cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
exit code: 0
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/usr/local/include/opencv" "-I" "/usr/local/include" "-I" "." "-I" "/home/norru/Projects/3rdParty/opencv-rust/target/debug/build/opencv-2494b6b918094f8f/out" "-Wall" "-Wextra" "-std=c++0x" "-Wno-deprecated-declarations" "-Wno-class-memaccess" "-fno-strict-aliasing" "-o" "/home/norru/Projects/3rdParty/opencv-rust/target/debug/build/opencv-2494b6b918094f8f/out/PtrOfFunction.type.o" "-c" "/home/norru/Projects/3rdParty/opencv-rust/target/debug/build/opencv-2494b6b918094f8f/out/PtrOfFunction.type.cpp"


error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/usr/local/include/opencv" "-I" "/usr/local/include" "-I" "." "-I" "/home/norru/Projects/3rdParty/opencv-rust/target/debug/build/opencv-2494b6b918094f8f/out" "-Wall" "-Wextra" "-std=c++0x" "-Wno-deprecated-declarations" "-Wno-class-memaccess" "-fno-strict-aliasing" "-o" "/home/norru/Projects/3rdParty/opencv-rust/target/debug/build/opencv-2494b6b918094f8f/out/dnn.o" "-c" "/home/norru/Projects/3rdParty/opencv-rust/target/debug/build/opencv-2494b6b918094f8f/out/dnn.cpp" with args "c++" did not execute successfully (status code exit code: 1).

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

Currently it uses system opencv, yes. I’m testing on opencv-3.4.6, I’d expect anything in 3.x to work, but 2.x is a different story. I’m not targeting this in master anymore.