Hacks4ROS / h4r_ev3_ctrl

ROS Node for managing EV3 with ROS Control
GNU General Public License v3.0
21 stars 12 forks source link

Compiling error ev3dev.h is missing - remove dependency of ev3dev cpp library #1

Closed RodBelaFarin closed 8 years ago

RodBelaFarin commented 8 years ago

Hi, I am just trying your EV3 package. I set may EV3 up like mentioned in your instructions, YOCTO runs fine.

But compiling the package on my computer fails due to an error. ev3dev.h is missing.

In file included from /home/ros/ev3_ws/src/h4r_ev3_ctrl/h4r_ev3_manager/src/h4r_ev3_manager/Ev3HardwareInterface.cpp:23:0:
/home/ros/ev3_ws/src/h4r_ev3_ctrl/h4r_ev3_manager/src/h4r_ev3_manager/../h4r_ev3_manager/Ev3HardwareInterface.h:28:20: fatal error: ev3dev.h: No such file or directory
 #include <ev3dev.h>
                    ^
compilation terminated.
In file included from /home/ros/ev3_ws/src/h4r_ev3_ctrl/h4r_ev3_manager/src/h4r_ev3_manager/ev3_ctrl_node.cpp:29:0:
/home/ros/ev3_ws/src/h4r_ev3_ctrl/h4r_ev3_manager/src/h4r_ev3_manager/Ev3HardwareInterface.h:28:20: fatal error: ev3dev.h: No such file or directory
 #include <ev3dev.h>
                ^

compilation terminated.

cyborg-x1 commented 8 years ago

Ahh, yes you currently still need the ev3dev library for cpp development to compile, I need to get rid of that dependency .. actually not much should be used from it any more ... I try to remove that, maybe on the weekend - meanwhile you can get the library from the ev3dev project and compile it on your own for your pc. It should compile without needing anything additional, just reads and writes to special sys-directories of the EV3dev drivers.

RodBelaFarin commented 8 years ago

Can you maybe send me a URL? I can't really find it. :D

cyborg-x1 commented 8 years ago

Here you go: https://github.com/ev3dev/ev3dev-lang/tree/master/cpp