[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #995: SDL on OSX, How does it work ?
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #995: SDL on OSX, How does it work ? |
Date: |
Tue, 12 Mar 2013 11:23:52 -0000 |
#995: SDL on OSX, How does it work ?
---------------------+------------------------------------------------------
Reporter: paines | Owner:
Type: defect | Status: new
Priority: major | Milestone: someday
Component: unknown | Version: 4.8.x
Keywords: sdl osx |
---------------------+------------------------------------------------------
I compiled and installed the SDL egg using libsdl-framework via macports.
When now compiling and running a Chicken App or using csi, it will
segfault with an NSInternalInconsistencyException exception.
Some sources state that SDLmain / SDL_Init must be called at first like
this:
(cond-expand
(compile-sdl
(declare (foreign-declare "#include \"SDL.h\"\n"))
(foreign-code "SDL_Init(SDL_INIT_EVERYTHING);"))
(else
(sdl-init sdl_init_everything)))
.... more code
and then compile it with csc -feature compile-sdl file.scm under OSX,
which still gives the same exception.
One more suggestion is to use the parameter
SDL_VIDEODRIVER=x11 ./myOSXBinary
but this won't produce a working GFX context.
I am not sure if this is a real bug, or I am just not using SDL correctly
under Chicken + OSX. I hope someone can clear things up.
--
Ticket URL: <http://bugs.call-cc.org/ticket/995>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #995: SDL on OSX, How does it work ?,
Chicken Trac <=