[Slackbuilds-users] Updates - 20181215.1 (opencv)

Christoph Willing chris.willing at linux.com
Sun Dec 16 22:00:24 UTC 2018


On 17/12/18 2:51 am, Frédéric Falsetti wrote:
> On Sun, 16 Dec 2018 07:16:27 +1000
> Christoph Willing <chris.willing at linux.com> wrote:
> 
>> On 15/12/18 11:56 pm, Willy Sudiarto Raharjo wrote:
>>
>>> libraries/opencv: Updated for version 4.0.0
>>>
>>
>> I'm sorry but there's a mistake in this update to opencv-4.0.0. I've
>> pushed a correction but in the meantime it can be fixed by changing the
>> line:
>>     if [ -d /usr/etc/qt5 ]; then
>> to
>>     if [ -d /usr/include/qt5 ]; then
>>
>> chris
>>
> Hi,
> ffmpeg does not compile with opencv 4.0.0
> 
> ffmpeg -pattern_type glob -r 3 -i "*.JPG" -vf  "crop=256:170:0:0"  -c:v libx264 -pix_fmt yuv420p mf2aou14th.mp4
> ffmpeg: error while loading shared libraries: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
> 
> trying to rebuild ffmpeg I get:
> ...
> ffmpeg-3.2.4/CONTRIBUTING.md
> patching file configure
> patching file libavcodec/libopenjpegdec.c
> patching file libavcodec/libopenjpegenc.c
> ERROR: opencv not found using pkg-config
> 
> ln -s libopencv_imgproc.so.4.0.0 libopencv_imgproc.so.3.4
> ln -s libopencv_core.so.4.0.0 libopencv_core.so.3.4
> and voila
> 

Due to circular (optional) dependency between opencv & ffmpeg, I choose
to use only the "opencv depends on ffmpeg" case. Therefore I didn't test
the "ffmpeg depends on opencv" case when upgrading opencv to version
4.0.0. I guess ffmpeg devs will sort out that problem eventually.

However in the meantime you could build ffmpeg with opencv-legacy
instead to avoid opencv-4.0.0.

chris


More information about the SlackBuilds-users mailing list