[Slackbuilds-users] ffmpeg not building

Christoph Willing chris.willing at iinet.net.au
Tue May 1 06:22:17 UTC 2018

On 01/05/18 11:11, Christoph Willing wrote:
> On 01/05/18 10:07, JCA wrote:
> [snip]
>> CClibavfilter/vf_libopencv.o
>> In file included from /usr/include/opencv2/core/types_c.h:59:0,
>>                  from /usr/include/opencv2/core/core_c.h:48,
>>                  from libavfilter/vf_libopencv.c:28:
>> /usr/include/opencv2/core/cvdef.h:485:1: error: unknown type name
>> 'namespace'
>>  namespace cv {
>>  ^
>> /usr/include/opencv2/core/cvdef.h:485:14: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before '{' token
>>  namespace cv {
>>               ^
>> common.mak:60: recipe for target 'libavfilter/vf_libopencv.o' failed
>> make: *** [libavfilter/vf_libopencv.o] Error 1
> This has been raised previously and a fix suggested. I was going to
> update the SlackBuild to apply the appropriate patch but have since
> forgotten about it. Sorry about that - I will definitely do it this week.
> In the meantime the fix (found by Ythogtha <yth at ythogtha.org> on this
> list) is at:
>     https://github.com/opencv/opencv/issues/10963
I've pushed the updated version so it will be part of the next release,
probably at the weekend. Until then, it's available at:


I used the resulting patched opencv to do a test build of ffmpeg (with
OPENCV=yes) and it all seemed to go OK:

CC      libavfilter/vf_il.o
CC      libavfilter/vf_interlace.o
CC      libavfilter/vf_kerndeint.o
CC      libavfilter/vf_lenscorrection.o
CC      libavfilter/vf_libopencv.o
CC      libavfilter/vf_lut.o
CC      libavfilter/vf_lut2.o
CC      libavfilter/vf_lut3d.o


More information about the SlackBuilds-users mailing list