Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

**SOLVED** COMPILE ERROR

Troubleshooting compilation problems on all platforms.

**SOLVED** COMPILE ERROR

Postby kc7noa » Tue Nov 29, 2016 7:04 am

Ok .. hello

Ubuntu 16.04, i5 ...

Code: Select all
CC   ffmpeg.o
ffmpeg.c: In function ‘do_streamcopy’:
ffmpeg.c:1990:9: warning: ‘avpicture_fill’ is deprecated [-Wdeprecated-declarations]
         int ret = avpicture_fill(&pict, opkt.data, ost->st->codecpar->format, o
         ^
In file included from libavformat/avformat.h:319:0,
                 from ffmpeg.c:42:
./libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^
ffmpeg.c: In function ‘init_output_stream’:
ffmpeg.c:3309:9: warning: ‘avcodec_copy_context’ is deprecated [-Wdeprecated-declarations]
         ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx);
         ^
In file included from libavformat/avformat.h:319:0,
                 from ffmpeg.c:42:
./libavcodec/avcodec.h:4241:5: note: declared here
 int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
     ^
ffmpeg.c:3309:9: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
         ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx);
         ^
In file included from ffmpeg.c:42:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg.c:3337:9: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
         ost->st->codec->codec= ost->enc_ctx->codec;
         ^
In file included from ffmpeg.c:42:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg.c: In function ‘check_keyboard_interaction’:
ffmpeg.c:3734:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             debug = input_streams[0]->st->codec->debug<<1;
             ^
In file included from ffmpeg.c:42:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg.c:3753:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             input_streams[i]->st->codec->debug = debug;
             ^
