Linking dependencies on OSX
Hey,
I have been attempting to get ROS to work on OSX and am stuck when I try to link an executable with a dependency. I tried linking against yaml-cpp and tinyxml, both installed and linked according to homebrew, but I get the following message:
ld: library not found for -lyaml-cpp
Executing :
pkg-config --cflags --libs yaml-cpp
Gives me :
-I/usr/local/Cellar/yaml-cpp/0.5.0/include -L/usr/local/Cellar/yaml-cpp/0.5.0/lib -lyaml-cpp
Doesn't that mean rosmake should be able to find it? For the record, I am linking in my CMakeLists.txt like this:
target_link_libraries(Controller yaml-cpp)
What am I doing wrong?