LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-13-2005, 03:36 AM   #1
ciopi
LQ Newbie
 
Registered: May 2004
Location: Columbus, OH
Distribution: Mandriva 2006
Posts: 22

Rep: Reputation: 15
Unhappy compiling 32 bit mplayer on x86_64


Hi

I am trying to compile 32 bit mplayer(source files from CVS) on Mandriva 2006 x86_64(upgraded from 2005 LE). For that I'm doing:

Code:
export CC="gcc -m32"     
export LDFLAGS='-L/usr/X11R6/lib'  
./configure --enable-gui
Everything goes fine till here. Running make fails however at some point:

Code:
gcc -m32 -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.      -I/usr/include/freetype2   -I/usr/X11R6/include   -I./libavutil -I./libavcodec  -o cpudetect.o cpudetect.c
{standard input}: Assembler messages:
{standard input}:2524: Error: bad register name `%rbx'
{standard input}:2526: Error: bad register name `%rbx'
{standard input}:2550: Error: bad register name `%rbx'
{standard input}:2552: Error: bad register name `%rbx'
{standard input}:2611: Error: bad register name `%rbx'
{standard input}:2613: Error: bad register name `%rbx'
{standard input}:2658: Error: bad register name `%rbx'
{standard input}:2660: Error: bad register name `%rbx'
{standard input}:2686: Error: bad register name `%rbx'
{standard input}:2688: Error: bad register name `%rbx'
make: *** [cpudetect.o] Error 1
Compiling 64 bit mplayer works. However, the 32 bit(rpm) plays certain formats better. If I compile from source, I hope to get for instance faad support(and thus have audio when playing Apple trailers). Please tell me if there is a way of getting this compilation done.

Thank's very much.

Last edited by ciopi; 11-13-2005 at 04:10 AM.
 
Old 11-14-2005, 04:24 AM   #2
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
Hello,

I think the compiler try's to compile with 32bit for the 64bit architecture.
There is an option for configure to set the target architecture.
Another option is to disable CPU-detecttion.

HTH
 
Old 11-14-2005, 10:10 AM   #3
ciopi
LQ Newbie
 
Registered: May 2004
Location: Columbus, OH
Distribution: Mandriva 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thank's karpi. You solved this problem. I'm getting a new error unfortunately:

Code:
/usr/bin/ld: skipping incompatible /usr/lib64/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
I ran configure the following way:
Code:
./configure --enable-gui --disable-runtime-cpudetection --target=i386-linux --with-extralibdir=/usr/lib
In /usr/lib I found:
libgtk-1.2.so.0 libgtk-x11-2.0.so.0
libgtk-1.2.so.0.9.1 libgtk-x11-2.0.so.0.800.3

What am I doing wrong again ? Thank's for any help.





Problem solved: had to install the libgtk-2.0_0 rpm

Last edited by ciopi; 11-16-2005 at 12:13 AM.
 
  


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
Mplayer install error on FC4 x86_64 ltracy Linux - Software 17 03-10-2006 07:46 PM
mplayer fails on FC4 x86_64 hedgert Linux - Software 5 12-09-2005 01:31 PM
Errors during the test suite for Glibc-20050926 32 Bit � Cross compile x86_64 Basel Linux From Scratch 3 10-29-2005 06:45 AM
Use 32 bit and x86_64 Linux on same system? jfried Linux - Newbie 1 11-15-2004 11:05 PM
Problems with mplayer GUI in Fedora C2 x86_64 dwmorton Linux - Newbie 5 06-19-2004 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:05 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
Open Source Consulting | Domain Registration