4

I am trying to setup a ROS-Node to communicate with other OS via ZeroMQ ( no choice here ).

I use ROS Kinetic Kame on ubuntu 16.04 LTS and catkin build (instead of catkin_make).

Luckily, there already is a Catkin-Package (a Wrapper) for ZeroMQ available, which builds just perfectly for me: https://github.com/ethz-asl/zeromq_catkin

But when I try to include the Cpp-Wrapper #include "zmq.hpp", which is also installed with the above package, the compiler cannot find the header file.

Any ideas on what I am doing wrong? Every hint is highly appreciated.


Additional Infos

My package.xml (for my own Node) has in it:

<build_depend>zeromq_catkin</build_depend>
<run_depend>zeromq_catkin</run_depend>

My CMakeLists.txt has in it:

find_package(zeromq_catkin REQUIRED)
include_directories(
    ${zeromq_catkin_INCLUDE_DIR}
)
target_link_libraries(my_node
    ${zeromq_catkin_LIBRARY}
)
user3666197
  • 1
  • 6
  • 50
  • 92
EliteTUM
  • 705
  • 2
  • 8
  • 21

1 Answers1

3

Small but important mistake, I typed INCLUDE_DIR but there was a S missing, it should be INCLUDE_DIRS in the CMakeLists.txt:

include_directories(
    ${zeromq_catkin_INCLUDE_DIRS}
)
user3666197
  • 1
  • 6
  • 50
  • 92
EliteTUM
  • 705
  • 2
  • 8
  • 21