LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-27-2009, 05:06 AM   #1
lumdongtien
LQ Newbie
 
Registered: Oct 2009
Location: HaNoi
Posts: 22

Rep: Reputation: 15
MPlayer installation error


Hi,
I cannot compile successfully MPlayer. Here is make log.


In file included from /usr/include/asm/byteorder.h:63,
from /usr/include/linux/cdrom.h:14,
from stream/vcd_read.h:17,
from stream/stream_vcd.c:29:
/usr/include/linux/byteorder.h:8:3: error: #error Fix asm/byteorder.h to define one endianness
make: *** [stream/stream_vcd.o] Error 1


I checked my asm/byteorder.h and found that one endianness already defined
Quote:
#ifndef _ASM_X86_BYTEORDER_H
#define _ASM_X86_BYTEORDER_H

#include <asm/types.h>


#define __LITTLE_ENDIAN

static inline __u32 __arch_swab32(__u32 val)
{
#ifdef __i386__
# ifdef CONFIG_X86_BSWAP
asm("bswap %0" : "=r" (val) : "0" (val));
# else
asm("xchgb %b0,%h0\n\t" /* swap lower bytes */
"rorl $16,%0\n\t" /* swap words */
"xchgb %b0,%h0" /* swap higher bytes */
: "=q" (val)
: "0" (val));
# endif

#else /* __i386__ */
asm("bswapl %0"
: "=r" (val)
: "0" (val));
#endif
return val;
}
#define __arch_swab32 __arch_swab32

static inline __u64 __arch_swab64(__u64 val)
{
#ifdef __i386__
union {
struct {
__u32 a;
__u32 b;
} s;
__u64 u;
} v;
v.u = val;
# ifdef CONFIG_X86_BSWAP
asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
: "=r" (v.s.a), "=r" (v.s.b)
: "0" (v.s.a), "1" (v.s.b));
# else
v.s.a = __arch_swab32(v.s.a);
v.s.b = __arch_swab32(v.s.b);
asm("xchgl %0,%1"
: "=r" (v.s.a), "=r" (v.s.b)
: "0" (v.s.a), "1" (v.s.b));
# endif
return v.u;
#else /* __i386__ */
asm("bswapq %0"
: "=r" (val)
: "0" (val));
return val;
#endif
}
#define __arch_swab64 __arch_swab64

#include <linux/byteorder.h>

#endif /* _ASM_X86_BYTEORDER_H */


Please give me some clue

Last edited by lumdongtien; 10-27-2009 at 05:15 AM.
 
Old 10-27-2009, 08:19 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Strange... what distro and kernel version are you trying to compile on?

Is it a 64bit system?

Which gcc version are you using? (To find out, type gcc -v in a terminal)

I've managed to compile the current MPlayer successfully on various older Fedora kernels (starting from FC6) - this includes 2.6.18.1 (FC9) and the FC11 and FC10 kernels, with both GCC 3 and GCC 4 - on both AMD and Intel CPUs.

I'm guessing you are trying to compile on a 64bit system?

In general, when posting, always state at least what kernel and distro you are using, or include this in your sig. This helps in evaluating whether to answer, since ppl can see what you are using.

Also, have you tried installing MPlayer via your distro's package manager, instead of compiling from source? That can sometimes be tricky, but just installing a package is usually easy - especially if you are new or just starting out. Later, when you need more precise control (and you also have more experience) you might want to try compiling your apps yourself.

Regards,
 
Old 10-27-2009, 07:56 PM   #3
lumdongtien
LQ Newbie
 
Registered: Oct 2009
Location: HaNoi
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rylan76 View Post
Strange... what distro and kernel version are you trying to compile on?

Is it a 64bit system?

Which gcc version are you using? (To find out, type gcc -v in a terminal)

I've managed to compile the current MPlayer successfully on various older Fedora kernels (starting from FC6) - this includes 2.6.18.1 (FC9) and the FC11 and FC10 kernels, with both GCC 3 and GCC 4 - on both AMD and Intel CPUs.

Here are my os & gCC
Quote:

[toannc@viettel ~]$ uname -a
Linux viettel.itcenter.toannc 2.6.27.37-170.2.104.fc10.i686 #1 SMP Mon Oct 12 22:01:53 EDT 2009 i686 i686 i386 GNU/Linux

[toannc@viettel ~]$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux
Thread model: posix
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)

Quote:
In general, when posting, always state at least what kernel and distro you are using, or include this in your sig. This helps in evaluating whether to answer, since ppl can see what you are using.

Also, have you tried installing MPlayer via your distro's package manager, instead of compiling from source? That can sometimes be tricky, but just installing a package is usually easy - especially if you are new or just starting out. Later, when you need more precise control (and you also have more experience) you might want to try compiling your apps yourself.
Thank for you advice & I'll remember that. Also, I have some experience
 
Old 10-27-2009, 08:48 PM   #4
bendib
Member
 
Registered: Feb 2009
Location: I'm the rat in your couch.
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174

