ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to use/link meson build Gstreamer in ROS Package?

asked 2019-12-04 23:38:49 -0600

JeyP4 gravatar image

updated 2019-12-30 11:02:03 -0600

E.g To use Gstreamer, I meson built new version with following commands.

meson --prefix=/media/jai/Entertainment/Software/gstreamer/gst-build-installed --reconfigure build/  
ninja -C build/  
meson install -C build/

Now I have this directory image description

And it has pkg-configs also image description

What changes I have to make in Cmakelist.txt & package.xml to link this Gstreamer?

edit retag flag offensive close merge delete

Comments

You can take a look here.

Choco93 gravatar image Choco93  ( 2019-12-05 07:25:42 -0600 )edit

@Choco93, Thanks

JeyP4 gravatar image JeyP4  ( 2019-12-26 04:32:41 -0600 )edit

I have tried below changes. But no luck till now.

Cmakelist.txt

SET(ENV{PKG_CONFIG_PATH} "/media/jai/Entertainment/Software/gstreamer/gst-build-installed/lib/x86_64-linux-gnu/pkgconfig" $ENV{PKG_CONFIG_PATH})

find_package(PkgConfig REQUIRED)
pkg_check_modules(GST1.0 REQUIRED gstreamer-1.0)
catkin_package(CATKIN_DEPENDS roscpp
    DEPENDS Boost GST1.0
    INCLUDE_DIRS include
    LIBRARIES mypkg)
include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${GST1.0_INCLUDE_DIRS})
target_link_libraries(mypkg ${catkin_LIBRARIES} ${GST1.0_LIBRARIES} ${Boost_LIBRARIES})

package.xml

<build_depend>pkg-config</build_depend>

After all above modification, package is still using stock gstreamer instead of new one. I doubt it might be able to access include files but not LIBS.

JeyP4 gravatar image JeyP4  ( 2019-12-30 11:08:21 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-01 10:37:18 -0600

JeyP4 gravatar image

updated 2020-01-01 10:37:50 -0600

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-12-04 23:38:49 -0600

Seen: 773 times

Last updated: Jan 01 '20