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

OPENCV build issue #2974

Closed
mikeNike9 opened this issue Dec 27, 2018 · 3 comments
Closed

OPENCV build issue #2974

mikeNike9 opened this issue Dec 27, 2018 · 3 comments
Assignees
Labels

Comments

@mikeNike9
Copy link

mikeNike9 commented Dec 27, 2018

I am trying to build the opencv wrapper and i am receiving this,

Scanning dependencies of target rs-grabcuts
[ 50%] Building CXX object CMakeFiles/rs-grabcuts.dir/rs-grabcuts.cpp.o
/home/mike/librealsense/wrappers/opencv/grabcuts/rs-grabcuts.cpp: In function ‘int main(int, char**)’:
/home/mike/librealsense/wrappers/opencv/grabcuts/rs-grabcuts.cpp:39:63: error: ‘ThresholdType’ has not been declared
auto create_mask_from_depth = [&](Mat& depth, int thresh, ThresholdType type) //#ThresholdTypes type);
^
CMakeFiles/rs-grabcuts.dir/build.make:62: recipe for target 'CMakeFiles/rs-grabcuts.dir/rs-grabcuts.cpp.o' failed
make[2]: *** [CMakeFiles/rs-grabcuts.dir/rs-grabcuts.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rs-grabcuts.dir/all' failed
make[1]: *** [CMakeFiles/rs-grabcuts.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@dorodnic
Copy link
Contributor

The examples are tested with OpenCV 3.4 - opencv-samples-for-intel-realsense-cameras
Please make sure you have the right version of OpenCV installed.
We also provide CV examples inside the Windows installer with every release.

@ajaymdesai
Copy link

OpenCV 4.0 remove a-lot of C Bindings. I ran into compile issues after brew upgrade of opencv to 4.0 since some api's are gone from C.

@dorodnic
Copy link
Contributor

This should be resolved via #3196 in 2.18.1.
Please update

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

No branches or pull requests

4 participants