Porting XBMC to Mac OS X (Leopard) - Developers only!

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
shaneuk Offline
Member
Posts: 95
Joined: Nov 2005
Reputation: -10
Post: #11
this will be extremely popular, there are no decent media centers out there for osx.

thanks for taking the time out to port this, if you'd like anyone to test it i run

17" iMac intel core 2 duo
ati radeon x1600 (128mb vram)

and

Macbook intel core 2 duo
onboard x3100 Intel Video Card, (144mb vram)

both running OS X Leopard 10.5.1
find quote
elan Offline
Team Plex
Posts: 276
Joined: Dec 2007
Location: Maui
Post: #12
Gamester17 Wrote:You are using the Linux port branch in the SVN as your base, right? /xbmc/branches/linuxport/XBMC/

Yes, that's the one I'm using.

Quote:Also, where did you get that skin, becuase I can tell from the logo in the top left corner that it is a relativly old version of the PM3 skin(!)

Oh, that's funny. I didn't do anything to pick or checkout a skin, so it must be the default one that gets checked out on the Linux port branch? Where should I be getting it from?

Quote:/xbmc/trunk/sources/ only contains the Xbox versions of those libraries, I think that you may want to /xbmc/branches/linuxport/sources/ instead for the Linux versions.

Thanks, I'll use those!

Quote:For ideas on how to build SDL using OpenGL for Mac OSX I suggest you refer to the documentation (Wiki) on http://www.libsdl.org

Seems to be working great!

Thanks for the helpful information!

-elan
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,564
Joined: Oct 2003
Reputation: 138
Post: #13
Nice work, elan.

Let us know what modifications are going to be necessary once you've cleaned it up a bit - hopefully we can keep the code as portable as possible Smile

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
elan Offline
Team Plex
Posts: 276
Joined: Dec 2007
Location: Maui
Post: #14
yuvalt Wrote:Fuck Broken OwningCiriticalSection I don't recall that debug message Laugh

Big Grin

Yeah, I need to figure out how to do TLS on OS X. I think I'll try to use pthread_setspecific...if this works, the Linux port could probably use this as well, so as to have exactly the same implementation, even though using __thread is so much easier.
find quote
elan Offline
Team Plex
Posts: 276
Joined: Dec 2007
Location: Maui
Post: #15
By the way, I've been treating the OS X target as sort of a sub-port of Linux, so I leave _LINUX defined and then do...

#ifdef __APPLE__
...
#endif

...since OS X is pretty much UNIX. In the long term, it may make sense to define something like _UNIX at the high level and then #ifdef for LINUX, OS X, etc.

I hope this is alright, it certainly made the port easier, but please let me know if this isn't seen as the right way of doing things. Where it made sense I have whole new subclasses for things (like the PortAudio player) that live alongside the Linux and Windows ones.

Anyway, I want to get my changes merged into the branch as soon as possible. I need to do a bit more work and get things working better first.
find quote
yuvalt Offline
Retired Team-XBMC Member
Posts: 421
Joined: May 2004
Reputation: 0
Location: Israel
Post: #16
elan Wrote:By the way, I've been treating the OS X target as sort of a sub-port of Linux, so I leave _LINUX defined and then do...

#ifdef __APPLE__
...
#endif

...since OS X is pretty much UNIX. In the long term, it may make sense to define something like _UNIX at the high level and then #ifdef for LINUX, OS X, etc.

I hope this is alright, it certainly made the port easier, but please let me know if this isn't seen as the right way of doing things. Where it made sense I have whole new subclasses for things (like the PortAudio player) that live alongside the Linux and Windows ones.

Anyway, I want to get my changes merged into the branch as soon as possible. I need to do a bit more work and get things working better first.
Yeah, I'm all for it. Actually even today there are places that should not have _LINUX . I think that adding OSX support will be a compelling event to get that #define fixed.

Can you elaborate a bit on what's working for you in the apple port and what requires more work?

-Yuval
find quote
elan Offline
Team Plex
Posts: 276
Joined: Dec 2007
Location: Maui
Post: #17
yuvalt Wrote:Can you elaborate a bit on what's working for you in the apple port and what requires more work?

After a single night's work, not too much (but I was happy to get as far as I did). It starts, I can browse through the menu tree, go to settings, etc. Browsing audio/video/pictures doesn't work because of a TLS issue (I think). Network needs work, and I need to check that DLLs can load and videos play. I also need to write an audio player using Portaudio.

-elan
find quote
toonz Offline
Junior Member
Posts: 1
Joined: Dec 2007
Reputation: 0
Post: #18
elan Wrote:I've begun porting the code over to Mac OS X 10.5.1

That's AWESOME!
I personally think this'd be perfect ... just imagine it - a Mac Mini running XBMC. mmmmmm
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,595
Joined: Sep 2003
Reputation: 9
Location: Sweden
Wink  QuartzExtreme Post: #19
elan Wrote:2007-12-12 00:38:44.748 XboxMediaCenter[54121:813] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
Seems like you need to make SDL use Quartz Extreme (OpenGL acceleration for Quartz Compositor) instead of QuickDraw
http://en.wikipedia.org/wiki/Quartz_Compositor
http://en.wikipedia.org/wiki/Core_OpenGL

Again, best is to refer to the libsdl.org website like their FAQ http://www.libsdl.org/faq.php?action=lis...category=7

Nerd

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,595
Joined: Sep 2003
Reputation: 9
Location: Sweden
Question  Audio under SDL on Mac OS X? Post: #20
elan Wrote:I also need to write an audio player using Portaudio
http://en.wikipedia.org/wiki/PortAudio
interesting, ...but I thought that libSDL took care of that? or will PortAudio for Mac OS X work like ALSA under Linux as a low-level layer for the hardware (leaving libSDL to take care of the high-level stuff)?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Post Reply