Codeman655 / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
GNU Lesser General Public License v2.1
0 stars 0 forks source link

SDL will not build on OSX 10.9 #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download current Script
2. Use current scrip to build wine
3. SDL fails to build because CGDirectPaletteRef is not defined.

What is the expected output? What do you see instead?

Wine builds...

What version of the product are you using? On what operating system?

Version 242 of the script.  MacOSX Mavericks.

Please provide any additional information below.

This will ALSO fail on Mountain Lion (or it should).  The definition of 
CGDirectPaletteRef was removed with XCode 5.

This is a known issue with building SDL 1.2.15 with this version of XCode.

The following patch when incorporated into the build script removes references 
to the value in SDL_QuartzVideo.h when SDL is built on 10.8 and 10.9.  It is 
NOT my code but was found searching for a solution to the build problem.  
Edited script to add a patch section to the SDL build area which creates a 
patch file and then uses it to patch the header file.  Build completed 
successfully.

Original issue reported on code.google.com by jjmckenz...@gmail.com on 7 Aug 2014 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks James. I put a hack in place and checked it in. Patching with this 
script kind of sucks and I don't have access to anything newer than OS X 10.6 
right now. Can you give a clean build a shot on a Mavericks machine and let me 
know if it works? -r

Original comment by rwoodsm...@gmail.com on 7 Aug 2014 at 9:07

GoogleCodeExporter commented 9 years ago

Original comment by rwoodsm...@gmail.com on 7 Aug 2014 at 9:07

GoogleCodeExporter commented 9 years ago
Ryan:
Not finding the change in update 233.  However, I did find something else in 
SDL:
/usr/Xll/#{X11DIR} will drop the '/' between /usr/Xll and include resulting in 
/opt/X11include and /opt/X11lib on my system.  I might do a fresh pull...

Original comment by jjmckenz...@gmail.com on 7 Aug 2014 at 10:37

GoogleCodeExporter commented 9 years ago
Good catch on the X11DIR stuff, just checked in a change. Going to have to 
stand up a Mavericks machine, I think.

Original comment by rwoodsm...@gmail.com on 7 Aug 2014 at 10:54

GoogleCodeExporter commented 9 years ago
I did not see a change for 233 for the Mavericks issue.  Can you provide 
details for what you did?  I'll try a build though.

Original comment by jjmckenz...@gmail.com on 7 Aug 2014 at 10:59

GoogleCodeExporter commented 9 years ago
Build complete using 234.  No errors in SDL on Mavericks.

Original comment by jjmckenz...@gmail.com on 8 Aug 2014 at 12:51

GoogleCodeExporter commented 9 years ago
Thanks, James. I ended up just conditionally commenting out the 
"CGDirectPaletteRef" reference in SDL conditionally on Mavericks or newer. 
Closing. -r

Original comment by rwoodsm...@gmail.com on 9 Aug 2014 at 11:34