Robotics StackExchange | Archived questions

Trying to setup ROS microphone capture with audio_common package. Catkin wont make.

This is the repo i am using https://github.com/ros-drivers/audio_common I get this error after setting up the repo in the catkin src folder.

-- Checking for module 'gstreamer-1.0' -- No package 'gstreamer-1.0' found CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (pkgcheckmodulesinternal) audiocommon/audiocapture/CMakeLists.txt:8 (pkgcheckmodules)

-- Configuring incomplete, errors occurred! See also "/home/ubuntu/catkinws/build/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/catkinws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

I tried installing gstreamer-1.0 just to be told this it is already installed. When I try to purge gstreamer I get told it does not exist. I am stuck with this one any help would be greatly appreciated.


Error after installing libgstreamer1.0-dev and catkin making again.

Building CXX object audiocommon/audioplay/CMakeFiles/audioplay.dir/src/audioplay.cpp.o /home/ubuntu/catkinws/src/audiocommon/audioplay/src/audioplay.cpp:2:10: fatal error: gst/app/gstappsrc.h: No such file or directory 2 | #include | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [audiocommon/audioplay/CMakeFiles/audioplay.dir/build.make:63: audiocommon/audioplay/CMakeFiles/audioplay.dir/src/audioplay.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1983: audiocommon/audioplay/CMakeFiles/audioplay.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/ubuntu/catkinws/src/audiocommon/audiocapture/src/audiocapture.cpp:3:10: fatal error: gst/app/gstappsink.h: No such file or directory 3 | #include | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [audiocommon/audiocapture/CMakeFiles/audiocapture.dir/build.make:63: audiocommon/audiocapture/CMakeFiles/audiocapture.dir/src/audiocapture.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1937: audiocommon/audiocapture/CMakeFiles/audiocapture.dir/all] Error 2 [ 97%] Built target soundplaygeneratemessageseus make: *** [Makefile:141: all] Error 2 Invoking "make -j4 -l4" failed

Asked by matthewfwork on 2021-07-19 12:01:39 UTC

Comments

Answers

You need to install the gstreamer development package using apt-get. On Ubuntu, the apt package is usually named libgstreamer1.0-dev

Yes, it'd be easier to figure out if the naming was consistent.

Asked by Mike Scheutzow on 2021-07-19 16:48:47 UTC

Comments

so the install worked and catkin make managed to make it to 97% then this error occurred. See above for revised post

Asked by matthewfwork on 2021-07-20 09:40:24 UTC

That's a different apt package. You should be able to google for it.

Asked by Mike Scheutzow on 2021-07-20 09:56:48 UTC

you mean gstappsink? im sorry if i am asking the obvious i am new to all this

Asked by matthewfwork on 2021-07-20 12:08:01 UTC

You can often get good results by putting the error message into google. Alternatively, have you tried googling: ubuntu package gstappsink.h ?

Asked by Mike Scheutzow on 2021-07-20 20:40:45 UTC