| Summary: | 'sdl-config --libs' incomplete (OpenGL missing) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Max Horn <max> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 1.2 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS X (All) | ||
| URL: | http://thread.gmane.org/gmane.os.apple.fink.general/21734/focus=21734 | ||
| Attachments: |
Fix for the issue against SVN
Patch against 1.2.10 Patch against latest SVN |
||
|
Description
Max Horn
2006-07-17 18:01:30 UTC
Created attachment 147 [details]
Fix for the issue against SVN
The attached patch fixes the issue in SVN.
Created attachment 148 [details]
Patch against 1.2.10
This second patch works for 1.2.10 (and 1.2.11, too), might be interesting for people packaging SDL (I am using it for the Fink package).
Created attachment 152 [details]
Patch against latest SVN
Really we should include an --opengl option to sdl-config, which includes the correct header path and libraries for linking with OpenGL applications. On the other hand, we shouldn't need the OpenGL framework at all if it is dynamically loaded, right?
> On the other hand, we shouldn't need the OpenGL framework at all if it is
> dynamically loaded, right?
You shouldn't need it at all...apps don't need to link against OpenGL.framework directly unless they use it directly...that SDL uses it doesn't matter, whether it loads it at runtime or not. We don't specify CoreAudio or IOKit in "sdl-config --libs" either and SDL apps still build.
If an application is using OpenGL directly without SDL_GL_LoadLibrary(), then it should link against it directly, and I don't think SDL should shield them from that.
I'm inclined to close this as WONTFIX, but I'll wait a while for a rebuttal. :)
--ryan.
I agree with your analysis, and retract this "report". The real problem was that SDL TTF was incorrectly using OpenGL, but I believe that this has been fixed since then (at least I can't reproduce it anymore with 2.0.8, which also seems to have configure code to add -framework OpenGL on its own). Not sure if I can close items, I'll try... :-) |