README.Epoc
author Sam Lantinga <slouken@libsdl.org>
Sun, 21 Sep 2003 18:32:04 +0000
changeset 720 f90d80d68071
parent 250 74a8f672f2f8
permissions -rw-r--r--
N Sep 17 8791 Sam Lantinga Re: tks source released
Date: Sun, 07 Sep 2003 02:51:58 +0200
From: Stephane Marchesin
Subject: [SDL] Two little patches

Compiling SDL with a recent gcc (gcc 3.3.1, 3.3 doesn't have this
behaviour) gives some nasty warnings :

SDL_blit_A.c: In function `BlitRGBtoRGBSurfaceAlpha128MMX':
SDL_blit_A.c:223: warning: integer constant is too large for "long" type
SDL_blit_A.c:225: warning: integer constant is too large for "long" type
SDL_blit_A.c:227: warning: integer constant is too large for "long" type
[...]

The first attached patch (longlongfix.patch) tells gcc to really treat
those constants as unsigned long long and not long.

The second patch (nasinclude.patch) fixes an include problem I had while
compiling nas audio : when the <audio/audiolib.h> file lies in
/usr/X11R6/include, a -I/usr/X11R6/include option is needed or the file
isn't found.
     1 
     2 ==============================================================================
     3 Using the Simple DirectMedia Layer with EPOC/SymbianOS 6.0
     4 ==============================================================================
     5 
     6 ==============================================================================
     7 I.  Building the Simple DirectMedia Layer libraries:
     8 
     9   You can get Symbian SDK from: 
    10     http://www.symbian.com.
    11  
    12   First create "Epoc" directory under SDL main directory and unpack 
    13   EpocBuildFiles.zip in it.
    14    
    15   To build the librarys goto "epoc" directory and type:
    16     bldmake bldfiles
    17     abld makefile vc6 (for creating Microsoft Visual C++ makefiles)
    18     abld build wins udeb (building for wins emulator)
    19     abld build armi urel (building for real device)
    20 
    21 ==============================================================================
    22 II. Building the Simple DirectMedia Layer programs:
    23 
    24   Building SDL test programs is easy once you have built the libraries:
    25     abld test build wins udeb
    26     abld test build armi urel
    27 
    28   Supported real screen resolutions
    29     320 x 200 x  8 bit
    30     320 x 200 x 12 bit
    31     640 x 200 x  8 bit
    32     640 x 200 x 12 bit
    33   Supported "emulated" screen resolutions 
    34     640 x 400 x  8 bit
    35     640 x 400 x 12 bit
    36     640 x 480 x  8 bit
    37     640 x 480 x 12 bit
    38   "Emulated" resolutions are implemented by by shrinking the screen vertically 
    39   i.e. only every second scanline is drawn. This is mainly ment to be used for 
    40   testing quick ports of programs. Using faked resolutions is a waste of memory 
    41   and cpu power!
    42 
    43 ==============================================================================
    44 III. Running test programs
    45 
    46   Copy executable to the device and run it from the File manager.   The Esc 
    47   key quits demo programs. In Crystal, Exe programs do not appear in task list 
    48   nor in Extras :-(. Test programs are tested in Nokia 9210 Communicator.
    49 
    50   Special keys used in SDL:
    51     The Caps lock key enables or disables the virtual cursor. 
    52     Function keys are mapped as follows: 
    53     F1=chr+q, F2=chr+w,..., F8=chr+i, 
    54     F9=chr+a,..., F12=chr+d.
    55 
    56 ==============================================================================
    57 IV.  Enjoy! :)
    58 
    59   If you have a project you'd like me to know about, or want to ask questions,
    60   go ahead and join the SDL developer's mailing list by sending e-mail to:
    61 
    62 	sdl-request@libsdl.org
    63 
    64   and put "subscribe" into the subject of the message. Or alternatively you
    65   can use the web interface:
    66 
    67 	http://www.libsdl.org/mailman/listinfo/sdl
    68 
    69   You can find more info about Epoc version of SDL from Hannu Viitala's 
    70   homepage
    71     http://www.mbnet.fi/~haviital
    72   
    73 ==============================================================================
    74 
    75