XBMC Community Forum
Developers wanted to help port XBMC for Mac to PPC (PowerPC) processor architecture - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: Developers wanted to help port XBMC for Mac to PPC (PowerPC) processor architecture (/showthread.php?tid=36229)

Pages: 1 2 3 4 5 6 7 8


- davilla - 2009-04-06 02:14

ding Wrote:its xcode 3.1 I believe. The one that comes with iphone 2.2 sdk. I am running 10.5.6. I will try to redo the macports with all ppc (thats gonna take a while)Sad and download the latest svn code. Let you know how that turns out. BTW what is the svn code if you just want to download changed files only?

min version of Xcode is 3.1.2.

svn up


- ding - 2009-04-06 21:06

Yup just checked it is 3.2.1. BTW I recompiled all of the macports to ppc and updated to the latest source in the svn and everything is smooth, no glitches any more. One thing is that I get a compile error about the preflight file not being found. But it builds fine.
Quote:building file list ... rsync: link_stat "/Users/me/XBMC/tools/PackageMaker/preflight" failed: No such file or directory (2)
Also with the latest version you are supposed to be able to play DVD's but no mater what I try either ripped(no copy protection) or store bought DVDs I get absolutely no playback. I am guessing this is probably a ppc thing since no one is reporting it on the intel side of things. All and all the ppc version is pretty solid. If I had to list the things that affect me they would be these...

1. no DVD playback
2. no python scripting
3. mythtv protocol stuff crashing the app
4. medium-high cpu just sitting there (its not unusable so not a real big deal since cpu goes down while playing movie)

All things considered not bad at all.


- davilla - 2009-04-06 22:09

ding Wrote:Yup just checked it is 3.2.1. BTW I recompiled all of the macports to ppc and updated to the latest source in the svn and everything is smooth, no glitches any more. One thing is that I get a compile error about the preflight file not being found. But it builds fine.

Also with the latest version you are supposed to be able to play DVD's but no mater what I try either ripped(no copy protection) or store bought DVDs I get absolutely no playback. I am guessing this is probably a ppc thing since no one is reporting it on the intel side of things. All and all the ppc version is pretty solid. If I had to list the things that affect me they would be these...

1. no DVD playback
2. no python scripting
3. mythtv protocol stuff crashing the app
4. medium-high cpu just sitting there (its not unusable so not a real big deal since cpu goes down while playing movie)

All things considered not bad at all.

the location of preflight just moved in svn last night.

DVD playback on ppc -- would be nice to see a pastebin of xbmc.log when you try this, both ripped (ISO?) and real DVD. That might help isolate it.


- Beenje - 2009-04-06 22:25

Thanks for your feedback ding!
I've been looking at python lately...
I managed to run a very simple script to print hello world in the log (I said simple Laugh).
I run into problem when using xbmc modules in the script.
Haven't given up yet!

About DVD, going in the VIDEO_TS directory and playing a VOB file works in my build.
Gonna try to look why we can't play the DVD directly.

xbmc is quite CPU intensive on my intel iMac as well.
Don't think that's a ppc issue.


- Beenje - 2009-04-06 23:35

Definitively some endian pb in iso9660.cpp (wSectorSizeLE / dwFileLengthLE ...)
This needs to be fixed for DVD playback.
Will look at it when I have some time (in the week I hope Wink)


- ding - 2009-04-07 01:58

davilla Wrote:the location of preflight just moved in svn last night.

DVD playback on ppc -- would be nice to see a pastebin of xbmc.log when you try this, both ripped (ISO?) and real DVD. That might help isolate it.
Everytime I hit the button I get this...
Quote:19:50:52 T:2691577904 M:1089241088 DEBUG: Load home-dvd.gif: 29.9ms (bundled)
19:50:53 T:2691577904 M:1089024000 DEBUG: OnMessage : Translating XBMC.PlayDVD()
19:50:53 T:2691577904 M:1089024000 DEBUG: OnMessage : To XBMC.PlayDVD()
19:50:54 T:2691577904 M:1087569920 DEBUG: Load home-mymusic\home-mymusic3.png: 94.8ms (bundled)
Here is the pastebin if you want more info...
http://www.pastebin.ca/1384279
I havent tried ISO's yet just ripped/burned DVD's. BTW beenje the python stuff is definitely on the top of the listSmileI'm glad you are looking in that direction.


