[Libav-user] Can not link ffmpeg without pkg-config

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Aug 31 16:30:23 EEST 2016


2016-08-30 13:28 GMT+02:00 Javier Lopez <jlopez2022 at gmail.com>:
>
> gcc  -o ffmpeg_player ffmpeg_player_01.c -Wall -ggdb -lavformat -lvdpau -lva
> -lva-drm -lva-x11 -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render
> -lxcb-shape -lX11 -lasound -lSDL -lx264 -lmp3lame -lfdk-aac -lm -lz -pthread
> -lavcodec -lvdpau -lswresample -lswscale -lavutil -lSDL
>
> Still I have following error: libavcodec/libx264.c:814: undefined reference
> to `x264_encoder_open_148'

You have to point the linker to the directory where this version of libx264 is
installed: --extra-ldflags=-L/path/to/your/x264/installation/lib

Carl Eugen


More information about the Libav-user mailing list