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)
- elan - 2008-01-06 10:29
gmackenz Wrote:Better documentation/current work-arounds in the README.mac_os_x is always appreciated.
Yeah, next time I come up for air in my development work, I'll improve the documentation. The more people who are able to build it, the more people who are able to help out in the porting effort.
Photos work! - elan - 2008-01-07 12:39
I ran a slideshow with music for 3 hours while I was out for dinner, and it worked perfectly. The key was getting the AGL contexts working, rewriting the critical section code to use standard pthread constructs, and hacking SDL 1.2 to return me the Carbon WindowRef.
I have one interesting display glitch (title bar is garbage), and I'm pretty sure it's because I'm using the top-level WindowRef instead of the subframe I should be using. I'm brand new to Carbon/Cocoa/Quartz/AGL coding, so hopefully you'll cut me some slack while I figure out how to fix it
- petsounds - 2008-01-07 23:46
Superb work, elan.
Are you planning to stick with Carbon/Eclipse at this point? I know that Apple has deprecated the Carbon and QuickDraw libs, and highly recommends that people move to a pure Cocoa environment. They also recommend using XCode because it will be easier to maintain the codebase going forward as things evolve. Less significantly but still something to note, under 10.5 Carbon apps have no support for 64-bit.
Of course, if you're feeling really crazy you can mix Cocoa into a Carbon app (http://developer.apple.com/documentation/Cocoa/Conceptual/CarbonCocoaDoc/Articles/WrapperFunctions.html) or vice versa.
Aside from the great Apple Developer (developer.apple.com) site, this is also a good resource for learning Cocoa:
- elan - 2008-01-08 00:54
petsounds Wrote:Are you planning to stick with Carbon/Eclipse at this point? I know that Apple has deprecated the Carbon and QuickDraw libs, and highly recommends that people move to a pure Cocoa environment. They also recommend using XCode because it will be easier to maintain the codebase going forward as things evolve. Less significantly but still something to note, under 10.5 Carbon apps have no support for 64-bit.
Thanks for your kind message.
In terms of Eclipse, I've configured it to call xcodebuild externally, so XCode manages the configuration. This seemed the best of both worlds, because Eclipse works fine, highlights errors, etc., and the debugging (for me, at least) works much better. The people who want to use XCode are set, and the people who want to use vi or emacs can use xcodebuild.
In terms of Carbon etc., XBMC is built on top of SDL, which in 1.2 is Cocoa/Quartz, and 1.3 seems to be just Cocoa (assuming I know what I'm talking about). In getting multiple OpenGL contexts to work, this first attempt uses AGL which needs access to a Carbon WindowRef.
Since I already have a tiny bit of Obj-C in XBMC, I could probably move to a pure Cocoa implementation, I just haven't been brave enough to do that yet. AGL seemed to provide the easiest way forward, although, to be fair, there is that graphical glitch in the titlebar which would probably be solved if I went to using Cocoa's OpenGL API.
Visualizations - elan - 2008-01-09 07:05
Mmmmm, tasty, got ProjectM (which can read Milkdrop settings) mostly working.
- senz - 2008-01-10 13:02
Nice work Elan!
Is there enough power in the new macminis to run XBMC MAC OSX?
Is it possible to stream movies from rar archives in network?
- Gamester17 - 2008-01-10 13:33
senz Wrote:Is there enough power in the new macminis to run XBMC MAC OSX?That is end-user discussion! Please see http://forum.xbmc.org/showthread.php?tid=30410
EVERYONE AGAIN! PLEASE RESPECT THAT THIS TOPIC THREAD IS FOR DEVELOPERS ONLY!
Some progress on video - elan - 2008-01-12 02:17
I'll be checking in all the changes I've made very shortly.
New site for XBMC on OS X - elan - 2008-01-13 10:11
I've set up a site for the OS X porting effort: http://www.osxbmc.com. I'll be posting subsequent updates there, as well as posting download links for builds when they become available. The site has an RSS feed you can subscribe to.
- elan - 2008-01-14 05:26
I've checked in, packaged a binary release, and posted build instructions. See the blog for details.