LinuxQuestions.org
Review your favorite Linux distribution.
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 06-14-2008, 05:47 PM   #1
isamuede
Member
 
Registered: Jun 2008
Posts: 51

Rep: Reputation: 16
mplayer does not use libraries at compilation


YO there folks, Salute to all, Im looking to compile mplayer (both svn/release) over a series of amd64 machines (turionx2,atlonx2 and phenom)but I realize at the moment of configure it does not 'see' the libraries installed to the several formats v.gr: I installed the xvid, h264 and faad libraries for 64 bits but when running the ./configure it showme allways these options are disabled.
So my question its how to get mplayer uses the 64 bits? or must I use a 32 bits version of the libs?
Im running over mdv2008.1 free.
Thanks in advance to all.
PW. Linux rocks!!!!!!!!!1
 
Old 06-17-2008, 02:33 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
It may sound obvious, but since you did not mention that you have them: - you need to have the header files for each of your libraries installed - not just the libraries themselves.
Those are called something like xxx-dev or xxx-development in most distributions.
Can say nothing about 32/64 bit problems - never had such a machine.
 
Old 06-17-2008, 11:03 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
As jomen said, you need the -dev or -devel versions of the packages since they contain the header files which is the least you need to build something based on those libs.

About 32 vs. 64: 32 bits programs can only link against 32 bits libs, and 64 bits programs can only link against 64 bits libs. It's possible to build intermediate layers, like nspluginswrapper, which allows the usage of a 32 bits flash plugin on a 64 bits browser, but it's not trivial.
 
Old 06-18-2008, 03:41 PM   #4
isamuede
Member
 
Registered: Jun 2008
Posts: 51

Original Poster
Rep: Reputation: 16
Talking update

Thanks for review this. And sorry for the lack of details, I have both the xxx-lib64-dev*.rpm and in the same way the xxxx-lib-dev.
Exactly my enviroment is that.
I want to enable x264 and faac support for mplayer
./configure --with-extralibs=/usr/lib64
watching the output it says my x264 and faac its disabled
try again
./configure --libdir=the_right_path_to_my_libs
but my support still disables !==(!
What can I do???

Thanks a lot again.
 
Old 06-18-2008, 04:28 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
What distribution are you using?

I'm on Gentoo - and just checked the ebuild for mplayer for specifics of the things you want and which seem not to work.
Seems all peachy.
Then I unpacked the source and ran configure - it found my libs (of course)
I then checked for what you wrote:
Quote:
./configure --with-extralibs=/usr/lib64
I did:
Code:
./configure --help | grep extra
  --enable-rpath         enable runtime linker path for extra libs [disabled]
  --extra-libs=FLAGS          extra linker flags
  --extra-libs-mplayer=FLAGS  extra linker flags for MPlayer
  --extra-libs-mencoder=FLAGS extra linker flags for MEncoder
  --with-extraincdir=DIR      extra header search paths in DIR (*)
  --with-extralibdir=DIR      extra linker search paths in DIR (*)
this suggests that:
Code:
  --with-extraincdir=DIR      extra header search paths in DIR (*)
  --with-extralibdir=DIR      extra linker search paths in DIR (*)
should be given to "configure" instead of --with-extralibs - which is itself spelled incorrect...

/etc/ld.so.conf or the files which populate this file can also be worth to have a look at

HTH
 
Old 06-19-2008, 10:03 AM   #6
isamuede
Member
 
Registered: Jun 2008
Posts: 51

Original Poster
Rep: Reputation: 16
Wink thanks

Im trying your suggestion now jomen , Im trying over mandriva 2008.1 free . when writing commands I didnt mean to spell it exactly as I or the machine shows its only illustrative but in the future Im gonna to textually write down here.

subquestion= isnt supposed that the header comes with the libs when install it? I have seen only header for the kernel but not for programs/libs.

Thanks for your time.
 
Old 06-19-2008, 10:16 AM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Usually the distributions do not install all the headers by default - as these are only needed when someone actually wants to compile from source - which is a thing most users do not do - or just to have a custom kernel.
 
Old 06-23-2008, 02:42 PM   #8
isamuede
Member
 
Registered: Jun 2008
Posts: 51

Original Poster
Rep: Reputation: 16
Talking it istill dont work

Thanks for your suggestions , I have installed sources, headers of all kind Ive found, libs , tryied each and everyone of the ./configure script and make the new dependencies making ld. It does not work I dunno why.

Im trying to install it has 32 bits but my ./configure keep without see the libs in /usr/local/lib , codecs, whatever... [of course they are physically installed].
Thanks for any suggestions.

Alex
 
Old 06-23-2008, 05:09 PM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
What did you do (command) and what does not work (what is not found even though it is installed)?
The output of the failed .configure would help.
It is NOT about the libs only - it is about the header files. Those need to be installed too to be able to compile.
I don't know (anymore) if /usr/local/include is searched by default or if you have to tell configure about it.
 
  


Reply

Tags
bits, mplayer


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
Cross compilation (QT libraries) using gcc for Windows arunak Programming 15 04-06-2007 02:12 AM
linking error during cross compilation with ucibc libraries raklo Linux - Kernel 0 03-26-2007 12:48 AM
Libraries for MPLAYER yhus Fedora 4 12-23-2006 06:31 AM
Libraries required for mplayer! tolis Linux - Software 9 12-17-2003 03:01 PM
Installing libraries for MPlayer HiroP Linux - Newbie 8 08-29-2003 01:52 PM


All times are GMT -5. The time now is 04:30 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