pidvbip icon indicating copy to clipboard operation
pidvbip copied to clipboard

Failed to make in arch linux

Open xswqaz opened this issue 8 years ago • 2 comments

any ideas?

avplay.c:60:28: warning: ‘enum CodecID’ declared inside parameter list will not be visible outside of this definition or declaration static int map_vcodec(enum CodecID id) ^~~~~~~ avplay.c:60:36: error: parameter 1 (‘id’) has incomplete type static int map_vcodec(enum CodecID id) ^~ avplay.c: In function ‘map_vcodec’: avplay.c:64:13: error: ‘CODEC_ID_MPEG2VIDEO’ undeclared (first use in this function) case CODEC_ID_MPEG2VIDEO: ^~~~~~~~~~~~~~~~~~~ avplay.c:64:13: note: each undeclared identifier is reported only once for each function it appears in avplay.c:65:13: error: ‘CODEC_ID_MPEG2VIDEO_XVMC’ undeclared (first use in this function) case CODEC_ID_MPEG2VIDEO_XVMC: ^~~~~~~~~~~~~~~~~~~~~~~~ avplay.c:68:13: error: ‘CODEC_ID_H264’ undeclared (first use in this function) case CODEC_ID_H264: ^~~~~~~~~~~~~ avplay.c: At top level: avplay.c:81:28: warning: ‘enum CodecID’ declared inside parameter list will not be visible outside of this definition or declaration static int map_acodec(enum CodecID id) ^~~~~~~ avplay.c:81:36: error: parameter 1 (‘id’) has incomplete type static int map_acodec(enum CodecID id) ^~ avplay.c: In function ‘map_acodec’: avplay.c:85:13: error: ‘CODEC_ID_MP2’ undeclared (first use in this function) case CODEC_ID_MP2: ^~~~~~~~~~~~ avplay.c:86:13: error: ‘CODEC_ID_MP3’ undeclared (first use in this function) case CODEC_ID_MP3: ^~~~~~~~~~~~ avplay.c:89:13: error: ‘CODEC_ID_AC3’ undeclared (first use in this function) case CODEC_ID_AC3: ^~~~~~~~~~~~ avplay.c:92:13: error: ‘CODEC_ID_AAC’ undeclared (first use in this function) case CODEC_ID_AAC: ^~~~~~~~~~~~ avplay.c: In function ‘avplay_thread’: avplay.c:137:12: warning: return makes pointer from integer without a cast [-Wint-conversion] return 1; ^ avplay.c:176:62: error: ‘CODEC_ID_AAC’ undeclared (first use in this function) if (fmt_ctx->streams[audio_stream_idx]->codec->codec_id == CODEC_ID_AAC) { ^~~~~~~~~~~~ avplay.c:326:5: warning: ‘av_free_packet’ is deprecated [-Wdeprecated-declarations] av_free_packet(&pkt); ^~~~~~~~~~~~~~ In file included from /usr/include/libavformat/avformat.h:318:0, from avplay.c:25: /usr/include/libavcodec/avcodec.h:4040:6: note: declared here void av_free_packet(AVPacket pkt); ^~~~~~~~~~~~~~ make: ** [Makefile:117: /root/pidvbip/build.linux/avplay.o] Error 1

xswqaz avatar Jun 13 '16 13:06 xswqaz

Having the same problem on MINIBIAN (Debian Jessie)

Lemmiwinks avatar Feb 21 '17 10:02 Lemmiwinks

This was due to a recent version of libavcodec: https://github.com/linuxstb/pidvbip/pull/42

mikerr avatar Jul 06 '17 13:07 mikerr