[mythtv-users] MythTV on PPC

Cedar McKay cedarmckay at mac.com
Tue Apr 15 05:06:18 UTC 2003


>
>         Okay, I'll catch up to the latest CVS, clean it up, and try
> and get something out late tonight.
>


Super, I'm looking forward to it.
Maybe at the same time you can enlighten me about this big-endian 
issue. I've done a bit of poking around and found a couple of things 
that suggest that PPC supports big _or_ little endian words. Here are a 
couple of quotes I found on message boards:

> Since the Motorola 680x0 series was big endian, though the PowerPC can 
> run in either mode, Apple uses the PowerPC in big endian mode. The   
> IA32, by contrast, is little endian, and can only run in little-endian 
>  mode.

I also found this:

> the PowerPC can indeed manage either byte order, but some operations 
> have extra boundary conditions in little-endian mode. <snip> it`s both 
> possible and desirable to limit the endian-sensitivity of software to 
> small parts of the kernel, small routines in the C library, and small 
> parts of a few specialised applications.  most programs shouldn`t be 
> bothered about which scheme is in use. perhaps this is an appropriate 
> time to encourage people to make the effort to use portable binary 
> representations in files exported by a program (ie, non-temporary 
> files).


I'm just curious why with whole distros and all their packages compiled 
for PPC, why mythtv has a problem with this issue?  Or did mandrake 
have to patch/port all those packages, fixing the endian issue one 
package at a time? Also, I've compiled a number of programs from source 
on linux ppc and more often OS X and not run into this issue. What is 
different about myth? Is it something inherent to writing a pvr 
program, or is it just a failure to write portable code?


Finally, when I compile for ppc what else do I have to do other than 
apply your endian patch? The compile error I posted earlier seemed to 
suggest that I had not set the arch correctly? The heart of the error 
seemed to be:
cc1plus: invalid option `arch=powerpc'
What does a correct settings.pro file look like when compiling for ppc?


thanks again for your help!


Cedar



More information about the mythtv-users mailing list