Ask Your Question
1

ld: undefined reference to avformat_network_init@LIBAVFORMAT_53

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

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/libopencv_highgui.so: undefined reference to `avformat_new_stream@LIBAVFORMAT_53'
/opt/ros/fuerte/lib/libopencv_highgui.so: 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
2

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

leeq gravatar image

I fixed the problem by upgrading my stock libavformat to the latest one using Jon's PPA: https://launchpad.net/~jon-severinsson/+archive/ffmpeg

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
-1

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

leeq gravatar image

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

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: http://www.ros.org/wiki/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,788 times

Last updated: Aug 14 '12