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

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
yuvalt Offline
Retired Team-Kodi Member
Posts: 420
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: 278
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: 3
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,523
Joined: Sep 2003
Reputation: 10
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,523
Joined: Sep 2003
Reputation: 10
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
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #21
elan Wrote:
Gamester17 Wrote: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?
That is odd, I through that especially the Linuxport branch should use the new logo that simply reads "XBMC" instead of "XBOX MEDIA CENTER", ...well I guess the Linux developers forgot to move that over(?), or maybe they are using the Project Mayhem 3 skin from the trunk instead even under Linux(?)

Confused

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
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #22
the linux port does have the new version I bet he has an old xpr see
https://xbmc.svn.sourceforge.net/svnroot...me_Top.png
find quote
aegzorz Offline
Junior Member
Posts: 8
Joined: May 2007
Reputation: 0
Location: Sweden
Post: #23
Can't wait to try this Mac-port out. Smile
Would be cool if it could be used as a Finder recplacement, so the Mac can boot straight into XBMC.
find quote
El Piranna Offline
Senior Member
Posts: 284
Joined: Nov 2006
Reputation: 0
Location: 01 - The city of the machines
Post: #24
aegzorz Wrote:Can't wait to try this Mac-port out. Smile
Would be cool if it could be used as a Finder recplacement, so the Mac can boot straight into XBMC.

Err... it's not a bad idea Smile But then XBMC should be improved in a very high way, but it's not a bad idea at all...
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Exclamation  OFF-TOPIC! no feature/function requests please!
Post: #25
Please respect that this is a development forum for developers/programmers, do not post request/suggestion for new features in this forum unless you actually are a developer/programmer yourself and plan to implement that said feature yourself. Thank you!

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
aegzorz Offline
Junior Member
Posts: 8
Joined: May 2007
Reputation: 0
Location: Sweden
Post: #26
Sorry didn't mean it as a feature request, I'd love to help out with this Mac-port. I hope this makes it to the svn soon, just hope Xcode 2.5 can open xcode 3.0 files Smile
find quote
El Piranna Offline
Senior Member
Posts: 284
Joined: Nov 2006
Reputation: 0
Location: 01 - The city of the machines
Post: #27
aegzorz Wrote:Sorry didn't mean it as a feature request, I'd love to help out with this Mac-port. I hope this makes it to the svn soon, just hope Xcode 2.5 can open xcode 3.0 files Smile

I'm not sure (about XCode 2.5 Apple updated the XCode project format) but in any case, better update to XCode 3.0 Wink It has some strange behaviours, but it's very cool when you config itNod
find quote
elan Offline
Team Plex
Posts: 278
Joined: Dec 2007
Location: Maui
Post: #28
Gamester17 Wrote: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)?

Exactly, that is the idea.

-elan
find quote
yuvalt Offline
Retired Team-Kodi Member
Posts: 420
Joined: May 2004
Reputation: 0
Location: Israel
Post: #29
Generally I would like to get rid of SDL_Audio. Currently it is used only for skin audio.
find quote
elan Offline
Team Plex
Posts: 278
Joined: Dec 2007
Location: Maui
Post: #30
yuvalt Wrote:Generally I would like to get rid of SDL_Audio. Currently it is used only for skin audio.

The nice thing about it is that it is portable across a bunch of systems, and it's easy to just play a fixed piece of audio (like a skin sound).

However, Portaudio is very portable too, and would probably serve well, although it would need higher level code to playFile(...), etc. If the lower level Linux stuff had used it instead of ALSA, the port to OS X would have been trivial, and it's even portable to Windows, so it might be a good common layer. I used Portaudio extensively in a former job, and it's a solid bit of code.
find quote
Post Reply