Skip to content

avdevice_register_all link error #3

@DragonicUA

Description

@DragonicUA

Hello
When I try to use avdevice_register_all(), linker error appears:

%path%/libavdevice.a(fbdev_dec.o):fbdev_dec.c:function fbdev_read_header: error: undefined reference to 'mmap64'
%path%/libavdevice.a(fbdev_enc.o):fbdev_enc.c:function fbdev_write_header: error: undefined reference to 'mmap64'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_get_by_name'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_get_by_name'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_graph_alloc'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_graph_parse_ptr'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_pad_get_type'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_graph_create_filter'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_graph_create_filter'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_link'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_graph_config'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_graph_dump'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_time_base'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_type'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_type'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_type'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_format'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_channels'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_format'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_sample_rate'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_channel_layout'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_format'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_format'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_w'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_h'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_sample_aspect_ratio'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_w'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_h'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_w'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'av_buffersink_get_h'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_inout_free'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_header: error: undefined reference to 'avfilter_inout_free'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_packet: error: undefined reference to 'av_buffersink_get_time_base'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_packet: error: undefined reference to 'av_buffersink_get_frame_flags'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_packet: error: undefined reference to 'av_buffersink_get_frame_flags'
%path%/libavdevice.a(lavfi.o):lavfi.c:function lavfi_read_close: error: undefined reference to 'avfilter_graph_free'
%path%/libavdevice.a(v4l2.o):v4l2.c:function device_open: error: undefined reference to 'mmap64'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Libraries connected (without vpx): -lavformat -lavcodec -lavutil -lswscale -lswresample -devices -lavfilter -lavdevice -lx264
Without this function, other things work without problems
What could be the solutions to the problem? Thanks

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