Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125654 - problem while starting games-roguelike/tome-2.3.3
Summary: problem while starting games-roguelike/tome-2.3.3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-09 16:05 UTC by Dirk Schoenberger
Modified: 2007-09-14 16:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schoenberger 2006-03-09 16:05:20 UTC
I emerged tome with USE="sdl", and it emerges fine.
However, if I try to start the sdl version with 

/usr/games/bin/tome -msdl

I get the following errors:

.....
2006-03-10 00:46:16.822 tome[5544] *** Uncaught exception: <NSInternalInconsistencyException> Error (1002) creating CGSWindow
Trace/BPT trap


This is a known issue with SDL on MacOSX (Cocoa). Basically there exist two workarounds. The easier involves a call to [NSApplication sharedApplication] to initialize the Cocoa subsystem. This should work, but it makes the game only playable in fullscreen mode (in windowing mode there are focussing issues, which means you cannot enter keys into the window)

The "correct" way is to use SDL_main, as described e.g. in http://docs.mandragor.org/files/Common_libs_documentation/SDL/FAQ_en/FAQ-MacOSX.html
The problem in this is that many programs which are toolkit independent doesn't really know how to handle toolkit specific initialization routines. This makes finding the correct place when and where the is to be included rather tricky.
If SDL_main can be used, SDL works on MacOSX in windowed and fullscreen mode.
Comment 1 Fabian Groffen gentoo-dev 2006-03-10 00:29:06 UTC
yeap... problem known.  Will look into the solution you propose, Dirk.
Comment 2 Fabian Groffen gentoo-dev 2007-09-14 16:48:22 UTC
I try to stay away from games