libavcodec and libavformat shared libraries
I have this program that makes use of the ffmpeg libraries. I was able to compile it and successfully include the necessary header files, problem is, when i start running the program using the command
>g++ sample.cpp -lavcodec -lavformat
i get the following message:
>error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory
my program compiles in g++ and is on the ubuntu linux distribution environment. i installed the libraries using the following command:
> ./configure --disable-vhook --disable-ffserver --enable-shared
> make install
and no errors were generated. where could the error be from? is there a need to set any path variables for my program to be able to see the shared libraries?
i checked the usr/local/lib folde and verified that the libraries are really there.. how can i solve this problem? please help..