Skip to content

compiler error #2

Description

@soliton4

/hwdecode-demos$ make Making all in src make[1]: Entering directory '/home/sol/projects/paperspace/hwdecode-demos/src' make all-am make[2]: Entering directory '/home/sol/projects/paperspace/hwdecode-demos/src' CC ffmpeg_h264-ffmpeg_video.o ffmpeg_video.c: In function ‘decode’: ffmpeg_video.c:72:5: error: unknown type name ‘ByteIOContext’ ByteIOContext ioctx; ^ ffmpeg_video.c:96:9: warning: implicit declaration of function ‘init_put_byte’ [-Wimplicit-function-declaration] if (init_put_byte(&ioctx, (uint8_t *)video_data, video_data_size, 0, NULL, NULL, NULL, NULL) < 0) ^ ffmpeg_video.c:99:9: warning: implicit declaration of function ‘av_open_input_stream’ [-Wimplicit-function-declaration] if (av_open_input_stream(&ic, &ioctx, "", format, NULL) < 0) ^ ffmpeg_video.c:102:9: warning: implicit declaration of function ‘av_find_stream_info’ [-Wimplicit-function-declaration] if (av_find_stream_info(ic) < 0) ^ ffmpeg_video.c:104:5: warning: implicit declaration of function ‘dump_format’ [-Wimplicit-function-declaration] dump_format(ic, 0, "", 0); ^ ffmpeg_video.c:121:9: warning: implicit declaration of function ‘avcodec_open’ [-Wimplicit-function-declaration] if (avcodec_open(avctx, codec) < 0) ^ ffmpeg_video.c:147:9: warning: implicit declaration of function ‘av_close_input_stream’ [-Wimplicit-function-declaration] av_close_input_stream(ic); ^ Makefile:2214: recipe for target 'ffmpeg_h264-ffmpeg_video.o' failed make[2]: *** [ffmpeg_h264-ffmpeg_video.o] Error 1 make[2]: Leaving directory '/home/sol/projects/paperspace/hwdecode-demos/src' Makefile:1071: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/sol/projects/paperspace/hwdecode-demos/src' Makefile:423: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

i get this when i compile on latest ubuntu.
i tried to install every ffmpeg-dev package i could find. but still no luck

any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions