Loggytronic Forum

VOMP => VOMP for Raspberry Pi => Topic started by: TEDDYXXL on July 31, 2019, 09:31:24

Title: Latest version of vomp fails to compile
Post by: TEDDYXXL on July 31, 2019, 09:31:24
Hi !


After installing latest rasppi image with Debian10 (2019-07-10-raspbian-buster-full.img) compile of latest vomp version from git fails:


audioomx.cc: In member function 'virtual int AudioOMX::init(UCHAR)':
audioomx.cc:103:18: warning: 'void av_register_all()' is deprecated [-Wdeprecated-declarations]
  av_register_all();
                  ^
In file included from audioomx.h:36,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavformat/avformat.h:2043:6: note: declared here
void av_register_all(void);
      ^~~~~~~~~~~~~~~
audioomx.cc:103:18: warning: 'void av_register_all()' is deprecated [-Wdeprecated-declarations]
  av_register_all();
                  ^
In file included from audioomx.h:36,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavformat/avformat.h:2043:6: note: declared here
void av_register_all(void);
      ^~~~~~~~~~~~~~~
audioomx.cc: In member function 'int AudioOMX::InitDecoderLibAV()':
audioomx.cc:822:35: error: 'CODEC_FLAG_TRUNCATED' was not declared in this scope
  ac3codec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
                                   ^~~~~~~~~~~~~~~~~~~~
audioomx.cc:822:35: note: suggested alternative: 'AV_CODEC_FLAG_TRUNCATED'
  ac3codec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
                                   ^~~~~~~~~~~~~~~~~~~~
                                   AV_CODEC_FLAG_TRUNCATED
audioomx.cc:879:45: warning: 'AVAudioResampleContext* avresample_alloc_context()' is deprecated [-Wdeprecated-declarations]
  resam_con_libav = avresample_alloc_context();
                                             ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:194:25: note: declared here
AVAudioResampleContext *avresample_alloc_context(void);
                         ^~~~~~~~~~~~~~~~~~~~~~~~
audioomx.cc:879:45: warning: 'AVAudioResampleContext* avresample_alloc_context()' is deprecated [-Wdeprecated-declarations]
  resam_con_libav = avresample_alloc_context();
                                             ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:194:25: note: declared here
AVAudioResampleContext *avresample_alloc_context(void);
                         ^~~~~~~~~~~~~~~~~~~~~~~~
audioomx.cc: In member function 'void AudioOMX::DeinitDecoderLibAV()':
audioomx.cc:929:35: warning: 'void avresample_free(AVAudioResampleContext**)' is deprecated [-Wdeprecated-declarations]
   avresample_free(&resam_con_libav);
                                   ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:258:6: note: declared here
void avresample_free(AVAudioResampleContext **avr);
      ^~~~~~~~~~~~~~~
audioomx.cc:929:35: warning: 'void avresample_free(AVAudioResampleContext**)' is deprecated [-Wdeprecated-declarations]
   avresample_free(&resam_con_libav);
                                   ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:258:6: note: declared here
void avresample_free(AVAudioResampleContext **avr);
      ^~~~~~~~~~~~~~~
audioomx.cc: In member function 'UINT AudioOMX::DeliverMediaPacket(MediaPacket, const UCHAR*, UINT*)':
audioomx.cc:2136:36: warning: 'int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
       &gotta, &incoming_paket_libav);
                                    ^
In file included from audioomx.h:35,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavcodec/avcodec.h:4722:5: note: declared here
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
     ^~~~~~~~~~~~~~~~~~~~~
audioomx.cc:2136:36: warning: 'int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
       &gotta, &incoming_paket_libav);
                                    ^
In file included from audioomx.h:35,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavcodec/avcodec.h:4722:5: note: declared here
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
     ^~~~~~~~~~~~~~~~~~~~~
audioomx.cc:2252:44: warning: 'int avresample_open(AVAudioResampleContext*)' is deprecated [-Wdeprecated-declarations]
     int ret=avresample_open(resam_con_libav);
                                            ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:214:5: note: declared here
int avresample_open(AVAudioResampleContext *avr);
     ^~~~~~~~~~~~~~~
audioomx.cc:2252:44: warning: 'int avresample_open(AVAudioResampleContext*)' is deprecated [-Wdeprecated-declarations]
     int ret=avresample_open(resam_con_libav);
                                            ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:214:5: note: declared here
int avresample_open(AVAudioResampleContext *avr);
     ^~~~~~~~~~~~~~~
audioomx.cc:2260:108: warning: 'int avresample_convert(AVAudioResampleContext*, uint8_t**, int, int, uint8_t* const*, int, int)' is deprecated [-Wdeprecated-declarations]
        decode_frame_libav->extended_data,  decode_frame_libav->linesize[0],  decode_frame_libav->nb_samples);
                                                                                                            ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:451:5: note: declared here
int avresample_convert(AVAudioResampleContext *avr, uint8_t **output,
     ^~~~~~~~~~~~~~~~~~
audioomx.cc:2260:108: warning: 'int avresample_convert(AVAudioResampleContext*, uint8_t**, int, int, uint8_t* const*, int, int)' is deprecated [-Wdeprecated-declarations]
        decode_frame_libav->extended_data,  decode_frame_libav->linesize[0],  decode_frame_libav->nb_samples);
                                                                                                            ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:451:5: note: declared here
int avresample_convert(AVAudioResampleContext *avr, uint8_t **output,
     ^~~~~~~~~~~~~~~~~~
audioomx.cc:2261:38: warning: 'void avresample_close(AVAudioResampleContext*)' is deprecated [-Wdeprecated-declarations]
      avresample_close(resam_con_libav);
                                      ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:245:6: note: declared here
void avresample_close(AVAudioResampleContext *avr);
      ^~~~~~~~~~~~~~~~
audioomx.cc:2261:38: warning: 'void avresample_close(AVAudioResampleContext*)' is deprecated [-Wdeprecated-declarations]
      avresample_close(resam_con_libav);
                                      ^
In file included from audioomx.h:37,
                 from audioomx.cc:21:
/usr/include/arm-linux-gnueabihf/libavresample/avresample.h:245:6: note: declared here
void avresample_close(AVAudioResampleContext *avr);
      ^~~~~~~~~~~~~~~~
make: *** [<eingebaut>: audioomx.o] Fehler 1


Regards,

Dirk
Title: Re: Latest version of vomp fails to compile
Post by: MartenR on August 01, 2019, 07:05:25
May be just follow the suggestion of the compiler. Seems to be a change in libAv.

Marten
Title: Re: Latest version of vomp fails to compile
Post by: Chris on August 17, 2019, 15:50:11
Hi,

I've fixed the errors for compiling on buster and it's in git. There are still several warnings that need looking into but at least it works now.