[FFmpeg-devel] [PATCH] configure: fix detection of libopenjpeg

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Wed Oct 12 18:30:38 EEST 2016


On 12.10.2016 03:35, Michael Bradshaw wrote:
> Oh man, I literally just wrote a patch for this today. You beat me by 6
> hours. Anyway, thanks for the patch!

What a coincidence!

> On Tue, Oct 11, 2016 at 11:37 AM, Andreas Cadhalpun <
> andreas.cadhalpun at googlemail.com> wrote:
> 
[...]
>> +enabled libopenjpeg       && { { check_lib2 openjpeg-2.1/openjpeg.h
>> opj_version -lopenjp2 -DOPJ_STATIC && add_cflags -DOPJ_STATIC; } ||
>>
> 
> Use add_cppflags instead of add_cflags. The macro isn't needed for linking.

Fixed.

>> +                               check_lib2 openjpeg-2.1/openjpeg.h
>> opj_version -lopenjp2 ||
>> +                               { check_lib openjpeg-2.0/openjpeg.h
>> opj_version -lopenjp2 -DOPJ_STATIC  && add_cflags -DOPJ_STATIC; } ||
>>
> 
> You can drop the changes for v2.0 and below. Only v2.1 needs the check. The
> new OPJ_STATIC behavior was introduced in OpenJPEG v2.1.1.

Thanks for sharing that information.
Updated patch attached.

Best regards,
Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure-fix-detection-of-libopenjpeg.patch
Type: text/x-diff
Size: 3347 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161012/06432c7b/attachment.patch>


More information about the ffmpeg-devel mailing list