In file included from ffmpeg.c:42:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg.c: In function ‘sigterm_handler’:
ffmpeg.c:330:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
         write(2/*STDERR_FILENO*/, "Received > 3 system signals, hard exiting\n"
         ^
ffmpeg.c: In function ‘sub2video_push_ref’:
ffmpeg.c:223:9: warning: ignoring return value of ‘av_buffersrc_add_frame_flags’, declared with attribute warn_unused_result [-Wunused-result]
         av_buffersrc_add_frame_flags(ist->filters[i]->filter, frame,
         ^
ffmpeg.c: In function ‘sub2video_flush’:
ffmpeg.c:298:9: warning: ignoring return value of ‘av_buffersrc_add_frame’, declared with attribute warn_unused_result [-Wunused-result]
         av_buffersrc_add_frame(ist->filters[i]->filter, NULL);
         ^
CC   cmdutils.o
CC   ffmpeg_opt.o
ffmpeg_opt.c: In function ‘add_input_streams’:
ffmpeg_opt.c:725:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             if (av_codec_get_lowres(st->codec)) {
             ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:726:17: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
                 av_codec_set_lowres(ist->dec_ctx, av_codec_get_lowres(st->codec
                 ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:727:17: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
                 ist->dec_ctx->width  = st->codec->width;
                 ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:728:17: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
                 ist->dec_ctx->height = st->codec->height;
                 ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:729:17: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
                 ist->dec_ctx->coded_width  = st->codec->coded_width;
                 ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:730:17: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
                 ist->dec_ctx->coded_height = st->codec->coded_height;
                 ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c: In function ‘read_ffserver_streams’:
ffmpeg_opt.c:1936:9: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
         avcodec_get_context_defaults3(st->codec, codec);
         ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:1941:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             av_opt_set_dict2(st->codec, &opts, AV_OPT_SEARCH_CHILDREN);
             ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:1948:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             choose_pixel_fmt(st, st->codec, codec, st->codecpar->format);
             ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c:1949:9: warning: ‘avcodec_copy_context’ is deprecated [-Wdeprecated-declarations]
         avcodec_copy_context(ost->enc_ctx, st->codec);
         ^
In file included from cmdutils.h:28:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavcodec/avcodec.h:4241:5: note: declared here
 int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
     ^
ffmpeg_opt.c:1949:9: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
         avcodec_copy_context(ost->enc_ctx, st->codec);
         ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
ffmpeg_opt.c: In function ‘open_output_file’:
ffmpeg_opt.c:2355:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             if (av_opt_set(ost->st->codec, "flags", e->value, 0) < 0)
             ^
In file included from cmdutils.h:30:0,
                 from ffmpeg.h:32,
                 from ffmpeg_opt.c:23:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
CC   ffmpeg_filter.o
CC   ffmpeg_cuvid.o
LD   ffmpeg_g
libavcodec/libavcodec.a(allcodecs.o): In function `avcodec_register_all':
/home/mike/Downloads/ffmpeg/libavcodec/allcodecs.c:391: undefined reference to `ff_aac_encoder'
/home/mike/Downloads/ffmpeg/libavcodec/allcodecs.c:392: undefined reference to `ff_aac_fixed_decoder'
libavcodec/libavcodec.a(aacdec.o): In function `spectral_to_sample':
/home/mike/Downloads/ffmpeg/libavcodec/aacdec_template.c:2762: undefined reference to `ff_sbr_apply'
libavcodec/libavcodec.a(aacdec.o): In function `che_configure':
/home/mike/Downloads/ffmpeg/libavcodec/aacdec_template.c:137: undefined reference to `ff_aac_sbr_ctx_init'
/home/mike/Downloads/ffmpeg/libavcodec/aacdec_template.c:152: undefined reference to `ff_aac_sbr_ctx_close'
libavcodec/libavcodec.a(aacdec.o): In function `decode_extension_payload':
/home/mike/Downloads/ffmpeg/libavcodec/aacdec_template.c:2339: undefined reference to `ff_decode_sbr_extension'
libavcodec/libavcodec.a(aacdec.o): In function `aac_decode_close':
/home/mike/Downloads/ffmpeg/libavcodec/aacdec_template.c:3183: undefined reference to `ff_aac_sbr_ctx_close'
libavcodec/libavcodec.a(aacdec.o): In function `aac_static_table_init':
/home/mike/Downloads/ffmpeg/libavcodec/aacdec_template.c:1086: undefined reference to `ff_aac_sbr_init'
collect2: error: ld returned 1 exit status
Makefile:131: recipe for target 'ffmpeg_g' failed
make: *** [ffmpeg_g] Error 1
mike@mike-NV59C:~/Downloads/ffmpeg$


wish there was a PPA for 16.04 ....

re-ran ./configure for the code capture ...

Code: Select all
mike@mike-NV59C:~/Downloads/ffmpeg$ ./configure
install prefix            /usr/local
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
yasm                      yes
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AESNI enabled             yes
AVX enabled               yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              no
EBX available             yes
EBP available             yes
debug symbols             yes
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    no
postprocessing support    no
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL2 support              no
opencl enabled            no
JNI support               no
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no
License: LGPL version 2.1 or later
Creating config.mak, config.h, and doc/config.texi...
config.h is unchanged
config.asm is unchanged
libavutil/avconfig.h is unchanged
libavcodec/bsf_list.c is unchanged
libavformat/protocol_list.c is unchanged
mike@mike-NV59C:~/Downloads/ffmpeg$


Had to strip out some stuff because i hit 92703 characters ...
not sure how to get the exact version i tried to build from git .. but it was todays ...
Last edited by kc7noa on Tue Nov 29, 2016 4:40 pm, edited 1 time in total.
kc7noa
 
Posts: 2
Joined: Tue Nov 29, 2016 6:51 am

Re: COMPILE ERROR

Postby kc7noa » Tue Nov 29, 2016 4:39 pm

Ok .. this is odd to me ... but iv solved it ..

Iv never before ran into an issue of compiling a package, or what ever, that needed an older version removed. Yes i always remove an older version before install ... but not during build.

I read some where else that some one had the same looking errors to mine .... and the response was to remove ffmpeg first ...and/or build individual libs ... (which the originator never responded if it was successful)

For any noob that reads this ... i used synaptic to remove ffmpeg -- and only ffmpeg. Then ffmpeg3 did build and install fine.
kc7noa
 
Posts: 2
Joined: Tue Nov 29, 2016 6:51 am


Return to Compiling FFmpeg

Who is online

Users browsing this forum: No registered users and 1 guest