Installing Leap_client package - leap.h 'No such file or directory'

asked 2020-10-20 14:44:44 -0600

Qaoud gravatar image

Hi guys, I have a problem installing a package. I already installed the Leap Motion Driver package and it works perfectly. but when I try to install the Leap Motion Client after I cloned it into the src folder, I get the following error:

I run the following command to install the package inside the workspace:

catkin_make --pkg leap_client

The error I get:

Base path: /home/qaoud/sofar_ws
Source space: /home/qaoud/sofar_ws/src
Build space: /home/qaoud/sofar_ws/build
Devel space: /home/qaoud/sofar_ws/devel
Install space: /home/qaoud/sofar_ws/install
#### Running command: "make cmake_check_build_system" in "/home/qaoud/sofar_ws/build"
#### Running command: "make -j4 -l4" in "/home/qaoud/sofar_ws/build/leap_client"
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target geometry_msgs_generate_messages_cpp
[  0%] Built target _leap_client_generate_messages_check_deps_FingerInfo
[  0%] Built target _leap_client_generate_messages_check_deps_HandInfo
[  0%] Built target _leap_client_generate_messages_check_deps_HandInfoList
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target geometry_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_lisp
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target geometry_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_eus
[ 12%] Built target leap_client_generate_messages_cpp
[ 28%] Built target leap_client_generate_messages_py
[ 40%] Built target leap_client_generate_messages_nodejs
[ 52%] Built target leap_client_generate_messages_lisp
[ 68%] Built target leap_client_generate_messages_eus
[ 68%] Built target leap_client_gencpp
[ 68%] Built target leap_client_generate_messages
[ 72%] Building CXX object leap_client/CMakeFiles/leap_ros_listener.dir/src/LeapROSListener.cpp.o
[ 80%] Built target static_twist_controller
In file included from /home/qaoud/sofar_ws/src/leap_client/src/LeapROSListener.cpp:1:0:
/home/qaoud/sofar_ws/src/leap_client/include/LeapROSListener.h:1:18: fatal error: Leap.h: No such file or directory
compilation terminated.
leap_client/CMakeFiles/leap_ros_listener.dir/build.make:62: recipe for target 
'leap_client/CMakeFiles/leap_ros_listener.dir/src/LeapROSListener.cpp.o' failed
make[2]: *** [leap_client/CMakeFiles/leap_ros_listener.dir/src/LeapROSListener.cpp.o] Error 1
[ 88%] Built target leap_viz
CMakeFiles/Makefile2:595: recipe for target 'leap_client/CMakeFiles/leap_ros_listener.dir/all' failed
make[1]: *** [leap_client/CMakeFiles/leap_ros_listener.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

knowing that I have sourced the workspace folder as well as the LeapSDK.

Can anyone suggest something to do to solve this problem?

Have a great day.

edit retag flag offensive close merge delete