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

YarpRobotLoggerDevice building error related to opencv #553

Closed
HosameldinMohamed opened this issue Aug 1, 2022 · 1 comment · Fixed by #554
Closed

YarpRobotLoggerDevice building error related to opencv #553

HosameldinMohamed opened this issue Aug 1, 2022 · 1 comment · Fixed by #554
Assignees
Labels
bug Something isn't working

Comments

@HosameldinMohamed
Copy link

Installing with enabling the YarpRobotLoggerDevice gives the following error:

In file included from /home/hosameldin/code/robotology-superbuild/src/bipedal-locomotion-framework/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp:24:
/home/hosameldin/code/robotology-superbuild/src/bipedal-locomotion-framework/devices/YarpRobotLoggerDevice/include/BipedalLocomotion/YarpRobotLoggerDevice.h:17:10: fatal error: opencv2/opencv.hpp: No such file or directory
   17 | #include <opencv2/opencv.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [devices/YarpRobotLoggerDevice/CMakeFiles/YarpRobotLoggerDevice.dir/build.make:76: devices/YarpRobotLoggerDevice/CMakeFiles/YarpRobotLoggerDevice.dir/src/YarpRobotLoggerDevice.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1727: devices/YarpRobotLoggerDevice/CMakeFiles/YarpRobotLoggerDevice.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I was on the release 0.7.0 then switched to @prashanthr05 's branch which is based on current master.

According to @prashanthr05, opencv is linked properly only if we set FRAMEWORK_USE_PCL to true. Actually when setting the option to true (and installing the dependency), the installation goes without error!

@GiulioRomualdi GiulioRomualdi self-assigned this Aug 2, 2022
@GiulioRomualdi GiulioRomualdi added the bug Something isn't working label Aug 2, 2022
@GiulioRomualdi
Copy link
Member

The CMake machinery should prevent you from building the logger without opencv. Thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants