LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2005, 11:50 PM   #1
ivorytower27
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Unhappy 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
> 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..
 
Old 10-12-2005, 12:25 AM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Use synaptic (or apt-get at the command line) to install all the needed libraries.
 
Old 10-15-2005, 11:44 PM   #3
ivorytower27
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
thanks, i'l give it a try
 
Old 10-16-2005, 05:48 AM   #4
ivorytower27
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
i found out what the problem was. it was with the linux distribution i have. the libraries were installed in the folder usr/local/lib but my OS only looks at the folder usr/lib for the shared libraries. to solve the problem, i created links to the libraries and placed these links in usr/lib. my program then work as it shud. still, thanks to those who responded.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
ffmpeg - libavcodec & libavformat james_vasant Programming 1 08-16-2005 12:43 PM
Using ffmpeg (libavcodec and libavformat) libraries... _UnPrEdictAbLe_ Programming 2 07-27-2005 07:49 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration