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
 
LinkBack Search this Thread
Old 05-26-2004, 12:08 PM   #1
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Rep: Reputation: 30
mplayer on 64bit system


How do I compile Mplayer in 32bit emulation so that the win32 codecs work?

system specifications below

thanks for your help
 
Old 05-26-2004, 12:13 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
have you tried compiling it the way the directions in the README file reccomend?
 
Old 05-26-2004, 12:38 PM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
did you try to put the codecs in..........
Code:
/usr/local/lib/codecs
and compile as usual??
 
Old 05-26-2004, 01:32 PM   #4
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
I have not tried to compile it yet, I understand that if I compile it for 64 bit, then the 32 bit codecs won't work. I think I must compile it as 32 bit (which I presume is not default)

Have you compiled mplayer for 64 bit system successfully?
 
Old 05-26-2004, 01:45 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
nope I have an old fashioned 32bit system :-). I would try and install it the normal way(for a 32bit system) and see what happens.
 
Old 05-26-2004, 02:34 PM   #6
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
it appears (from reading around) that people do have problems with 64 bit working media players, so would like to get it right from the start.

any help would be greatly appreciated from those who have managed to get it working using the 64 bit amd processor

thanks
 
Old 05-26-2004, 04:57 PM   #7
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try compiling it for 64 bit and find out. If you have copied the codecs to /usr/lib/codecs and wmv or mov files do not work. Then it does not work. Compile it for 32 bit and play a wmv or mov file. If it works, then you do not have to worry. Most video and audio files that you will play comes with Mplayer. AMD processors since their 80386 works well with old code (16-bit) as well as it does as its new code (32-bit). With INTEL processors you have to worry about compiling programs for the same architecture because they have a huge performance penatly if they are running old architect code. AMD 64-bit processor will run well with 32-bit code. You probably will see or feel about 5% to 10% performance boost switching to 64-bit programs. Remember 32-bit programs has been optimize for over 12 years. 64-bit code has been around for a few years in INTEL's house only for the Itanium processor. AMD introduced their own 64-bit code and its only been around for a few months.

You can try learn how to program in 64-bit to help other people switch to the new architecture.
 
Old 05-26-2004, 05:44 PM   #8
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
how do I compile in 32 bit?
 
Old 05-26-2004, 06:10 PM   #9
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Just compile it the way the README tells you to. untar the file then read the file called README. It will tell you exactly how to do it. It is not hard at all.
 
Old 05-27-2004, 02:59 AM   #10
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
won't that compile it 64 bit by default, as my processor, operating system etc are all 64 bit.??

as you can probably tell, my understanding of these things is pretty limited, so please forgive my ignorance.

I successfuly installed Mplayer on my previous machine (32bit) with Suse9.0
 
Old 05-28-2004, 06:23 AM   #11
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
answering my own question, SuSE has both a 32bit and a 64 bit console (just noticed)
so will try to compile using the 32bit console and see what happens
 
Old 05-28-2004, 11:57 AM   #12
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
have tried to compile both from the 32bit console & the 64 bit console but don't work!!

32 bit complains that "obsolete" binutils installed on ./configure
64 bit configures (but complains no x11 support), then makes, (with lots of errors) and then won't install (complaints about architecture etc)

(have all the necessary packages installed)

oh well, maybe will have to wait a year or two until can watch DVD's on Linux again......
 
Old 05-28-2004, 04:47 PM   #13
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Do a find on libbfd* and libopcodes*. Also find as and ld. Then run them with their version option. If all of them are equal to or above 2.11, you will be fine. If they are not, you may have to find newer binutils and libbinutils files. Then install or upgrade them.

To find libbfd* and libopcodes*, at the console type

find / -iname 'libbrd*'
find / -iname 'libopcodes*'

If the above is giving you permission problems, add "2>/dev/null" at the end of each command above.

If ./configure works ok after you installed or upgraded binutils, you may want to edit config.mak to make sure mplayer is compiled for 32-bit correctly. First make a backup file something like config.mak.bak. Then use a text editor like vi and edit it. Find the line that says OPTFLAGS and add -m32. This will make sure the compiler is going to compile in 32-bit. There are many other options to add or change. You may want to change the setting that saids -O4 to -O3 or -O2. Go to http://gcc.gnu.org/onlinedocs/gcc/i3...6-64%20Options
to see a list of options you can use to tweak programs to be very, very efficient for your processor. You may want to disable sse and sse2 support because AMD 64-bit processors are not optmized very well with those instructions. IMO, AMD processors works faster with -m486 option for some strange reason.

If mplayer compiles correctly and you tested it with a few video and audio files, you may want to re-compile mplayer again with largefile support, gui, and something else that you want.
 
Old 05-29-2004, 06:05 AM   #14
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
Thank you electro for your help.

it appears I have the correct packages installed,
modified the config.mak file as you suggested
still get the errors below on configuration.

Have I edited the config.mak file correctly

should I use the linux32 terminal ?


-------------------------------------------------------------------------

le@linux:~> find / -iname 'libopcodes*' 2>/dev/null
/usr/lib/libopcodes.la
/usr/lib/libopcodes.so
le@linux:~> find / -iname 'libopcodes*' 2>/dev/null
/usr/lib/libopcodes.la
/usr/lib/libopcodes.so
/usr/lib/libopcodes.a
/usr/lib/libopcodes-2.15.90.0.1.1.so
/usr/lib64/libopcodes.la
/usr/lib64/libopcodes.so
/usr/lib64/libopcodes.a
/usr/lib64/libopcodes-2.15.90.0.1.1.so
le@linux:~> find / -iname 'libbfd*' 2>/dev/null
/usr/lib/libbfd-2.15.90.0.1.1.so
/usr/lib/libbfd.a
/usr/lib/libbfd.la
/usr/lib/libbfd.so
/usr/lib64/libbfd-2.15.90.0.1.1.so
/usr/lib64/libbfd.a
/usr/lib64/libbfd.la
/usr/lib64/libbfd.so
le@linux:~>


----------------------------------------------------------------
OPTFLAGS = -I../libvo/ -I../../libvo -O2 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(EXTRA_INC)
-m32

--------------------------------------------------------------------------

(./configure --enable gui)
Error: X11 support required for GUI compilation

-----------------------------------------------------------------

(./configure --with-gtk-config=opt/gnome/bin/gtk-config)
'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few AVI files that
cannot be played due to missing Open Source video/audio codec support.


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.

You've disabled VIDIX. Although it would be better to PORT it instead.
Have a look at the documentation for supported cards!
 
Old 05-30-2004, 05:16 AM   #15
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Install the gtk libraries, gtk development, XFree86 libraries, and XFree86 development. After you install those, you should be a little closer.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling MPlayer 32bit on Fedora 4 64bit mwales Linux - Software 2 08-28-2006 05:59 AM
how do i know if system is 32bit or 64bit? greythorne Suse/Novell 5 09-15-2005 08:56 AM
Best way to install 9.3 on an AMD 64bit system? elsmack Suse/Novell 5 05-09-2005 03:12 AM
Slackware on 64bit system BeIiaI Slackware 5 04-23-2005 04:38 AM
64bit Mplayer, and win32codecs ? qwijibow Linux - Software 4 01-11-2005 06:10 AM


All times are GMT -5. The time now is 05:14 AM.

Main Menu
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