Bug #1898
closedWork with recent versions of libav / system
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
Updated by Joe_D over 10 years ago
- Status changed from New to Feedback
- Assignee set to Joe_D
- % Done changed from 0 to 50
Added #ifdefs to latest GIT, please check.
Updated by rell about 10 years ago
the #ifdefs in lines 105-116
break compilation here with error, that CODEC_* are not declared in that context.
omitting these works fine here but possibly break it with older LIBAV versions.
Maybe adding some ifs which are testing the AVCODEC version like http://projects.vdr-developer.org/projects/plg-softhddevice/repository/revisions/8b7402a397bf460e25a75add8059aa2eb83709ee/diff/codec.c does it, are a reasonable solution.
rell
Updated by rell about 10 years ago
Updated by Joe_D about 9 years ago
- % Done changed from 50 to 70
Please try latest git and give me some feedback...
Updated by Anson almost 9 years ago
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'
...
Updated by Anson almost 9 years ago
After doing aapt-get install pkg-config
it now compiles successfully on Debian Stretch (testing). Thank you.
Updated by Joe_D over 8 years ago
- Status changed from Feedback to Closed
- % Done changed from 70 to 100