Porting XBMC to Mac OS X (Leopard) - Developers only! - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: Porting XBMC to Mac OS X (Leopard) - Developers only! (/showthread.php?tid=30074)
- shaneuk - 2007-12-12 21:20
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)
Macbook intel core 2 duo
onboard x3100 Intel Video Card, (144mb vram)
both running OS X Leopard 10.5.1
- elan - 2007-12-13 00:44
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!
- jmarshall - 2007-12-13 01:08
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
- elan - 2007-12-13 01:11
yuvalt Wrote:Fuck Broken OwningCiriticalSection I don't recall that debug message
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.
- elan - 2007-12-13 01:23
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...
...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.
- yuvalt - 2007-12-13 01:39
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...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?
- elan - 2007-12-13 02:58
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.
- toonz - 2007-12-13 07:17
elan Wrote:I've begun porting the code over to Mac OS X 10.5.1
I personally think this'd be perfect ... just imagine it - a Mac Mini running XBMC. mmmmmm
QuartzExtreme - Gamester17 - 2007-12-13 10:30
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
Again, best is to refer to the libsdl.org website like their FAQ http://www.libsdl.org/faq.php?action=listentries&category=7
Audio under SDL on Mac OS X? - Gamester17 - 2007-12-13 10:53
elan Wrote:I also need to write an audio player using Portaudiohttp://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)?