- Beenje - 2009-04-09 22:44

ding Wrote:1. no DVD playback

I've submitted a new patch (see http://trac.xbmc.org/ticket/6038)
DVD playback seems to work with that fix.

But there might be some more bugs.
I had subtitles displayed with strange colors...


- davilla - 2009-04-09 23:04

Beenje Wrote:I've submitted a new patch (see http://trac.xbmc.org/ticket/6038)
DVD playback seems to work with that fix.

But there might be some more bugs.
I had subtitles displayed with strange colors...

see http://sourceforge.net/mailarchive/forum.php?thread_name=50267B62-B55B-48FE-BD3E-1E8E5DC7D10D%40nowonline.co.uk&forum_name=dvd-devel

and check if that fixes it. not sure if xbmc uses the dvd palette for colors or not.


- Beenje - 2009-04-10 10:02

davilla Wrote:see http://sourceforge.net/mailarchive/forum.php?thread_name=50267B62-B55B-48FE-BD3E-1E8E5DC7D10D%40nowonline.co.uk&forum_name=dvd-devel

and check if that fixes it. not sure if xbmc uses the dvd palette for colors or not.

I tried but no change.
Problem must come from somewhere else.


- Beenje - 2009-04-10 19:39

davilla Wrote:see http://sourceforge.net/mailarchive/forum.php?thread_name=50267B62-B55B-48FE-BD3E-1E8E5DC7D10D%40nowonline.co.uk&forum_name=dvd-devel

and check if that fixes it. not sure if xbmc uses the dvd palette for colors or not.

The problem was in DVDPlayerSubtitle.cpp when reading the palette given by libdvdnav.
I've submitted a patch (see http://trac.xbmc.org/ticket/6038).

It looks like the extra "&" in dvdnac.c does not have any impact.

DVD playback seems to look good now!


- ding - 2009-04-11 01:36

Is this up on the svn yet? I just updated svn and did a new build and I am still not able to play dvd's.


- davilla - 2009-04-11 01:41

ding Wrote:Is this up on the svn yet? I just updated svn and did a new build and I am still not able to play dvd's.

not yet. check back this weekend.


- Beenje - 2009-04-13 12:20

I think I finally got how to port XBPythonDllFuncs.S to ppc.
Not sure it is working yet.
I have one "stupid" pb, that is the definition of the macro.

For x86, we have:
Code:
#define FUNCTION(name) \
        .globl _##name; \
        _##name:         \
                .....

As the macro is expanded to one line. The ";" character is used to end the ".globl" line declaration.
The problem is that ";" is the comment character for PowerPC.
So it can't be used to end the ".globl" declaration.
I haven't found how to do that without a CR (which can't be used in the macro).
Right now, I don't see how to do without 2 macros... which I find a bit ugly...
Any idea?


- Beenje - 2009-04-14 07:21

Beenje Wrote:As the macro is expanded to one line. The ";" character is used to end the ".globl" line declaration.
The problem is that ";" is the comment character for PowerPC.
So it can't be used to end the ".globl" declaration.
I haven't found how to do that without a CR (which can't be used in the macro).
Any idea?

Thanks a lot to phi for giving me the answer!
Character to use is "@".

Code:
#define FUNCTION(name)                          \
        .globl _##name                          @\
        _##name:                                @\
                ...........



- CountChocula - 2009-04-14 15:06

Been following this and just wanted to say keep up the good work, this is all sounding really good. I don't know how to compile etc etc but if you have an .app file i am happy to test the program if you want some more feedback.

I have a 2.1ghz PPC imac G5