[mythtv-users] Re:MythTV on PPC

Patrick Benton patrickb at umich.edu
Thu May 22 19:12:50 EDT 2003


I am trying to get MythTV compiled under Mandrake 9.1 PPC on my Ti-Powerbook 
to use strictly as a frontend.  I can't get the patch to apply cleanly 
against the MythTV 0.80 release.  Here is what I did:

*****************************************
[spumco at mypowerbook mythtv-0.8]$ patch -p0 < ppc-mythtv-20030414.patch
patching file settings.pro
patching file filters/invert/invert.pro
patching file filters/linearblend/linearblend.pro
patching file libs/libavcodec/libavcodec.pro
Hunk #2 succeeded at 79 (offset -1 lines).
patching file libs/libmyth/libmyth.pro
patching file libs/libmythtv/NuppelVideoPlayer.cpp
Hunk #1 succeeded at 113 (offset 11 lines).
Hunk #2 succeeded at 342 (offset 25 lines).
Hunk #3 succeeded at 3421 (offset 829 lines).
Hunk #4 succeeded at 3449 (offset 829 lines).
Hunk #5 succeeded at 3467 (offset 829 lines).
patching file libs/libmythtv/NuppelVideoPlayer.h
Hunk #1 succeeded at 232 (offset 1 line).
patching file libs/libmythtv/NuppelVideoRecorder.cpp
Hunk #1 FAILED at 1220.
Hunk #2 succeeded at 1173 (offset -75 lines).
Hunk #3 succeeded at 1182 (offset -75 lines).
Hunk #4 succeeded at 1206 (offset -75 lines).
Hunk #5 succeeded at 1217 (offset -75 lines).
Hunk #6 succeeded at 1236 (offset -75 lines).
Hunk #7 succeeded at 1284 (offset -75 lines).
Hunk #8 succeeded at 1293 (offset -75 lines).
Hunk #9 succeeded at 1305 (offset -75 lines).
Hunk #10 succeeded at 1903 (offset -339 lines).
Hunk #11 succeeded at 1983 (offset -675 lines).
Hunk #12 FAILED at 2077.
Hunk #13 FAILED at 2090.
Hunk #14 FAILED at 2100.
Hunk #15 FAILED at 2124.
Hunk #16 succeeded at 2152 (offset -665 lines).
Hunk #17 succeeded at 2192 (offset -665 lines).
Hunk #18 succeeded at 2257 (offset -665 lines).
Hunk #19 succeeded at 2270 (offset -665 lines).
Hunk #20 succeeded at 2284 (offset -665 lines).
Hunk #21 FAILED at 2299.
6 out of 21 hunks FAILED -- saving rejects to file 
libs/libmythtv/NuppelVideoRecorder.cpp.rej
patching file libs/libmythtv/RTjpegN.h
patching file libs/libmythtv/format.h
patching file libs/libmythtv/libmythtv.pro
Hunk #1 succeeded at 6 with fuzz 1.
can't find file to patch at input line 842
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: libs/libmythtv/nuppeldecoder.cpp
|===================================================================
|RCS file: /var/lib/cvs/MC/libs/libmythtv/nuppeldecoder.cpp,v
|retrieving revision 1.5
|diff -u -b -r1.5 nuppeldecoder.cpp
|--- libs/libmythtv/nuppeldecoder.cpp   14 Apr 2003 22:11:12 -0000      1.5
|+++ libs/libmythtv/nuppeldecoder.cpp   15 Apr 2003 00:57:17 -0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
28 out of 28 hunks ignored
patching file libs/libmythtv/yuv2rgb.cpp
patching file libs/libvbitext/libvbitext.pro
patching file programs/menutest/menutest.pro
patching file programs/mythbackend/mythbackend.pro
patching file programs/mythepg/mythepg.pro
patching file programs/mythfilldatabase/mythfilldatabase.pro
patching file programs/mythfrontend/mythfrontend.pro
Hunk #2 FAILED at 23.
1 out of 2 hunks FAILED -- saving rejects to file 
programs/mythfrontend/mythfrontend.pro.rej
patching file programs/mythprogfind/mythprogfind.pro
patching file programs/mythtv/mythtv.pro
patching file setup/setup.pro
patching file themes/themes.pro
*****************************************

Obviously, it won't compile after applying the patch.  Does anyone have any 
suggestions?

Thanks,

Patrick Benton



--Begin-Quote-------------------------------------------------
I've just sent my patch to the list. Give it a try. I'm not
sure Isaac will accept it soon so I'd appreciate it if someone else
could test it. You can apply it with "patch -p0". For your G3, I
think you can edit "settings.pro" and change "-mcpu=7400" to
"-mcpu=750". Let me know if you run into problems.

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

Yes, the PowerPC can run in both modes but both Linux and
MacOS X use big-endian mode. I think little-endian mode is used in
some embedded systems.

MythTV is affected because the nuv file is a binary file which
has little-endian fields in some headers -- these fields need to be
byte-swapped so that they're interpreted correctly on PPC. The pixmap
RGB and sound stream formats are similarly affected.

MythTV is not really different from any other software that
reads/writes binary files. It's just that most Unix software works
because they've already been ported to big-endian machines (like Sun,
HP, and IBM workstations). For older stuff, they may have even been
developed on big-endian machines. I guess it's really only when new
binary file formats show up that some porting needs to be done. (I
remember when xmms would just generate screeching sounds on LinuxPPC!)
-- 
Gervasio, Jr.
gtgj at pacbell.net 


More information about the mythtv-users mailing list