Why can't my audio_common(audio_capture and audio_play) compile

asked 2016-09-24 11:17:31 -0600

lolz733 gravatar image

updated 2016-09-25 02:23:11 -0600

For some reason, the file which i source from : git https://github.com/ros-drivers/audio_... . The common_audio file, i could not compile it. What i did was to firstly install the audio_common package for ros-indigo. Then i updated my rosdep. FInally then i git clone it to my work space's src and then i catkin_make it. Despite going through the installation of audio_common , it still says that im missing gstreamer-1.0 package.

As, currently the project that im doing now require me to use pocketsphinx. i actually install pocketsphinx and gstreamer 0.1 together : sudo apt-get install gstreamer0.10-pocketsphinx. Which is the problem here. Isn't gstreamer 1.0 and gstream 0.1 the same thing? From what i have found online it seems to say that gstreamer 1.0 is a older version of gstreamer 0.1.

Is there anyway in which i will be able to solve the missing package of gstreamer1.0? and do i actually need the audio_capture for me to be using the sound_play?

the main reason i need to compile the audio_common is due to the fact that i need to try out the sound_play program inside the audio_common file. I can't compile with the audio_capture file and the audio_play file.

Now, i have created a new package and deleted the the common_audio as i realised my errors but problem now is this =.=

My new package compilation:

Scanning dependencies of target sound_test_node
[100%] Building CXX object program/CMakeFiles/sound_test_node.dir/src/sound_test.cpp.o
In file included from /home/low/catkin_ws/src/program/src/sound_test.cpp:2:0:
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h: In member function ‘void sound_play::SoundClient::sendMsg(int, int, const string&, const string&, const float&)’:
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h:388:11: error: ‘sound_play::SoundRequest’ has no member named ‘volume’
       msg.volume = 0;
           ^
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h:390:11: error: ‘sound_play::SoundRequest’ has no member named ‘volume’
       msg.volume = 1.0f;
           ^
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h:392:11: error: ‘sound_play::SoundRequest’ has no member named ‘volume’
       msg.volume = vol;
           ^
make[2]: *** [program/CMakeFiles/sound_test_node.dir/src/sound_test.cpp.o] Error 1
make[1]: *** [program/CMakeFiles/sound_test_node.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
edit retag flag offensive close merge delete

Comments

Please format any code and / or console copy/pastes with the Preformatted text button. It's the one with 101010 on it. Select the text, then press the button. Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2016-09-24 12:47:53 -0600 )edit

If you've installed audio_common from apt-get, why are you trying to build it from source?

ahendrix gravatar image ahendrix  ( 2016-09-24 14:23:40 -0600 )edit

I need a example for making a speech synthesis using sound play but all I can find is the example from audio common's sound_play file

lolz733 gravatar image lolz733  ( 2016-09-24 19:39:45 -0600 )edit

That doesn't answer my question. You don't need to build the package from source if you've already installed it through apt.

ahendrix gravatar image ahendrix  ( 2016-09-24 21:06:47 -0600 )edit

i have tried to make a package to make use of the sound_play. Thanks for your help! seems like i was on the wrong tracks. Sorry i am new at ros. But now i am faced with another problem. When i compile my package it says that inside the sound_play.h does not have a member called volume

lolz733 gravatar image lolz733  ( 2016-09-25 02:16:26 -0600 )edit