Hi.
I have translated SDL2_Image, SDL2_Mixer, SDL2_Net and SDL2_Tft, you can download at:
http://www.remakesonline.com/descargas/SDL2.zip
I can compile for OSX in Delphi XE4 without errors, but latter when I execute in MAC I have a error of SDL not found, but I install framework SDL2.framework in /Library/Frameworks
Code:
Last login: Tue Jul 30 14:50:12 on ttys001
/Users/kotai/Applications/Embarcadero/RADPAServer/10.0/paserver ; exit;
macosx:~ kotai$ /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/paserver ; exit;
Platform Assistant Server Version 2.0.7.05
Copyright (c) 2009-2012 Embarcadero Technologies, Inc.
Remote Profile password <press Enter for no password>:
Acquiring permission to support debugging...succeeded
Starting Platform Assistant Server on port 64211
Type ? for available commands
>listen
Process Control Server Started pid 283 exe built Aug 21 2012
sentinelFunc 285
dyld: Library not loaded: @rpath/SDL2
Referenced from: /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/juego
Reason: image not found
^Cdbkexe : interrupt sig->exit
EControlC: Control-C hit
logout
[Proceso completado]
Then, I copy SDL2 (from /Library/Frameworks/SDL2.framework/Versions/A/SDL2 ) to game folder and get next error:
Code:
Last login: Tue Jul 30 15:02:55 on console
/Users/kotai/Applications/Embarcadero/RADPAServer/10.0/paserver ; exit;
MacOSx:~ kotai$ /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/paserver ; exit;
Platform Assistant Server Version 2.0.7.05
Copyright (c) 2009-2012 Embarcadero Technologies, Inc.
Remote Profile password <press Enter for no password>:
Acquiring permission to support debugging...succeeded
Starting Platform Assistant Server on port 64211
Type ? for available commands
>listen
Process Control Server Started pid 163 exe built Aug 21 2012
sentinelFunc 166
dyld: Library not loaded: @executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2
Referenced from: /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2_image
Reason: image not found
Then, I copy SDL2.framework to /../Frameworks/SDL2.framework and get next error:
Code:
Last login: Tue Jul 30 15:15:45 on ttys001
/Users/kotai/Applications/Embarcadero/RADPAServer/10.0/paserver ; exit;
macosx:~ kotai$ /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/paserver ; exit;
Platform Assistant Server Version 2.0.7.05
Copyright (c) 2009-2012 Embarcadero Technologies, Inc.
Remote Profile password <press Enter for no password>:
Acquiring permission to support debugging...succeeded
Starting Platform Assistant Server on port 64211
Type ? for available commands
>listen
Process Control Server Started pid 341 exe built Aug 21 2012
sentinelFunc 343
objc[345]: Class SDLAppDelegate is implemented in both /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2 and /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/../Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
objc[345]: Class SDLTranslatorResponder is implemented in both /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2 and /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/../Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
objc[345]: Class Cocoa_WindowListener is implemented in both /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2 and /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/../Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
objc[345]: Class SDLWindow is implemented in both /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2 and /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/../Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
objc[345]: Class SDLView is implemented in both /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2 and /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/../Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
objc[345]: Class SDLMessageBoxPresenter is implemented in both /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2 and /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/../Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
dyld: lazy symbol binding failed: Symbol not found: SDL_Init
Referenced from: /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/juego
Expected in: /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2
dyld: Symbol not found: SDL_Init
Referenced from: /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego/juego
Expected in: /Users/kotai/Applications/Embarcadero/RADPAServer/10.0/scratch-dir/Vicent-MacOSx/juego//SDL2
I think problem is SDL2.pas:
Code:
{$IFDEF MACOS}
SDL_LibName = 'SDL2';
// {$linklib SDL2}
{$ENDIF}
I comment line {$linklib SDL2} because Delphi does not recognize that command $linklib
Kotai
Bookmarks