Okay, now I'm trying
fpc -Mobjfpc -ve -k-framework -kSDL -k-framework -kSDL_image -k-framework -kCocoa -Fl/usr/X11/lib fprl.pp
and I get the successful
Linking fprl
11378 lines compiled, 1.2 sec
However, the created binary does not work at all. While on Windows and on Linux everything goes well (my SDL window appears), on MacOS I only get a massive amount of errors, which can be traced back to the point where SDL wants to set its video mode. The call stack is:
Code:
0 CoreFoundation 0x994ad6ba __raiseError + 410
1 libobjc.A.dylib 0x997fb509 objc_exception_throw + 56
2 CoreFoundation 0x994ad3e8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x994ad35a +[NSException raise:format:] + 58
4 AppKit 0x9524a9be _NSCreateWindowWithOpaqueShape2 + 519
5 AppKit 0x951cf8a6 -[NSWindow _commonAwake] + 1624
6 AppKit 0x951cc56e -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 1524
7 AppKit 0x951cb1c1 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1568
8 AppKit 0x951cab9b -[NSWindow initWithContentRect:styleMask:backing:defer:] + 71
9 SDL 0x00b2467f SDL_SoftStretch + 27215
10 SDL 0x00b235f8 SDL_SoftStretch + 22984
11 SDL 0x00b1714f SDL_SetVideoMode + 623
Anybody seen something like this with SDL on MacOS? Both Frameworks are installed correctly in /lib/Framework .
Bookmarks