[FFmpeg-devel] libopenjpeg only looks for openjpeg.h in includedir

sean darcy seandarcy2
Sun Mar 1 20:15:49 CET 2009

Carl Eugen Hoyos wrote:
> sean darcy <seandarcy2 <at> gmail.com> writes:
>> On Fedora 10, openjpeg.h is packaged in <includedir>/openjpeg:
> So please report this bug to Fedora (where it is already known, afaik).
> Current (tested last week) libopenjpeg vanilla source installs the header to
> /usr/include.
> Carl Eugen

Fair enough, but shouldn't eldflags work?


./configure --prefix=/usr --extra-ldflags=-I/usr/include/openjpeg ...
LDFLAGS=' -I/usr/include/openjpeg'
check_lib openjpeg.h opj_version -lopenjpeg
check_header openjpeg.h
BEGIN /tmp/ffmpeg-conf-4077-22478-27941.c
     1   #include <openjpeg.h>
     2   int x;
END /tmp/ffmpeg-conf-4077-22478-27941.c
gcc -O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --par
am=ssp-buffer-size=4 -m32 -march=native -mtune=native 
es -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 
-fomit-frame-pointer -marc
h=k8 -pthread -I/usr/include/dirac -E -o 
/tmp/ffmpeg-conf-3418-22478-2519.o /tmp
/tmp/ffmpeg-conf-4077-22478-27941.c:1:22: error: openjpeg.h: No such 
file or dir
ERROR: libopenjpeg not found

And the eldflags aren't included in building libopenjpeg.c. As a matter 
of fact, they don't seem to be used anywhere in building libavcodec/*.


More information about the ffmpeg-devel mailing list