Bug #1223
openosdpip-0.1.2 on Fedora 18 - error: 'avcodec_init' was not declared in this scope
0%
Description
compiling osdpip-0.1.2 on Fedora 18 the following error appears:
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"osdpip"' -D__STDC_CONSTANT_MACROS -DUSE_SWSCALE -DUSE_NEW_FFMPEG_HEADERS -I../../../include -I/usr/include/ffmpeg -I/usr/include/ffmpeg osdpip.c
In file included from osdpip.c:23:0:
decoder.h:37:32: fatal error: libavcodec/opt.h: No such file or directory
compilation terminated.
make: *** [osdpip.o] Error 1
that can be solved by patching decoder.h
--- decoder.h.orig 2013-01-19 12:52:41.100898653 0100
++ decoder.h 2013-01-19 12:52:48.965899337 0100@ -34,7 +34,7
@
#include <libavcodec/avcodec.h>
#ifdef USE_SWSCALE
#include <libswscale/swscale.h>
- #include <libavcodec/opt.h>
#include <libavutil/opt.h>
#endif
#else
#include <ffmpeg/avcodec.h>
but then the next compiling error appears:
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"osdpip"' -D__STDC_CONSTANT_MACROS -DUSE_SWSCALE -DUSE_NEW_FFMPEG_HEADERS -I../../../include -I/usr/include/ffmpeg -I/usr/include/ffmpeg osdpip.c
osdpip.c: In member function 'virtual bool cPluginOsdpip::Initialize()':
osdpip.c:74:18: error: 'avcodec_init' was not declared in this scope
make: *** [osdpip.o] Error 1
installed packages on Fedora 18:
ffmpeg-compat-0.6.6-4.fc18.x86_64
ffmpeg-1.0.1-1.fc18.x86_64
ffmpeg-libs-1.0.1-1.fc18.x86_64
ffmpeg-devel-1.0.1-1.fc18.x86_64
how can i solve this ?
Files