[FFmpeg-devel] [PATCH] configure: disallow OpenCL with shared libs

James Almer jamrial at gmail.com
Thu Aug 28 05:14:48 CEST 2014


On 27/08/14 11:53 PM, Wei Gao wrote:
> 2014-08-13 9:45 GMT+08:00 Timothy Gu <timothygu99 at gmail.com>:
> 
>> On Aug 12, 2014 6:43 PM, "highgod0401" <highgod0401 at gmail.com> wrote:
>>
>>> Hi
>>>
>>> Warning is OK for me.
>>
>> Do you plan to change the API?
>>
> 
> Hi
> 
> Sorry for the late reply, could you tell me more details?  How to change
> it? I will change it according your suggestion.
> 
> Thanks
> Best regards

It was more a question to know if there were any plans to change the API in 
the short term. That way we'll know if the API should be considered not stable, 
and thus disabled on shared builds.

Nonetheless, I'll take the chance to raise an issue: libavutil/opencl.h is 
including "config.h", a header that's not installed, to check for HAVE_CL_CL_H.
This is broken, meaning that nothing has been able to use the OpenCL API outside 
of the couple libavfilter filters you modified.

I suggest using libavutil/avconfig.h instead, a generated and installed header, 
but there may be a better/cleaner way.


More information about the ffmpeg-devel mailing list