Problems on Mac OSX

Hello !

When running a testprogramm from SDL
on Mac OSX, i get the following errors :

Latest SDL CVS version, latest stable OSX Tiger version

2006-02-17 23:32:27.245 turrican[326] *** _NSAutoreleaseNoPool(): Object
0xa369182c of class NSCFString autoreleased with no pool in place - just
leaking
2006-02-17 23:32:27.245 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x1116fe0 of class _NSCachedBitmapImageRep autoreleased with no pool in
place - just leaking
2006-02-17 23:32:27.245 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x1115fa0 of class NSImage autoreleased with no pool in place - just
leaking
2006-02-17 23:32:27.246 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x1134c20 of class _NSCachedBitmapImageRep autoreleased with no pool in
place - just leaking
2006-02-17 23:32:27.246 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x1135370 of class NSImage autoreleased with no pool in place - just
leaking
2006-02-17 23:32:27.246 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x11352b0 of class _NSThemeWidget autoreleased with no pool in place -
just leaking
2006-02-17 23:32:27.275 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x1134680 of class NSCFString autoreleased with no pool in place - just
leaking
2006-02-17 23:32:27.276 turrican[326] *** _NSAutoreleaseNoPool(): Object
0x1113aa0 of class NSException autoreleased with no pool in place - just
leaking
2006-02-17 23:32:27.291 turrican[326] *** Uncaught exception:
Error (1002) creating CGSWindow

Trace/BPT trap

CU

Torsten Giebl wrote:

When running a testprogramm from SDL
on Mac OSX, i get the following errors :

Latest SDL CVS version, latest stable OSX Tiger version

2006-02-17 23:32:27.245 turrican[326] *** _NSAutoreleaseNoPool(): Object
0xa369182c of class NSCFString autoreleased with no pool in place - just
leaking

Could it be that you’re not compiling in SDLMain.m / linking with
libSDLMain.a, so that the program starts at your main function instead
of the SDL wrapper main function?

(Are you using frameworks or unix-style libraries?)

-Christian

Hello !

Could it be that you’re not compiling in SDLMain.m / linking with
libSDLMain.a, so that the program starts at your main function instead of
the SDL wrapper main function?

(Are you using frameworks or unix-style libraries?)

UNIX Style :

./autogen.sh
./configure
./make
su
./make install

cd test

./autogen.sh
./configure
./make
./testsprite
./testwin

CU

Hello !

Could it be that you’re not compiling in SDLMain.m / linking with
libSDLMain.a, so that the program starts at your main function instead of
the SDL wrapper main function?

(Are you using frameworks or unix-style libraries?)

Does it work on your system, the unix way ?

CU

Hello !

Doing make install :>>>>>>>>>>


/usr/bin/install -c -m 644 build/libSDLmain.a /usr/local/lib/libSDLmain.a
install: build/libSDLmain.a: No such file or directory
make: *** [install-lib] Error 71

CU

Doing make install :


/usr/bin/install -c -m 644 build/libSDLmain.a /usr/local/lib/libSDLmain.a
install: build/libSDLmain.a: No such file or directory

I just tried this and it worked fine here. Did you re-do autogen.sh and
configure after you got code from CVS?

See ya,
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Doing make install :


/usr/bin/install -c -m 644 build/libSDLmain.a /usr/local/lib/libSDLmain.a
install: build/libSDLmain.a: No such file or directory
make: *** [install-lib] Error 71

This should be fixed in CVS, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hi!

Please don’t kill me, if my question is old, I’m only a silly newbie :frowning:

I tried to compile the same code under MacOS X & Ubuntu Linux. In
MacOS X SDL_WaitEvent works fine, and in the event’s structure the
field KeyPressed.key.keysym.unicode is ok. But in Ubuntu, this field
contains zero, ever. The other informations of the structure are
correctly initialized, but the Unicode variable contains zero value.

Well, the question is … why? :slight_smile:

Thanks in advance :slight_smile:

Mad Psycho --= www.psychogames.net=–

I tried to compile the same code under MacOS X & Ubuntu Linux. In
MacOS X SDL_WaitEvent works fine, and in the event’s structure the
field KeyPressed.key.keysym.unicode is ok. But in Ubuntu, this field
contains zero, ever. The other informations of the structure are
correctly initialized, but the Unicode variable contains zero value.

Well, the question is … why? :slight_smile:

You need to enable UNICODE translation of key events. It’s a bug that
the MacOS X version of SDL always fills in unicode for the key event.

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment