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

fatal error: ros/ros.h: No such file or directory #2

Open
ladrians opened this issue Sep 6, 2017 · 0 comments
Open

fatal error: ros/ros.h: No such file or directory #2

ladrians opened this issue Sep 6, 2017 · 0 comments

Comments

@ladrians
Copy link

ladrians commented Sep 6, 2017

Hello, I get the following error when trying to compile pixy_node

[ 37%] Building CXX object pixy_ros/CMakeFiles/pixy_node.dir/src/pixy_node.cpp.o
/home/pi/catkin_ws/src/pixy_ros/src/pixy_node.cpp:21:21: fatal error: ros/ros.h: No such file or directory
compilation terminated.
[ 38%] Built target pixy_node_generate_messages_py
pixy_ros/CMakeFiles/pixy_node.dir/build.make:62: recipe for target 'pixy_ros/CMakeFiles/pixy_node.dir/src/pixy_node.cpp.o' failed
make[2]: *** [pixy_ros/CMakeFiles/pixy_node.dir/src/pixy_node.cpp.o] Error 1
CMakeFiles/Makefile2:1715: recipe for target 'pixy_ros/CMakeFiles/pixy_node.dir/all' failed
make[1]: *** [pixy_ros/CMakeFiles/pixy_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 38%] Built target pixy_node_generate_messages_nodejs
[ 39%] Built target pixy_node_generate_messages_lisp
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j3 -l3" failed

I modified the CMakeLists.txt, adding the entry ${catkin_INCLUDE_DIRS} to the include_directories directive, from

include_directories(include libpixyusb/include libpixyusb/common ${LIBUSB_1_INCLUDE_DIRS} )

to the following and worked

include_directories(include libpixyusb/include libpixyusb/common ${LIBUSB_1_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})

thanks,

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