| Summary: | cmake build for cocoa detects incorrectly and doesn't link opengl correctly on OSX. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Doug <linderd> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus, ttimo |
| Version: | HG 2.0 | Keywords: | triage-2.0.4 |
| Hardware: | x86 | ||
| OS: | Other | ||
| See Also: | https://bugzilla.libsdl.org/show_bug.cgi?id=2056 | ||
| Attachments: | Proposed patch | ||
|
Description
Doug
2012-11-28 22:38:12 UTC
Created attachment 995 [details]
Proposed patch
Changes to fix for OSX
(In reply to comment #0) > its totally possible to be on a mac and not have cocoa When does this happen (or do you mean you can run Darwin directly instead of Mac OS X)? --ryan. Seeing the same problem. OSX 10.8 This fix works for me. See related bug too. Thanks! The Cocoa detection was fixed a few days ago (by not trying to compile Objective-C...it's Mac OS X, it has Cocoa, why bother slowing down the configure step?) in a previous commit for another bug. _Should_ we be linking directly to OpenGL? I'm pretty sure SDL dynamically loads it for every place we use it. --ryan. (In reply to Ryan C. Gordon from comment #4) > _Should_ we be linking directly to OpenGL? I'm pretty sure SDL dynamically > loads it for every place we use it. Just checked; we definitely can link SDL without referencing OpenGL at all on Mac OS X...we dynamically load it if we ever need it. I'm going to wait for 2.0.2 to ship in case I'm totally wrong about this, and then remove the direct reference to OpenGL.framework from all the project files. --ryan. Hey Ryan, want to get this into 2.0.4? Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! This is fixed now in revision control. --ryan. |