error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04

1.8k views Asked by At

I am tryinng to compile tutorial1.c for ffmpeg available here.

Program returns this error :

/usr/bin/ld: cannot find -lavutil
/usr/bin/ld: cannot find -lavformat
/usr/bin/ld: cannot find -lavcodec
/usr/bin/ld: cannot find -lavutil
collect2: error: ld returned 1 exit status

I have followed the instruction given in this compilation guide to install ffmpeg in ubuntu 15.04.

Command used for compilation:

gcc -I /home/adeshpande/ffmpeg_build/include/ -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lz -lavutil -lm

1

There are 1 answers

2
donjuedo On

You could add a -L/path/to/folder/containing/avutil