I think the problem arrives when the pkg-config couldn't find the libavcodec and libavutils The installed libavcodec & libavutils must be in a directory that system don't know. possibly check the /usr/local/lib folder for existence of libavcodec & libavutils. If it is there then first thing ...