[FFmpeg-user] Dynamically linking to OpenJPEG 2 library

Aaron Boxer boxerab at gmail.com
Mon Mar 28 04:00:44 CEST 2016


[Moved this discussion into new thread]

I am having trouble compiling FFmpeg with OpenJPEG 2 built as a shared
library.
(Compiling with statically built OpenJPEG 2 works fine)

Here is the output of make:

libavcodec/libavcodec.a(libopenjpegdec.o): In function
`libopenjpeg_decode_frame':
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:378: undefined reference
to `opj_create_decompress'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:396: undefined reference
to `opj_set_error_handler'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:397: undefined reference
to `opj_set_warning_handler'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:398: undefined reference
to `opj_set_info_handler'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:409: undefined reference
to `opj_setup_decoder'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:414: undefined reference
to `opj_stream_default_create'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:431: undefined reference
to `opj_stream_set_read_function'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:432: undefined reference
to `opj_stream_set_skip_function'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:433: undefined reference
to `opj_stream_set_seek_function'
/home/aaron/src/FFmpeg/libavcodec/libopenjpegdec.c:435: undefined reference
to `opj_stream_set_user_data'


Any insight would be very much appreciated.

Thanks,
Aaron


More information about the ffmpeg-user mailing list