README.PS3
author Ozkan Sezer <sezeroz@gmail.com>
Fri, 22 Jun 2018 21:03:40 +0300
branchSDL-1.2
changeset 12026 67f391c74aee
parent 4165 3b8ac3d311a2
permissions -rw-r--r--
SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps (bug #4114)

CPS stuff are deprecated and emit warnings at runtime, e.g.:

warning: CPSGetCurrentProcess(): This call is deprecated and should not be called anymore
warning: CPSSetForegroundOperationState() (as above)
warning: capture_display; Captured mirror master 0x350000c1 (unit 1) on behalf of slave 0x042716c0 (unit 0)

http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-April/055749.html
suggests doing something like:

ProcessSerialNumber psn = { 0, kCurrentProcess};
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
SetFrontProcess (&psn);

And SetFrontProcess() is deprecated in 10.9. Processes.h suggests
[[NSApplication sharedApplication] activateIgnoringOtherApps: YES]
to make one's own application frontmost.
     1 
     2 SDL on Sony Playstation3
     3 ------------------------
     4 
     5 Installation:
     6   First, you have to install the Cell SDK
     7   - Download the Cell SDK installer RPM and ISO images to
     8     a temporary directory such as /tmp/cellsdk.
     9   - Mount the image: mount -o loop CellSDK-Devel-Fedora_3.1.0.0.0.iso /tmp/cellsdk
    10   - Install the SDK installer: rpm -ivh cell-install-3.1.0-0.0.noarch.rpm
    11   - Install the SDK: cd /opt/cell && ./cellsdk --iso /tmp/cellsdkiso install
    12 
    13   You need to install the SPU-libs before installing SDL
    14   - Go to SDL-1.2/src/video/ps3/spulibs/
    15   - Run make && make install
    16 
    17   Finally, install SDL
    18   - Go to SDL-1.2/ and build SDL like any other GNU style package.
    19   e.g.
    20     - Build the configure-script with ./autogen.sh
    21     - Configure SDL for your needs: ./configure --enable-video-ps3 ...
    22     - Build and install it: make && make install
    23 
    24 
    25 Todo:
    26   - mouse/keyboard/controller support
    27 
    28 Have fun!
    29   Dirk Herrendoerfer <d.herrendoerfer [at] de [dot ibm [dot] com>