Problem rosmake piano of mit-ros-pkg
I am having problem rosmake the piano package in mit-ros-pkg. The following is the error:
fatal error: SFML/Audio.hpp: No such file or directory
I had tried rosdep install piano, and it gave an error that it couldn't find
E: Unable to locate package libsfml-audio1.5
E: Couldn't find any package by regex 'libsfml-audio1.5'
I tried edit the rosdep.yaml in piano folder to change to libsfml-audio1.6, however rosdep keeps saying:
Executing script below with cwd=/tmp
{{{
#!/bin/bash
#Packages ['libsfml-audio1.5', 'libsfml-dev']
sudo apt-get install libsfml-audio1.5 libsfml-dev
}}}
Does anyone know where do rosdep obtain the above info. It doesn't seem to refer to the rosdep.yaml in the package folder. I checked the mainfest.xml and only refer to libsfml as rosdep.
I tried manually
sudo apt-get install libsfml-audio1.6
The apt installed without problem. However, rosmake piano continues to give the error:
fatal error: SFML/Audio.hpp: No such file or directory
Hope to get help here to fix the above problem. I am on ros-electric on Ubuntu 11.10.
UPDATE:
@AzuriViolin Many thanks for the ans. I do not know why I couldn't reply (comment) directly in your ans.
Indeed, I assumed the only failure was on libsfml-audio but rosdep didn't install libsfml-dev. So, I should:
sudo apt-get install libsfml-dev libsfml-audio1.6
The libsfml-dev provides the header files (developmental files) and so I got through the error of missing Audio.hpp. As you encountered, the next error is the missing linkage to sfml-system in CMakeLists.txt. It was resolved by:
roscd piano
gedit CMakeLists.txt
scroll to the bottom, and add sfml-system (few lines repeated):
rosbuild_add_executable(testsound src/exaudio.cpp)
target_link_libraries(testsound sfml-audio sfml-system)