ros_robotics_projects icon indicating copy to clipboard operation
ros_robotics_projects copied to clipboard

Chapter 11 Leap client package catkin_make failed fatal error: Leap.h: No such file or directory #include "Leap.h"

Open stevensu1838 opened this issue 6 years ago • 0 comments

Hi Sir,

ROS indigo in Ubuntu 14.04 machine Python 2.7.6

I firstly run the following two lines to set the environment variables:

$ echo "export LEAPSDK=~/home/LeapSDK" >> ~/.bashrc 
$ source ~/.bashrc

And then I run $ gedit ~/.bashrc these following lines show up in the end of the file.

source /opt/ros/indigo/setup.bash source ~/catkin_ws/devel/setup.bash export PYTHONPATH=/opt/ros/indigo/lib/python2.7/dist-packages:/home/ysu66/LeapSDK/lib:/home/ysu66/LeapSDK/lib/x64:/home/ysu66/LeapSDK/lib:/home/ysu66/LeapSDK/lib/x64:/home/ysu66/LeapSDK/lib:/home/ysu66/LeapSDK/lib/x64:/home/ysu66/LeapSDK/lib:/home/ysu66/LeapSDK/lib/x64 export LEAPSDK=/home/ysu66/home/LeapSDK:/home/ysu66/LeapSDK

Secondly, I do

1. Source the ros setup

    source /opt/ros/kinetic/setup.bash

2. Create a catkin workspace:(All ready created and I skipped this step)

    mkdir -p ~/catkin_ws/src
    cd ~/catkin_ws/src
    catkin_init_workspace

2. Clone the rerpository:

    cd ~/catkin_ws/src
    git clone https://github.com/juancamilog/leap_client

3. Build the packages inside the workspace

    cd ~/catkin_ws
    catkin_make

[ 88%] [ 92%] [ 96%] Building CXX object leap_client/CMakeFiles/leap_viz.dir/src/leap_viz.cpp.o Building CXX object leap_client/CMakeFiles/static_twist_controller.dir/src/static_twist_controller.cpp.o Building CXX object leap_client/CMakeFiles/leap_ros_listener.dir/src/LeapROSListener.cpp.o In file included from /home/ysu66/catkin_ws/src/leap_client/src/LeapROSListener.cpp:1:0: /home/ysu66/catkin_ws/src/leap_client/include/LeapROSListener.h:1:18: fatal error: Leap.h: No such file or directory #include "Leap.h" ^ After catkin make, I get the following error: compilation terminated. make[2]: *** [leap_client/CMakeFiles/leap_ros_listener.dir/src/LeapROSListener.cpp.o] Error 1 make[1]: *** [leap_client/CMakeFiles/leap_ros_listener.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX executable /home/ysu66/catkin_ws/devel/lib/file_server/file_server [ 96%] Built target file_server Linking CXX executable /home/ysu66/catkin_ws/devel/lib/leap_client/static_twist_controller [ 96%] Built target static_twist_controller Linking CXX executable /home/ysu66/catkin_ws/devel/lib/leap_client/leap_viz [ 96%] Built target leap_viz make: *** [all] Error 2 Invoking "make -j8 -l8" failed

Can you please kindly help me out?

Cheers, Steven

stevensu1838 avatar May 07 '18 04:05 stevensu1838