Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 01-19-2007, 11:07 PM   #1
LQ Newbie
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Kubuntu
Posts: 18

Rep: Reputation: 0
libmp3lame installed, but mplayer configure script doesn't know it's there

I'm trying to run Acidrip in Ubuntu 6.10. I've installed MPlayer from source, as well as lame, etc. When installing dependencies, I prefer to use APT (via Adept) and get a .deb, but when that's not possible I'm not afraid to compile (doesn't make it any easier but sometimes you run out of options).

So I've got everything installed, Acidrip comes up fine, and I get ready to rip my DVD. Acidrip doesn't work, however, so I begin to troubleshoot. Acidrip basically generates an mencoder command, which is:

mencoder dvd://1 -dvd-device /dev/dvd  -alang English   -info srcform="DVD ripped by" -oac mp3lame -lameopts abr:br=128  -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=773 -vf pp=de,crop=0:0:0:0,scale=480:-2    -o "/home/sean/dark_passage.avi"
I cut and paste this command into the terminal and get:

MEncoder 1.0rc1-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.60GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

MPlayer was compiled without libmp3lame support.
-lameopts is not an MEncoder option

Exiting... (error parsing command line)
OK, fine, no problem, let's just re-compile mplayer with libmp3lame support turned on. Here's what I get when I run compile: a bunch of stuff followed by this message:

Checking for libmp3lame (for mencoder) ... no
I don't know why this is. Everything should be in the right directories. I compiled lame from source, lame works. The libraries are in /usr/local/lib, which should be where the configure script looks for them. I even symlinked them to /usr/lib just in case. As a last resort, I went into the config.h and config.mak files to "force" the libraries into the compile, but I just get an error when I try to compile (my config.mak syntax may be wrong but let's not get ahead of the game).

Many of the other posts dealing with this issue involve packages, RPMs, yast, and other stuff I have no experience with, so they were of no help to me. Maybe I missed a relevant post, if so please let me know.

Old 01-20-2007, 06:54 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
During the ./configure phase of compiling MPlayer, do './configure -h' to see if there is an option to add the path to libmp3lame (something like --libdir= ).

If not, run ./configure, then edit the Makefile before running make. Near the top of the file you will find several variables that you can edit, one of which would be the libdir= variable. Set that to the path to libmp3lame. If MPlayer can't find it on it's own, lead it there by the hand, as it were.
Old 01-20-2007, 06:06 PM   #3
LQ Newbie
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Kubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
OK, tried ./configure --libdir=/usr/local/lib as well as configure --with-extralibdir=/usr/local/lib...didn't work.

When I go into the makefile I don't see the libdir variable you're referring to. I do see these lines, however:

ifeq ($(LAVC_MP3LAME),yes)
...which means, if I'm reading it right, to add the path to the .so file into the list of codec libraries to include when compiling? If I could somehow add the path to to that list, would that work?


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
Mplayer, mencoder and libmp3lame conn-fused Mandriva 7 11-14-2005 07:18 AM
MPlayer Installation-> error kerryblue19 Linux - Software 11 03-17-2005 07:46 PM
Why does every ./configure script i run fail to recognise XMMS IS INSTALLED!! theMonkeY Linux - Software 4 08-23-2004 09:18 AM and mplayer arubin Slackware 7 07-11-2004 11:36 AM
Mplayer libmp3lame NewbGhostShells Linux - Software 7 01-16-2004 04:53 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:46 AM.

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