[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?

config.err:

./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
check_cpp
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 
-fasynchronous-unwind-tabl
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
/ffmpeg-conf-4077-22478-27941.c
/tmp/ffmpeg-conf-4077-22478-27941.c:1:22: error: openjpeg.h: No such 
file or dir
ectory
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/*.

sean





More information about the ffmpeg-devel mailing list