I guess a more fundamental question is: does SDL on Darwin imply Cocoa?
That's anyone's guess, but that's the impression I got from the tip page. Lots of people seem to have run into this error with SDL, and that was the only page I came up with that offered anything remotely looking like a solution.
I'm only using the SDL (via GLUE) pike bindings on an OS agnostic application (aido), but it presently does not work on my macbook, so I've been chasing the issues.
Even getting a minimal GLUE app not to crash would be good progress:
#! /usr/local/bin/pike77
int main() { GLUE.init( (["title":"Glue example"]) ); draw_frame(); return -1; }
void draw_frame() { call_out(draw_frame, 0.02); do_gl_code(); GLUE.swap_buffers(); }
void do_gl_code() { GLUE.draw_line( 1.0, 1.0, 1.5, 1.5, Image.Color.red ); }