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

Compilation broken with OpenCV 3.2.0 provided by Ubuntu 18.04 and Debian Buster (current Stable) #138

Closed
traversaro opened this issue May 4, 2021 · 2 comments

Comments

@traversaro
Copy link
Member

traversaro commented May 4, 2021

Hi @arrenglover @lunagava,
the PR #136 broke compilation against the OpenCV version in Ubuntu 18.04, that fails with:

[ 51%] Building CXX object lib/CMakeFiles/event-driven.dir/src/vIPT.cpp.o
/home/runner/work/robotology-superbuild/robotology-superbuild/src/event-driven/lib/src/vIPT.cpp: In member function ‘void ev::vIPT::printValidCalibrationValues()’:
/home/runner/work/robotology-superbuild/robotology-superbuild/src/event-driven/lib/src/vIPT.cpp:365:25: error: ‘cv::Size {aka class cv::Size_<int>}’ has no member named ‘empty’
         if(!size_cam[i].empty()) {
                         ^~~~~
lib/CMakeFiles/event-driven.dir/build.make:257: recipe for target 'lib/CMakeFiles/event-driven.dir/src/vIPT.cpp.o' failed
make[5]: *** [lib/CMakeFiles/event-driven.dir/src/vIPT.cpp.o] Error 1

See https://github.com/robotology/robotology-superbuild/runs/2497106466?check_suite_focus=true .

The reason is that cv::Size_::empty is not available in the ancient version of OpenCV intalled via apt for Ubuntu 18.04 and Debian Buster. I think we have two alternatives:

fyi @ChiaraBartolozzi

@arrenglover
Copy link
Collaborator

thanks @traversaro. fixed with #139

@traversaro
Copy link
Member Author

Thanks @arrenglover !

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