This error occurs due to an error in the path.
-L / home / yourpath / ffmpeg_build / Library /
-I / home / yourpath / ffmpeg_build / enable /
ffmpeg_build - where files will be created and libraries installed.
Example:
create file "execute.sh"
NOW open the file and paste the following code:
g++ -Wno-format-zero-length -Wno-write-strings -L/home/yourpath/ffmpeg_build/lib/ -I/home/yourpath/ffmpeg_build/include/ -o output program.cpp -lavcodec -lavformat -lavutil -lavdevice -lswresample -lswscale -lm -lva -lpthread -lvorbis -lvpx -lopus -lz -lpostproc -ldl -lfdk-aac -lmp3lame -lvorbisenc -lvorbisfile -lx264 -ltheora -ltheoraenc -ltheoradec -ldl -lrt -lx265 -lbz2
and type: sh execute.sh and binary will be created in the name "output" then type. / output for output.
Note: above for C ++, for c changing g ++ code to gcc
source share