Author Topic: Xcode4 project file and SDL.framework 1.2.15  (Read 2980 times)

0 Members and 1 Guest are viewing this topic.

Offline Echelon9

  • 210
Xcode4 project file and SDL.framework 1.2.15
As of revision 8638, there is now a dedicated Xcode 4.x project file and an updated SDL.framework (to 1.2.15) in order to more fully support Mac OS 10.7.

The updated SDL.framework was required to resolve some bugs on Mac OS X 10.7, that Master_Drow reported during Diaspora testing.

Thanks to Valathil for the base of the Xcode 4.x project file.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Xcode4 project file and SDL.framework 1.2.15
Just saw this when I was browsing the SVN log this morning. I can't say I was having any major issues using the old project to compile under Xcode 4, but at the same time I wasn't really doing any exhaustive testing. One thing I did notice though was that all the compilation schemes are set for 32-bit. Are there any major issues preventing these from being set to 64 or 32/64 in the Xcode 4 project? Lion doesn't support PowerPC (It won't even cross-compile like you kinda sorta could on SL, the PPC toolchain is completely absent from Xcode 4) or 32-bit Intel Macs it seems a little odd to hamstring it like that...
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline Echelon9

  • 210
Re: Xcode4 project file and SDL.framework 1.2.15
Just saw this when I was browsing the SVN log this morning. I can't say I was having any major issues using the old project to compile under Xcode 4, but at the same time I wasn't really doing any exhaustive testing. One thing I did notice though was that all the compilation schemes are set for 32-bit. Are there any major issues preventing these from being set to 64 or 32/64 in the Xcode 4 project? Lion doesn't support PowerPC (It won't even cross-compile like you kinda sorta could on SL, the PPC toolchain is completely absent from Xcode 4) or 32-bit Intel Macs it seems a little odd to hamstring it like that...

Major issue was that fullscreen wasn't working on 10.7.

Yeh, I'm not sure about 64bit on Mac (*nix underneath) being as easy as flicking a switch in Xcode. I've heard on the forums here that one or two has got 64 compile working, but I've never reviewed an Xcode project file that I could use to do the same.

Want to take a look at it Admiral LSD?

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Xcode4 project file and SDL.framework 1.2.15
Major issue was that fullscreen wasn't working on 10.7.

Can't say I noticed that (I did notice some "sparkling" on exit, there'd be a delay between exiting the game and the desktop reappearing where the screen would be black save from some minor pixel noise, but nothing really major), but I can't say I was really looking that hard...

Quote
Yeh, I'm not sure about 64bit on Mac (*nix underneath) being as easy as flicking a switch in Xcode. I've heard on the forums here that one or two has got 64 compile working, but I've never reviewed an Xcode project file that I could use to do the same.

Funny thing is, I'm pretty sure that's all it is. You change "32-bit Intel" in the "Architectures" section of the project for each target (I get the idea it's supposed be a "set once, update everwhere" type deal, but that has never worked reliably in any of the projects I've opened in it...) to "Standard 32/64-bit Intel" and that seems to be it.

Beyond that, you also need x86/x86_64 compiled versions of the dependent frameworks, but I've already taken care of that if you want to save yourself the trouble of compiling them yourself. I'm wondering if this is why you didn't change it when you were modifying the Xcode project files for r8671:

Code: [Select]
------------------------------------------------------------------------
r8671 | Echelon9 | 2012-04-15 14:20:56 +0800 (Sun, 15 Apr 2012) | 1 line

Ensure that the Xcode 4 project file can build Mac binaries for OS X 10.6, as well as 10.7
------------------------------------------------------------------------

Anyway, I have some builds I could throw out for testing if you'd like. I can't offer any support for them myself, so I won't throw them out there if you won't be able or don't want to handle any additional support queries related to them.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline Echelon9

  • 210
Re: Xcode4 project file and SDL.framework 1.2.15
There's the step of switching the Architecture in Xcode, then further testing that subtle things like pointer math, the size of various fundamental types (int, long etc) other implicit assumptions

Okay, so we've got 64 bit Mac compiling setup now: see here.
« Last Edit: September 23, 2012, 10:34:40 am by Echelon9 »