OpenTTD

Tasklist

FS#18 - [OSX] SDL is weird in universal binaries

Attached to Project: OpenTTD
Opened by Bjarni (Bjarni) - Monday, 05 December 2005, 12:25 GMT
Last edited by Bjarni (Bjarni) - Monday, 05 December 2005, 22:43 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System Mac OS X
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

for PPC we need to support all the way back to OSX 10.2 if possible, so dynamic linking is out of the question (they don't like opening libs in non-standard locations)
OpenTTD can't link statically to anything newer than SDL 1.2.7
I can't crosscompile SDL 1.2.7 for x86 OSX, but 1.2.9 can compile, so x86 needs to be dynamically linked to SDL. Luckily x86 is at least OSX 10.4 (developer edition, that is not for public release) or 10.5 (public release), so adding a dynamic lib to the release is possible

The result of this is that the universal binaries have to be static linked PPC code and static linked x86 code except for SDL, which will then be dynamically linked. This is NOT nice, so we better get rid of SDL. Specially since it causes so many issues, not just this one
Closed by  Bjarni (Bjarni)
Saturday, 10 December 2005, 11:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  well, you don't have to use SDL anymore. Use cocoa drivers instead

Loading...