[FFmpeg-devel] [RFC]libopenjpeg detection

Carl-Eugen Hoyos cehoyos at ag.or.at
Sat Oct 1 15:02:38 CEST 2011


Hi!

On an older OpenSuse system, libopenjpeg detection fails since 4a7e068b, 
detection is successful with attached change.

Can anybody explain why it fails?

Thank you, Carl Eugen

$ cat openjpeg.c
    extern int opj_version();
    int main(void){ opj_version(); }
$ gcc -Wl,--as-needed openjpeg.c -lopenjpeg -lm
/usr/lib/gcc/i586-suse-linux/4.3/../../../libopenjpeg.so: undefined reference to `floor'
/usr/lib/gcc/i586-suse-linux/4.3/../../../libopenjpeg.so: undefined reference to `ceil'
/usr/lib/gcc/i586-suse-linux/4.3/../../../libopenjpeg.so: undefined reference to `lrintf'
/usr/lib/gcc/i586-suse-linux/4.3/../../../libopenjpeg.so: undefined reference to `pow'
collect2: ld returned 1 exit status
$ gcc openjpeg.c -lopenjpeg -lm
(succeeds)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchopenjpeg.diff
Type: text/x-diff
Size: 950 bytes
Desc: 
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111001/f491d2f6/attachment.bin>


More information about the ffmpeg-devel mailing list