-
-
Save anonymous/3fab054c86be8266ddab1c57e232547d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parallels@ubuntu:~/Desktop/testcc/src/avcut$ export CPPFLAGS="-I../../build/include/libavcodec -I../../build/include/libavdevice -I../../build/include/libavfilter -I../../build/include/libavformat -I../../build/include/libavutil -I../../build/include/libpostproc -I../../build/include/libwresample -I../../build/include/libswscale -I../../build/include" | |
parallels@ubuntu:~/Desktop/testcc/src/avcut$ export LDFLAGS="-L../../build/lib" | |
parallels@ubuntu:~/Desktop/testcc/src/avcut$ make static | |
arm-unknown-linux-gnueabi-gcc -Wall -DAVCUT_VERSION=\"0.2\" -static -I../../build/include/libavcodec -I../../build/include/libavdevice -I../../build/include/libavfilter -I../../build/include/libavformat -I../../build/include/libavutil -I../../build/include/libpostproc -I../../build/include/libwresample -I../../build/include/libswscale -I../../build/include -L../../build/lib avcut.c -pthread -lavcodec -ldl -lXfixes -lXext -lX11 -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -ldc1394 -lraw1394 -lgcrypt -lxvidcore -lx264 -lvpx -lvorbisenc -lvorbis -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lpulse-simple -lpulse -lopus -lopenjpeg -lmp3lame -lgsm -lfreetype -lgnutls -lva -lbz2 -lz -lavutil -lm -pthread -lavformat -lavcodec -ldl -lXfixes -lXext -lX11 -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -ldc1394 -lraw1394 -lgcrypt -lxvidcore -lx264 -lvpx -lvorbisenc -lvorbis -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lpulse-simple -lpulse -lopus -lopenjpeg -lmp3lame -lgsm -lfreetype -lgnutls -lva -lbz2 -lz -lavutil -lm -lavutil -lm -o avcut | |
In file included from /usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/sys/stat.h:104:0, | |
from avcut.c:25: | |
/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/bits/stat.h:72:21: error: field ‘st_atim’ has incomplete type | |
struct timespec st_atim; /* Time of last access. */ | |
^ | |
/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/bits/stat.h:73:21: error: field ‘st_mtim’ has incomplete type | |
struct timespec st_mtim; /* Time of last modification. */ | |
^ | |
/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/bits/stat.h:74:21: error: field ‘st_ctim’ has incomplete type | |
struct timespec st_ctim; /* Time of last status change. */ | |
^ | |
In file included from avcut.c:25:0: | |
/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/sys/stat.h:364:31: error: array type has incomplete element type | |
const struct timespec __times[2], | |
^ | |
/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/sys/stat.h:371:54: error: array type has incomplete element type | |
extern int futimens (int __fd, const struct timespec __times[2]) __THROW; | |
^ | |
avcut.c: In function ‘encode_write_frame’: | |
avcut.c:120:4: warning: ‘pkt_pts’ is deprecated (declared at ../../build/include/libavutil/frame.h:282) [-Wdeprecated-declarations] | |
frame->pts, frame->pkt_pts, frame->pkt_dts, frame->pkt_size, av_get_picture_type_char(frame->pict_type), | |
^ | |
avcut.c:121:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
frame->pts * av_q2d(ostream->codec->time_base) | |
^ | |
avcut.c:126:2: warning: ‘avcodec_encode_video2’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5341) [-Wdeprecated-declarations] | |
ret = avcodec_encode_video2(ostream->codec, &enc_pkt, frame, &got_frame); | |
^ | |
avcut.c:126:2: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:137:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
enc_pkt.duration = ostream->codec->ticks_per_frame; | |
^ | |
avcut.c:139:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_packet_rescale_ts(&enc_pkt, ostream->codec->time_base, ostream->time_base); | |
^ | |
avcut.c:145:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (ostream->codec->flags & CODEC_FLAG_GLOBAL_HEADER) | |
^ | |
avcut.c:146:4: warning: ‘av_bitstream_filter_filter’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5887) [-Wdeprecated-declarations] | |
av_bitstream_filter_filter(pr->bsf_dump_extra, ostream->codec, NULL, | |
^ | |
avcut.c:146:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c: In function ‘frame_pts2ts’: | |
avcut.c:174:2: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
return frame->pts * av_q2d(pr->in_fctx->streams[s->stream_index]->codec->time_base); | |
^ | |
avcut.c: In function ‘find_packet_for_frame’: | |
avcut.c:268:5: warning: ‘pkt_pts’ is deprecated (declared at ../../build/include/libavutil/frame.h:282) [-Wdeprecated-declarations] | |
s->pkts[i].pts == s->frames[frame_idx]->pkt_pts) || | |
^ | |
avcut.c:298:5: warning: ‘pkt_pts’ is deprecated (declared at ../../build/include/libavutil/frame.h:282) [-Wdeprecated-declarations] | |
s->frames[frame_idx]->pkt_pts, | |
^ | |
avcut.c: In function ‘flush_packet_buffer’: | |
avcut.c:319:2: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (pr->in_fctx->streams[s->stream_index]->codec->codec_type != AVMEDIA_TYPE_VIDEO) { | |
^ | |
avcut.c:444:7: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
pr->in_fctx->streams[s->stream_index]->codec->time_base); | |
^ | |
avcut.c:470:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (frame_written && pr->out_fctx->streams[s->stream_index]->codec->codec->capabilities & CODEC_CAP_DELAY) { | |
^ | |
avcut.c:496:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
AVCodecContext *out_cctx = pr->out_fctx->streams[s->stream_index]->codec; | |
^ | |
avcut.c:511:7: warning: ‘pkt_pts’ is deprecated (declared at ../../build/include/libavutil/frame.h:282) [-Wdeprecated-declarations] | |
s->pkts[i].pts == s->frames[j]->pkt_pts) || | |
^ | |
avcut.c:541:7: warning: ‘pkt_pts’ is deprecated (declared at ../../build/include/libavutil/frame.h:282) [-Wdeprecated-declarations] | |
s->frames[j]->pkt_pts, | |
^ | |
avcut.c:552:6: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
pr->in_fctx->streams[s->stream_index]->codec->time_base, | |
^ | |
avcut.c:574:5: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (pr->in_fctx->streams[s->stream_index]->codec->opaque && | |
^ | |
avcut.c:575:15: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
((struct codeccontext*) pr->in_fctx->streams[s->stream_index]->codec->opaque)->h264_avcc_format) | |
^ | |
avcut.c:577:6: warning: ‘av_bitstream_filter_filter’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5887) [-Wdeprecated-declarations] | |
av_bitstream_filter_filter(pr->bsf_h264_to_annexb, | |
^ | |
avcut.c:578:7: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
pr->in_fctx->streams[s->stream_index]->codec, NULL, | |
^ | |
avcut.c: In function ‘decode_packet’: | |
avcut.c:642:2: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
mtype = pr->in_fctx->streams[stream_index]->codec->codec_type; | |
^ | |
avcut.c:651:3: warning: ‘avcodec_decode_video2’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:4830) [-Wdeprecated-declarations] | |
ret = avcodec_decode_video2(pr->in_fctx->streams[stream_index]->codec, frame, &got_frame, packet); | |
^ | |
avcut.c:651:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:680:4: warning: ‘pkt_pts’ is deprecated (declared at ../../build/include/libavutil/frame.h:282) [-Wdeprecated-declarations] | |
if (frame->pts == frame->pkt_dts || frame->pts == frame->pkt_pts) | |
^ | |
avcut.c:683:8: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
pr->in_fctx->streams[stream_index]->codec->time_base); | |
^ | |
avcut.c:691:6: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
pr->in_fctx->streams[stream_index]->codec->time_base); | |
^ | |
avcut.c: In function ‘main’: | |
avcut.c:797:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
codec_ctx = pr->in_fctx->streams[i]->codec; | |
^ | |
avcut.c:900:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
dec_cctx = pr->in_fctx->streams[i]->codec; | |
^ | |
avcut.c:901:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
enc_cctx = out_stream->codec; | |
^ | |
avcut.c:917:4: warning: ‘avcodec_copy_context’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:4259) [-Wdeprecated-declarations] | |
ret = avcodec_copy_context(enc_cctx, dec_cctx); | |
^ | |
avcut.c:951:4: warning: ‘avcodec_copy_context’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:4259) [-Wdeprecated-declarations] | |
ret = avcodec_copy_context(pr->out_fctx->streams[j]->codec, pr->in_fctx->streams[i]->codec); | |
^ | |
avcut.c:951:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:951:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:965:2: warning: ‘av_bitstream_filter_init’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5855) [-Wdeprecated-declarations] | |
pr->bsf_h264_to_annexb = av_bitstream_filter_init("h264_mp4toannexb"); | |
^ | |
avcut.c:966:2: warning: ‘av_bitstream_filter_init’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5855) [-Wdeprecated-declarations] | |
pr->bsf_dump_extra = av_bitstream_filter_init("dump_extra"); | |
^ | |
avcut.c:998:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_log(NULL, AV_LOG_DEBUG, "codec: " DUMP_TB(&pr->in_fctx->streams[i]->codec->time_base)); | |
^ | |
avcut.c:998:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:999:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_log(NULL, AV_LOG_DEBUG, "ticks_per_frame: %d\n", pr->in_fctx->streams[i]->codec->ticks_per_frame); | |
^ | |
avcut.c:1002:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_log(NULL, AV_LOG_DEBUG, "codec: " DUMP_TB(&pr->out_fctx->streams[j]->codec->time_base)); | |
^ | |
avcut.c:1002:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:1003:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_log(NULL, AV_LOG_DEBUG, "ticks_per_frame: %d\n", pr->out_fctx->streams[j]->codec->ticks_per_frame); | |
^ | |
avcut.c:1019:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
newo = pr->in_fctx->streams[i]->codec->gop_size; | |
^ | |
avcut.c:1020:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
newo = 0 - pr->out_fctx->streams[j]->codec->ticks_per_frame * | |
^ | |
avcut.c:1021:5: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_rescale_q(newo, pr->out_fctx->streams[j]->codec->time_base, pr->out_fctx->streams[j]->time_base); | |
^ | |
avcut.c:1045:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (pr->in_fctx->streams[packet.stream_index]->codec->codec_type == AVMEDIA_TYPE_VIDEO) | |
^ | |
avcut.c:1087:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (!pr->out_fctx->streams[j]->codec->codec || !(pr->out_fctx->streams[j]->codec->codec->capabilities & CODEC_CAP_DELAY)) | |
^ | |
avcut.c:1087:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:1112:2: warning: ‘av_bitstream_filter_close’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5899) [-Wdeprecated-declarations] | |
av_bitstream_filter_close(pr->bsf_h264_to_annexb); | |
^ | |
avcut.c:1113:2: warning: ‘av_bitstream_filter_close’ is deprecated (declared at ../../build/include/libavcodec/avcodec.h:5899) [-Wdeprecated-declarations] | |
av_bitstream_filter_close(pr->bsf_dump_extra); | |
^ | |
avcut.c:1119:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (pr->out_fctx->streams[j]->codec && avcodec_is_open(pr->out_fctx->streams[j]->codec)) | |
^ | |
avcut.c:1119:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcut.c:1120:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcodec_close(pr->out_fctx->streams[j]->codec); | |
^ | |
avcut.c:1124:3: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (pr->in_fctx->streams[i]->codec) { | |
^ | |
avcut.c:1125:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
av_freep(&pr->in_fctx->streams[i]->codec->opaque); | |
^ | |
avcut.c:1126:4: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
if (avcodec_is_open(pr->in_fctx->streams[i]->codec)) | |
^ | |
avcut.c:1127:5: warning: ‘codec’ is deprecated (declared at ../../build/include/libavformat/avformat.h:893) [-Wdeprecated-declarations] | |
avcodec_close(pr->in_fctx->streams[i]->codec); | |
^ | |
make: *** [avcut] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment