[mythtv] Compile Mythtv on PS3

Nigel Pearson nigel at ind.tansu.com.au
Fri Dec 22 11:17:38 UTC 2006


The compile error on cpu_accel.c was
caused by __APPLE__ being defined.
I think the one in cpu_state.c seems to
be due to CONFIG_DARWIN being defined.

I have no idea why these Apple-specific
symbols are being defined for you.

1) Try a #undef CONFIG_DARWIN in either the
libmythmpeg2 config.h, or the top Myth one?


> I have found something interesting.  No idea what affect this may  
> have if
> any.  During the ./configuration there is a check done on /proc/ 
> cpuinfo.
> The layout of this file on the ps3 is way different then the layout on
> other machines, ie there is no model names or flags line to check  
> against.
>  Could this cause any issues?

Possible, although from a cursory glance,
those checks only affect tuning?

2) What does /proc/cpuinfo contain?

3) What is in libs/libmyth/mythconfig.h ?

4) We might need to add a block in
configure especially for the PS3.
Does uname -a reveal anything uniquely
PlayStation-ish?

5) Does adding this block help?

% svn diff configure
Index: configure
===================================================================
--- configure   (revision 12283)
+++ configure   (working copy)
@@ -484,6 +484,16 @@
      fi
fi
+# PS3, Yellow Dog Linux:
+if test -n "`cat /proc/cpuinfo | egrep 'cpu.* Cell Broadband  
Engine'`"; then
+    echo "PlayStation 3!"
+    if test x"$processor" = x"" -o x"$processor" = x"$cpu_raw" -o \
+            x"$processor" = x"unknown" -o x"$processor" =  
x"powerpc" ; then
+        processor=ppc64
+        tune=ppc64
+    fi
+fi
+
# These have to be looked up early for some types of cross-compiling  
to work
cpu_overide="no"
for opt do

--
Nigel Pearson, nigel at ind.tansu.com.au|"I haven't tested it yet, but
Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
Office: 9202 3900    Fax:  9261 3912 |"Just a bit or harmless brain
Mobile: 0408 664435  Home: 9792 6998 | manipulation, that's all" -  
Wallace



More information about the mythtv-dev mailing list