Robotics StackExchange | Archived questions

problem adding library

I have a header meanshift.h and main file for it meanshift.cpp. I want to add it inside a ros node test.cpp. I tried below code but its not working:

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  /usr/include/CL/
  include/devils_eye_pkg/
)

add_library(mean_shift src/mean_shift.cpp)
target_link_libraries(mean_shift ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

What is the problem in this code? How should i do this ?

Asked by dinesh on 2020-01-06 01:56:02 UTC

Comments

but its not working

as always: just stating "it's not working" is not going to be sufficient for others to help you.

You may want to add a little more detail to your post (such as a verbatim copy of the error message(s)).

Asked by gvdhoorn on 2020-01-06 03:15:25 UTC

Answers