[FFmpeg-devel] [PATCH] configure: use pkg-config to check for libopenjpeg

Johannes Nixdorf mixi at shadowice.org
Sun Dec 16 19:17:30 CET 2012


On Sun, Dec 16, 2012 at 05:28:00PM +0000, Carl Eugen Hoyos wrote:
>  <mixi <at> shadowice.org> writes:
> 
> > Beginning with version 1.5.1 openjpeg defaults to install its 
> > headers to /usr/include/openjpeg-${major}.${minor} instead of 
> > /usr/include making the old test fail.
> 
> To the best of my knowledge, this depends on the question 
> if the packager prefers cmake or make.
> (That was at least the reason when I last checked.)

No. They both install the headers to that location and don't provide a
compatibility symlink.

> Are you sure that there is no symlink from /usr/include/openjpeg 
> to /usr/include/openjpeg-mjr-min (Opensuse now has two symlinks 
> to fix the apparent bug in openjpeg-1)?

This was done by openSUSE and not by the upstream build system (btw., the
compatibility symlink openSUSE creates is /usr/include/openjpeg.h ->
/usr/include/openjpeg-1.5/openjpeg.h, not /usr/include/openjpeg/). Also I
don't see why this would be a bug in openjpeg.

> Imo, we should check /usr/include/openjpeg.h and 
> /usr/include/openjpeg/openjpeg.h

Why? /usr/include/openjpeg/ doesn't exist on any system I know. Also
this won't work on the unmodified contents of openjpeg packages and
therefore require the distributors to create that link in their openjpeg
packages while gaining nothing over the pkg-config approach.

> Carl Eugen
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list