LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-03-2007, 12:33 PM   #1
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157

Rep: Reputation: 15
libmp3lame support for mplayer/mencoder


I installed mplayer through source codes on my Slackware 12. At my first install I didn't notice that libmp3lame wasn't installed and so I could not use mencoder to extract audio from movies to form .mp3 files. I installed lame through source codes.

On configuring mplayer, mplayer didn't detect it. I found this webpage:

http://www.mjmwired.net/resources/mplayer-fedora.html

Here it is written that lame must be configure with --prefix=/usr or else mplayer won't detect it. When I tried this out, mplayer detected lame and now I have mencoder working.

Why is this so? Suppose I install lame in an arbitrary directory (eg: /softwares). I add /softwares/lib to my ld.so.con and run ldconfig -v. libmp3lame.so shows up. Is there any configure option in mplayer to make it detect lame in /softwares?

Got everything working but am curious to know.
 
Old 10-03-2007, 12:38 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
By default, lame sets everything up in /usr/local. Whereas, I'm assuming, mplayer looks for libraries to link against in /usr (or any directory defined in ld.so.con). /usr/local may not be listed in ld.so.con.

If you add /software to ld.so.con, it should work.
 
Old 10-03-2007, 01:13 PM   #3
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157

Original Poster
Rep: Reputation: 15
Thanks for the quick reply. I added /software/lib in ld.so.conf. I ran ldconfig with the -v (verbose) option. It showed libmp3lame.so in /software/lib. But mplayer didn't find it.

Since I deliberately install all softwares in /software, I run ldconfig after every installation.
 
Old 10-03-2007, 04:06 PM   #4
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
You're very welcome.

Did you install mplayer before or after you installed lame?
I don't know a whole hell of a lot about linking, unfortunately.

It makes sense to install everything to a single dir - I used to use /opt - and I don't know why I stopped doing it. Regardless, the only logical thing I can think of, is that if you installed mplayer before lame, it wouldn't find it due to the fact that mplayer was probably built without support for libmp3lame because the library did not exist.
 
Old 10-04-2007, 12:31 AM   #5
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157

Original Poster
Rep: Reputation: 15
I first installed lame in /softwares. I then installed mplayer which didn't find it. So I installed lame in /usr. On configuring mplayer, this time lame was detected.

The link I provided explicitly says that if lame is configured without --prefix=/usr, mplayer may not detect it. Why so? This would be a problem for people who would want to install all softwares in a different directory (in my case /software and in you case /opt). I tried out mplayer configure options like --toolamelibdir=/compilations etc but none worked.

If it is a deficiency in the ./configure file of mplayer, would it be possible to do some surgery to it and change the path where it looks for lame.h? I am not all that comfortable with scripts, but I'll give it a try soon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
libmp3lame installed, but mplayer configure script doesn't know it's there woodsy934 Linux - Desktop 2 01-20-2007 07:06 PM
Mplayer, mencoder and libmp3lame conn-fused Mandriva 7 11-14-2005 08:18 AM
MPlayer Installation->libmp3lame.so.0 error kerryblue19 Linux - Software 11 03-17-2005 08:46 PM
Libmp3lame.so.0 and mplayer arubin Slackware 7 07-11-2004 12:36 PM
Mplayer libmp3lame NewbGhostShells Linux - Software 7 01-16-2004 05:53 AM


All times are GMT -5. The time now is 03:45 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration