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

ld: undefined reference to avformat_network_init@LIBAVFORMAT_53

asked 2012-05-17 23:25:24 -0500

sciarp gravatar image

Hi there!

I wrote a node that converts webcam images to ROS messages, I am using opencv but the linker yells:

/opt/ros/fuerte/lib/ undefined reference to `avformat_new_stream@LIBAVFORMAT_53'
/opt/ros/fuerte/lib/ undefined reference to `avformat_network_init@LIBAVFORMAT_53'

How do I overcome this problem? Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-08-14 06:03:30 -0500

leeq gravatar image

I fixed the problem by upgrading my stock libavformat to the latest one using Jon's PPA:

Basically av_new_stream() was renamed to avformat_new_stream(). ffmpeg is quite famous for frequently changing API names..which causes lots of overhead for developers.

edit flag offensive delete link more

answered 2012-08-14 05:46:14 -0500

leeq gravatar image

updated 2012-08-14 05:48:54 -0500

Sorry that it's not an answer.

Does anyone know the answer to this? I'm stuck with this exact problem as well. Please??

I basically copy and pasted the example code from:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-05-17 23:25:24 -0500

Seen: 2,247 times

Last updated: Aug 14 '12