Bug #1898
closed
Work with recent versions of libav / system
Added by ewl over 10 years ago.
Updated over 8 years ago.
Description
Hi,
trying to compile markad under Debian jessie (libav version 10.3), I had multiple errors in command/decoder.cpp regarding snprintf and various CODEC_ID constants not declared in this scope. I was able to fix the issue by including stdio.h and adding AV_ at the beginning of each constant.
Attached are the patches required to get markad compile, I guess that some more magic is required to keep markad compiling also with older versions of ffmpeg respectively libav.
Hope this helps,
Eric
Files
- Status changed from New to Feedback
- Assignee set to Joe_D
- % Done changed from 0 to 50
Added #ifdefs to latest GIT, please check.
- % Done changed from 50 to 70
Please try latest git and give me some feedback...
When compiling current 0.1.5pre source on Debian Stretch (testing) I do not get compiler errors in decoder.cpp (using 0.1.4 source I do), but I get linker errors with avcodec functions.
..../command/decoder.cpp:125: undefined reference to `avcodec_register_all'
..../command/decoder.cpp:150: undefined reference to `avcodec_version'
..../command/decoder.cpp:162: undefined reference to `avcodec_configuration'
..../command/decoder.cpp:186: undefined reference to `avcodec_find_decoder'
..../command/decoder.cpp:197: undefined reference to `avcodec_alloc_context3'
..../command/decoder.cpp:223: undefined reference to `avcodec_open2'
..../command/decoder.cpp:231: undefined reference to `avcodec_find_decoder'
..../command/decoder.cpp:240: undefined reference to `avcodec_open2'
...
After doing a
apt-get install pkg-config
it now compiles successfully on Debian Stretch (testing). Thank you.
- Status changed from Feedback to Closed
- % Done changed from 70 to 100
Also available in: Atom
PDF