apollo-platform icon indicating copy to clipboard operation
apollo-platform copied to clipboard

pb_msg_example CMakeLists.txt

Open jilinzhou opened this issue 7 years ago • 1 comments

In apollo-platform/ros/pb_msgs_example/CMakeLists.txt, there is a line:

include_directories(${CATKIN_INCLUDE_DIRS})

I had to change it into

include_directories(${catkin_INCLUDE_DIRS})

to make build work. Otherwise, the path to dependant header files is not added to the compile command line (-I flag) for this package.

jilinzhou avatar Feb 16 '18 02:02 jilinzhou

I've met this problem : fatal error: ros/ros.h: No such file or directory when i use catkin_make to compile pb_msg_example. It works for me, thank you!

In apollo-platform/ros/pb_msgs_example/CMakeLists.txt, there is a line:

include_directories(${CATKIN_INCLUDE_DIRS})

I had to change it into

include_directories(${catkin_INCLUDE_DIRS})

to make build work. Otherwise, the path to dependant header files is not added to the compile command line (-I flag) for this package.

MccAlfh avatar Nov 14 '22 08:11 MccAlfh