[FFmpeg-user] fatal error: libavcodec/avcodec.h: No such file or directory

Reindl Harald h.reindl at thelounge.net
Mon Jun 22 16:26:24 EEST 2020



Am 22.06.20 um 14:40 schrieb 龙承启:
> Hello!
>       I have installed ffmpeg according to https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
>       And it is ok when running ffmpeg -version
>       But when I use #include<libavcodec/avcodec.h> in visual studio code, it is shown that "can not open source file libavcodec/avcodec.h "
>       And when run "gcc decoder1.cpp -lavcodec -lavformat  -lavutil -lswscale  -o decoder1",   "fatal error: libavcodec/avcodec.h: No such file or directory"  appers.
>       What should I do?

it can't smell the location --prefix="$HOME/ffmpeg_build" i guess


More information about the ffmpeg-user mailing list