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

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

Open
stevensu1838 opened this issue May 7, 2018 · 0 comments

Comments

@stevensu1838
Copy link

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

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

1 participant