slightech / MYNT-EYE-ROS-Wrapper

ROS wrapper for the MYNT EYE SDK
69 stars 21 forks source link

fatal error : camera.h no such file or directory #22

Open WaldenLeefx opened 4 years ago

WaldenLeefx commented 4 years ago

when running catkin_make, I get:

-- ~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - mynteye_ros_wrapper -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'mynteye_ros_wrapper' -- ==> add_subdirectory(MYNT-EYE-ROS-Wrapper) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Found OpenCV: /usr/local (found version "3.4.1") -- Configuring done CMake Warning (dev) at MYNT-EYE-ROS-Wrapper/CMakeLists.txt:61 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "mynteye_ros_wrapper_gencfg" of target "MYNTWrapper" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at MYNT-EYE-ROS-Wrapper/CMakeLists.txt:70 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "mynteye_ros_wrapper_gencfg" of target "mynteye_wrapper_node" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /home/lee/catkin_ws/build

Running command: "make -j6 -l6" in "/home/lee/catkin_ws/build"

Scanning dependencies of target MYNTWrapper [ 25%] Building CXX object MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o /home/lee/catkin_ws/src/MYNT-EYE-ROS-Wrapper/src/mynteye_ros_wrapper_nodelet.cpp:20:10: fatal error: camera.h: 没有那个文件或目录

include "camera.h"

      ^~~~~~~~~~

compilation terminated. MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/build.make:62: recipe for target 'MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o' failed make[2]: [MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/src/mynteye_ros_wrapper_nodelet.cpp.o] Error 1 CMakeFiles/Makefile2:526: recipe for target 'MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all' failed make[1]: [MYNT-EYE-ROS-Wrapper/CMakeFiles/MYNTWrapper.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j6 -l6" failed

and I have tried the solution mentioned in issues #17 & raulmur/ORB_SLAM2#535, who can help?

awesomebytes commented 4 years ago

I'm getting the same problem on ROS melodic.

Edit: solved it by following the SDK instructions instead. They say to do make ros, not using this package.