ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I was able to solve the problem by simply adding this line to CMakeLists.txt above the find_package:

FIND_LIBRARY(HDF5_LIBRARY hdf5 /usr/local/hdf5/lib/)

Also, it's better to install hdf5 by compiling the source code. Initially I tried doing it from the repository but it said that the library was already installed even though it wasn't.

I was able to solve the problem by simply adding this line to CMakeLists.txt above the find_package:

FIND_LIBRARY(HDF5_LIBRARY hdf5 /usr/local/hdf5/lib/)

and then after creating the executable:

target_link_libraries(test_node ${CATKIN_LIBRARIES} ${HDF5_LIBRARY}})

Also, it's better to install hdf5 by compiling the source code. Initially I tried doing it from the repository but it said that the library was already installed even though it wasn't.