Hallo,
ich versuche gerade, das softdevice-plugin unter ubuntu 10.04 zu kompilieren.
ich habe ffmpeg mittels
Zitatgit clone git://git.ffmpeg.org/ffmpeg/
cd ffmpeg
git clone git://git.ffmpeg.org/libswscale/
heruntergeladen und dann über
ZitatAlles anzeigen./configure --prefix=/usr/local --enable-shared --disable-yasm
make
make install
ldconfig
cd libpostproc/
make install-libs
installiert.
./configure sagt dann:
ZitatAlles anzeigenTesting system and cpu type... found Linux on i386 cpu.
Checking for pkg-config... Found.
Checking for ffmpeg... Ok.
Checking for ffmpeg/libswscale... Using libswscale.
Checking for ALSA sound... Enabled audio-alsa.
Checking for OSS sound... Enabled audio-oss.
Checking for linux frambuffer... Enabled video-fb.
Checking for yaepg patch... Not Found.
Checking for DirectFB and DFB++... Not Found.
Checking for vidix... Not found.
Checking for Xv... Enabled video-xv.
Checking for Xinerama... Enabled Xinerama.
Creating temporary config.h and config.mak
config.h is unchanged
config.mak is unchanged
Configure is finished. Please check config.log in case of problems.
wenn ich jetzt aber make ausführe, kommt:
ZitatAlles anzeigen
g++ -MM -MG -DHAVE_CONFIG -D__STDC_CONSTANT_MACROS -DPLUGIN_NAME_I18N='"softdevice"' -D_GNU_SOURCE -DPLUGINLIBDIR='"./PLUGINS/lib"' -DSHM_SUPPORT -I../../../include -I../../../../DVB/include -I/usr/local/include -I/usr/local/include softdevice.c utils.c i18n.c video.c mpeg2decoder.c audio.c video-dummy.c setup-softdevice.c setup-softdevice-menu.c setup-softlog.c setup-softlog-menu.c sync-timer.c SoftOsd.c PicBuffer.c VideoFilter.c audio-alsa.c audio-ac3pt.c audio-oss.c > .dependencies
g++ -O2 -g -Wall -fPIC -Woverloaded-virtual -c -DHAVE_CONFIG -D__STDC_CONSTANT_MACROS -DPLUGIN_NAME_I18N='"softdevice"' -D_GNU_SOURCE -DPLUGINLIBDIR='"./PLUGINS/lib"' -DSHM_SUPPORT -I../../../include -I../../../../DVB/include -I/usr/local/include -I/usr/local/include softdevice.c
In file included from video.h:25,
from mpeg2decoder.h:31,
from softdevice.h:17,
from softdevice.c:8:
PicBuffer.h:59: warning: ‘typedef’ was ignored in this declaration
softdevice.c: In constructor ‘cSoftDevice::cSoftDevice(int, int, char*)’:
softdevice.c:188: warning: deprecated conversion from string constant to ‘char*’
softdevice.c:194: warning: deprecated conversion from string constant to ‘char*’
softdevice.c:209: warning: deprecated conversion from string constant to ‘char*’
softdevice.c: In member function ‘void cSoftDevice::LoadSubPlugin(char*, char*)’:
softdevice.c:343: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result
softdevice.c: In constructor ‘cPluginSoftDevice::cPluginSoftDevice()’:
softdevice.c:819: warning: deprecated conversion from string constant to ‘char*’
g++ -O2 -g -Wall -fPIC -Woverloaded-virtual -c -DHAVE_CONFIG -D__STDC_CONSTANT_MACROS -DPLUGIN_NAME_I18N='"softdevice"' -D_GNU_SOURCE -DPLUGINLIBDIR='"./PLUGINS/lib"' -DSHM_SUPPORT -I../../../include -I../../../../DVB/include -I/usr/local/include -I/usr/local/include utils.c
g++ -O2 -g -Wall -fPIC -Woverloaded-virtual -c -DHAVE_CONFIG -D__STDC_CONSTANT_MACROS -DPLUGIN_NAME_I18N='"softdevice"' -D_GNU_SOURCE -DPLUGINLIBDIR='"./PLUGINS/lib"' -DSHM_SUPPORT -I../../../include -I../../../../DVB/include -I/usr/local/include -I/usr/local/include i18n.c
g++ -O2 -g -Wall -fPIC -Woverloaded-virtual -c -DHAVE_CONFIG -D__STDC_CONSTANT_MACROS -DPLUGIN_NAME_I18N='"softdevice"' -D_GNU_SOURCE -DPLUGINLIBDIR='"./PLUGINS/lib"' -DSHM_SUPPORT -I../../../include -I../../../../DVB/include -I/usr/local/include -I/usr/local/include video.c
In file included from video.h:25,
from video.c:16:
PicBuffer.h:59: warning: ‘typedef’ was ignored in this declaration
video.c: In member function ‘virtual void cVideoOut::EvaluateDelay(uint64_t, uint64_t, int)’:
video.c:545: warning: deprecated conversion from string constant to ‘char*’
video.c:573: warning: deprecated conversion from string constant to ‘char*’
video.c:582: warning: deprecated conversion from string constant to ‘char*’
video.c:589: warning: deprecated conversion from string constant to ‘char*’
video.c: In member function ‘virtual void cVideoOut::ResetDelay()’:
video.c:606: warning: deprecated conversion from string constant to ‘char*’
g++ -O2 -g -Wall -fPIC -Woverloaded-virtual -c -DHAVE_CONFIG -D__STDC_CONSTANT_MACROS -DPLUGIN_NAME_I18N='"softdevice"' -D_GNU_SOURCE -DPLUGINLIBDIR='"./PLUGINS/lib"' -DSHM_SUPPORT -I../../../include -I../../../../DVB/include -I/usr/local/include -I/usr/local/include mpeg2decoder.c
In file included from video.h:25,
from mpeg2decoder.h:31,
from mpeg2decoder.c:14:
PicBuffer.h:59: warning: ‘typedef’ was ignored in this declaration
mpeg2decoder.c: In constructor ‘cStreamDecoder::cStreamDecoder(AVCodecContext*, bool)’:
mpeg2decoder.c:143: error: ‘struct AVCodecContext’ has no member named ‘error_resilience’
mpeg2decoder.c: In member function ‘virtual int cAudioStreamDecoder::DecodePacket(AVPacket*)’:
mpeg2decoder.c:444: warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3467)
mpeg2decoder.c:445: warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3467)
mpeg2decoder.c:470: warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3467)
mpeg2decoder.c:471: warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3467)
mpeg2decoder.c: In function ‘int GetBuffer(AVCodecContext*, AVFrame*)’:
mpeg2decoder.c:546: warning: ‘int avcodec_check_dimensions(void*, unsigned int, unsigned int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3413)
mpeg2decoder.c:546: warning: ‘int avcodec_check_dimensions(void*, unsigned int, unsigned int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3413)
mpeg2decoder.c: In member function ‘int cVideoStreamDecoder::DecodePicture_avcodec(sPicBuffer*&, int&, uint8_t*, int, int64_t)’:
mpeg2decoder.c:688: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3529)
mpeg2decoder.c:688: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3529)
mpeg2decoder.c: In constructor ‘cMpeg2Decoder::cMpeg2Decoder(cAudioOut*, cVideoOut*)’:
mpeg2decoder.c:1026: error: ‘avcodec_build’ was not declared in this scope
mpeg2decoder.c: In member function ‘void cMpeg2Decoder::Freeze(int, bool)’:
mpeg2decoder.c:1454: warning: suggest parentheses around comparison in operand of ‘&’
make: *** [mpeg2decoder.o] Fehler 1
mit der fehlenden Methode avcodec_build kann ich leider nichts anfangen. Hat jemand Rat ?
Gruß Rainer