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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-03-2007, 11:33 AM
|
#1
|
|
Member
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157
Rep:
|
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.
|
|
|
|
10-03-2007, 11:38 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
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.
|
|
|
|
10-03-2007, 12:13 PM
|
#3
|
|
Member
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157
Original Poster
Rep:
|
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.
|
|
|
|
10-03-2007, 03:06 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
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.
|
|
|
|
10-03-2007, 11:31 PM
|
#5
|
|
Member
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:33 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|