Friday, August 22, 2008

Linking OpenCV with ffmpeg 20080706

The API of ffmpeg has been changed a lot , but the OpenCV package in Debian SID is not ready for the API changes. Another distribution like gentoo has already been fixed. Ubuntu is stilling using old version of ffmpeg , so it is also fine.

But Debian SID has been migrated to newer version of ffmpeg , and quite a lot of packages are depended on that version. Therefore, it is very trouble to rollback ffmpeg version to old one , which just to make OpenCV works.

In order to make Debian SID's OpenCV work with newer ffmpeg, I have submitted two patches for the issue. If you encounter similar problem like the one below, or OpenCV can not load AVI and image files. You probably need the patches:
Compiling an application and and then linking against libhighgui fails with:
/usr/lib/ undefined reference to `img_convert'
collect2: ld returned 1 exit status
The bug report and patches

No comments: