You can add a link_directories(/usr/local/hdf5/lib) entry to the package's CMakeLists.txt.
Depending on the library you look for, there might be a nice CMake way (instead of hardcoding): CMake libraries.
I'm not aware of a nice ROS way similar to rosdep.
Assuming that you're using gcc, try this:
LIBRARY_PATH=/usr/local/hdf5/lib rosmake pcl
If there are shared libraries in there, you'll also need to add that directory to LD_LIBRARY_PATH at runtime to execute programs that link against hdf5.
Asked: 2011-07-10 13:54:02 -0500
Seen: 379 times
Last updated: Jul 12 '11
how to specify gcc options while building ROS programs
Preserving changes to standard ROS packages
Compiling [or not] a package before pushing to repo
Including header files in ros build system
[fuerte] build error on rxtools when compiling from source
Subscribing to topic throw compilation error
pcl-ros compilation issue: undefined reference to 'boost::system::generic_category()'
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.