Rep: Reputation: 40
You are COMPILING MPlayer on Fedora 10? yum install mplayer mplayer-gui and to launch it type gmplayer, although it should show in the menus. I use nothing but MPlayer, and the thought of compiling never crossed my mind.
 
Old 10-27-2009, 09:05 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
it dose build but i have not done that since fedora 8
install rpmfusion then gmplayer from yum .
see:
http://www.mjmwired.net/resources/mjm-fedora-f11.html
http://www.mjmwired.net/resources/mj...l#mediaplayers
or make your life easier and use DM's autoten
http://www.dnmouse.org/autoten.html

also fedora 10 will hit it's " End of Life " in about 60 days . I would install fedora 11 or in about 30 days install fedora 12 .
 
Old 10-27-2009, 10:24 PM   #6
lumdongtien
LQ Newbie
 
Registered: Oct 2009
Location: HaNoi
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
it dose build but i have not done that since fedora 8
install rpmfusion then gmplayer from yum .
see:
http://www.mjmwired.net/resources/mjm-fedora-f11.html
http://www.mjmwired.net/resources/mj...l#mediaplayers
or make your life easier and use DM's autoten
http://www.dnmouse.org/autoten.html

also fedora 10 will hit it's " End of Life " in about 60 days . I would install fedora 11 or in about 30 days install fedora 12 .
Sorry, but I intend to install it from source
 
Old 10-27-2009, 10:30 PM   #7
bendib
Member
 
Registered: Feb 2009
Location: I'm the rat in your couch.
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174

Rep: Reputation: 40
Quote:
Originally Posted by John VV View Post
also fedora 10 will hit it's " End of Life " in about 60 days . I would install fedora 11 or in about 30 days install fedora 12 .
Updates will stop, but the repositories will keep running, hell, FC7 still works in YUM.
I still use Fedora 10 on my desktop, and I see no reason to go through the bandwidth of upgrading, and I have about 80GBs worth of data I cannot back up. (I do not have a medium large enough) so a clean install is out of the picture. If I see reason to upgrade, I will do it with preupgrade. I already did a upgrade from FC9 to FC10.

Last edited by bendib; 10-27-2009 at 10:37 PM.
 
Old 10-27-2009, 11:38 PM   #8
bendib
Member
 
Registered: Feb 2009
Location: I'm the rat in your couch.
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174

Rep: Reputation: 40
Quote:
Originally Posted by lumdongtien View Post
Hi,
I cannot compile successfully MPlayer. Here is make log.


In file included from /usr/include/asm/byteorder.h:63,
from /usr/include/linux/cdrom.h:14,
from stream/vcd_read.h:17,
from stream/stream_vcd.c:29:
/usr/include/linux/byteorder.h:8:3: error: #error Fix asm/byteorder.h to define one endianness
make: *** [stream/stream_vcd.o] Error 1


I checked my asm/byteorder.h and found that one endianness already defined




Please give me some clue
You still should have used the repo. It's much easier.
 
Old 10-28-2009, 01:58 AM   #9
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by bendib View Post
You still should have used the repo. It's much easier.
If you do use a repository, what can you do to get a library or feature in MPlayer that the packager of the .rpm you eventually get did not include?

Is there a way to get, for example, lirc functionality without recompiling MPlayer yourself locally? (Besides of course trying to find somebody who has .rpm'ed the specific type of MPlayer binary you want...)
 
Old 10-28-2009, 02:00 AM   #10
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by lumdongtien View Post
Sorry, but I intend to install it from source
Ok, have you tried a different version of MPlayer than the one you are trying to compile now? I seem to remember once having problems getting it to compile on GCC 4 with an older version of MPlayer - getting the latest source tarball (at that time) solved the compile issue.
 
Old 10-28-2009, 02:02 AM   #11
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Quote:
/usr/include/linux/byteorder.h:8:3: error: #error Fix asm/byteorder.h to define one endianness
make: *** [stream/stream_vcd.o] Error 1
Hmm - the error says "Fix asm/byteorder.h to define ONE endianness" - how about putting

#define CONFIG_X86_BSWAP

at the top of the byteorder file?

How about if you post the contents of your

Code:
#include <linux/byteorder.h>
as well?

Last edited by rylan76; 10-28-2009 at 02:05 AM.
 
Old 10-28-2009, 02:19 AM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
from source ??

well What version of mplayer is it ?
http://www.mplayerhq.hu/design7/dload.html
from here - svn - or an older version ?
Code:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
and do you have the 1/2 million prerequisites installed ( there are a lot of them )
 
  


Reply



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 Error Message - Error Opening/Initializing Video Out Device Harpo Linux - Newbie 12 12-29-2009 11:26 PM
Error in Mplayer installation avikalbansal Linux - Software 1 09-29-2006 02:26 PM
MPlayer Installation->libmp3lame.so.0 error kerryblue19 Linux - Software 11 03-17-2005 07:46 PM
mplayer installation error and acrobat reader phi_rad Linux - Newbie 4 11-08-2003 11:07 AM
MPlayer help needed...error during installation Prince_Maxwell Linux - Newbie 3 06-10-2003 02:18 PM

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

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