Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174
Rep:
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.
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174
Rep:
Quote:
Originally Posted by John VV
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.
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174
Rep:
Quote:
Originally Posted by lumdongtien
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.
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...)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.