Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
authorSam Lantinga <slouken@libsdl.org>
Fri, 14 Dec 2001 12:37:34 +0000
changeset 25074a8f672f2f8
parent 249 e3d0d44f6f2e
child 251 b8688cfdc232
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
BUGS
CREDITS
EpocBuildFiles.zip
README.Epoc
docs.html
     1.1 --- a/BUGS	Fri Dec 14 12:30:25 2001 +0000
     1.2 +++ b/BUGS	Fri Dec 14 12:37:34 2001 +0000
     1.3 @@ -135,6 +135,18 @@
     1.4  
     1.5  	The keyboard modifiers are not set to the correct state on startup.
     1.6  
     1.7 +EPOC:
     1.8 +    Only Crystal version of Epoc/SymbianOS is currently supported.
     1.9 +
    1.10 +    SDL is implemented in static library only. SDL uses static/global
    1.11 +    variables and that is not allowed in EPOC dll libraries.
    1.12 +
    1.13 +    Sound is not yet supported.
    1.14 +
    1.15 +    Joystick, OpenGL and cdrom is not supported (think about cdrom in a cell phone:-).
    1.16 +    
    1.17 +    No console output screen. Printing to stdout do not have any effect.
    1.18 +
    1.19  OpenBSD:  -= NOT YET SUPPORTED =-
    1.20  	This is reported to work, but I haven't verified this.
    1.21  
    1.22 @@ -208,3 +220,4 @@
    1.23  	Continuous relative mouse motion is not implemented.
    1.24  
    1.25  	The AmigaOS port was done by Gabriele.Greco@galactica.it
    1.26 +
     2.1 --- a/CREDITS	Fri Dec 14 12:30:25 2001 +0000
     2.2 +++ b/CREDITS	Fri Dec 14 12:37:34 2001 +0000
     2.3 @@ -19,6 +19,8 @@
     2.4  
     2.5  * Patrick Trainor and Jim Boucher, for the QNX Neutrino port
     2.6  
     2.7 +* Hannu Viitala for the EPOC port
     2.8 +
     2.9  * Gabriele Greco, for the Amiga port
    2.10  
    2.11  * Carsten Griwodz for the AIX port
     3.1 Binary file EpocBuildFiles.zip has changed
     4.1 --- a/README.Epoc	Fri Dec 14 12:30:25 2001 +0000
     4.2 +++ b/README.Epoc	Fri Dec 14 12:37:34 2001 +0000
     4.3 @@ -1,87 +1,75 @@
     4.4 -31.8.2001 HJV
     4.5  
     4.6 -SDL for EPOC/Symbian OS
     4.7 -=======================
     4.8 +==============================================================================
     4.9 +Using the Simple DirectMedia Layer with EPOC/SymbianOS 6.0
    4.10 +==============================================================================
    4.11  
    4.12 -This is an Epoc port of SDL (1.2.0). It is not yet complete, but good enough for starting to port all those wonderful SDL based demos, games and other programs to Epoc! I have tested a bunch of demos and test programs in Nokia 9210 Communicator, which is a fancy device with combined PDA/GSM phone features, Symbian OS (Crystal), a full keyboard and a color screen (640x200x12bit).
    4.13 +==============================================================================
    4.14 +I.  Building the Simple DirectMedia Layer libraries:
    4.15  
    4.16 -Btw. Also SDLDoom works over SDL Epoc port now (CDoom)!
    4.17 +  You can get Symbian SDK from: 
    4.18 +    http://www.symbian.com.
    4.19   
    4.20 +  First create "Epoc" directory under SDL main directory and unpack 
    4.21 +  EpocBuildFiles.zip in it.
    4.22 +   
    4.23 +  To build the librarys goto "epoc" directory and type:
    4.24 +    bldmake bldfiles
    4.25 +    abld makefile vc6 (for creating Microsoft Visual C++ makefiles)
    4.26 +    abld build wins udeb (building for wins emulator)
    4.27 +    abld build armi urel (building for real device)
    4.28  
    4.29 -How to install to device
    4.30 -========================
    4.31 +==============================================================================
    4.32 +II. Building the Simple DirectMedia Layer programs:
    4.33  
    4.34 -Extract binary packets of the demo and test programs and copy the files to N9210.
    4.35 +  Building SDL test programs is easy once you have built the libraries:
    4.36 +    abld test build wins udeb
    4.37 +    abld test build armi urel
    4.38  
    4.39 +  Supported real screen resolutions
    4.40 +    320 x 200 x  8 bit
    4.41 +    320 x 200 x 12 bit
    4.42 +    640 x 200 x  8 bit
    4.43 +    640 x 200 x 12 bit
    4.44 +  Supported "emulated" screen resolutions 
    4.45 +    640 x 400 x  8 bit
    4.46 +    640 x 400 x 12 bit
    4.47 +    640 x 480 x  8 bit
    4.48 +    640 x 480 x 12 bit
    4.49 +  "Emulated" resolutions are implemented by by shrinking the screen vertically 
    4.50 +  i.e. only every second scanline is drawn. This is mainly ment to be used for 
    4.51 +  testing quick ports of programs. Using faked resolutions is a waste of memory 
    4.52 +  and cpu power!
    4.53  
    4.54 -How to use
    4.55 -==========
    4.56 +==============================================================================
    4.57 +III. Running test programs
    4.58  
    4.59 -Run exe's from the File manager. The Caps lock key enables or disables the virtual cursor. 
    4.60 -The Esc key quits demo programs.
    4.61 -Function keys are mapped as follows: 
    4.62 -- F1=chr+q, F2=chr+w,..., F8=chr+i, 
    4.63 -- F9=chr+a,..., F12=chr+d.
    4.64 +  Copy executable to the device and run it from the File manager.   The Esc 
    4.65 +  key quits demo programs. In Crystal, Exe programs do not appear in task list 
    4.66 +  nor in Extras :-(. Test programs are tested in Nokia 9210 Communicator.
    4.67  
    4.68 -In Crystal, Exe programs do not appear in task list nor in Extras :-(
    4.69 +  Special keys used in SDL:
    4.70 +    The Caps lock key enables or disables the virtual cursor. 
    4.71 +    Function keys are mapped as follows: 
    4.72 +    F1=chr+q, F2=chr+w,..., F8=chr+i, 
    4.73 +    F9=chr+a,..., F12=chr+d.
    4.74  
    4.75 +==============================================================================
    4.76 +IV.  Enjoy! :)
    4.77  
    4.78 -How to build
    4.79 -============
    4.80 +  If you have a project you'd like me to know about, or want to ask questions,
    4.81 +  go ahead and join the SDL developer's mailing list by sending e-mail to:
    4.82  
    4.83 -Building SDL, SDL_IMAGE and tests & demos:
    4.84 -- Build files are in "\sdl\epoc\" and "\sdl_image\epoc\" directories
    4.85 -- Building as usual: "bldmake bldfiles" "abld build wins udeb" "abld build armi urel"
    4.86 -- Test and demos programs are build: "abld test build wins udeb" "abld test build armi urel" 
    4.87 +	sdl-request@libsdl.org
    4.88  
    4.89 +  and put "subscribe" into the subject of the message. Or alternatively you
    4.90 +  can use the web interface:
    4.91  
    4.92 -Building and sources
    4.93 -====================
    4.94 -Information about the Epoc implementation: 
    4.95 -- Made over SDL 1.2.0
    4.96 -- Ported sources: SDL, SDL_image, xflame, fire, warp, newvox, graywin, testalpha, SDLDoom(CDoom)
    4.97 -- Test programs do not have any major changes: usually only screen size and depth is 
    4.98 -  changed for 9210, if needed
    4.99 -- Like in all the other platform implementations, the Epoc specific code is in "Epoc" subdirectories. All build files for Epoc are in the directory \sdl\epoc\. Adding a new OS support requires always some changes also in generic files (search for "#ifdef __SYMBIAN32__").
   4.100 -- Currently, two resolutions and bit depths are supported: 320x200 and 640x200 with 8 or 12 bit color.
   4.101 -- I addition, two faked resolutions are supported: 640x400, 640x480. These are implemented by shrinking the screen vertically i.e. only every second scanline is drawn. This can be used for testing and for non-resource intensive programs. Thought, using faked resolutions is a waste of memory and cpu power! 
   4.102 +	http://www.libsdl.org/mailman/listinfo/sdl
   4.103  
   4.104 -Change history
   4.105 -==============
   4.106 +  You can find more info about Epoc version of SDL from Hannu Viitala's 
   4.107 +  homepage
   4.108 +    http://www.mbnet.fi/~haviital
   4.109 +  
   4.110 +==============================================================================
   4.111  
   4.112 -31.8.2001 Alpha 0.2:
   4.113 -- Now you should build ARMI binaries instead of THUMB. It runs faster. 
   4.114 -- sdl_main.cpp: removed check for existing instance of sdlprogram
   4.115 -- sdl_error.h: Added debug macros under conditional compilation in Epoc
   4.116 -- sdl_epocevents.cpp: Added focus lost&gained event handling, added modifier handling, added a lot more key event handling (function keys and others). Function keys are mapped as follows: 
   4.117 -  F1=chr+q, F2=chr+w,..., F8=chr+i, F9=chr+a,..., F12=chr+d.
   4.118 -- sdl_epocvideo.h: Added EPOC_ScreenOffset variable. Added EPOC_IsWindowFocused variable (but not used for anything yet!). Added RedrawWindowL() function.
   4.119 -- sdl_epocvideo.cpp: Added debugging functions: Debug_AvailMem2() and Debug_AvailMem(). 
   4.120 -  Changed window to have white background. Centralize game screen if it is not full size. 
   4.121 -  Added RedrawWindowL() function. Force other windows to redraw if SDL window lost focus. This cleans up possible game graphics from screen. Redraw after getting focus again.
   4.122  
   4.123 -
   4.124 -Todo
   4.125 -====
   4.126 -
   4.127 -This Epoc port is (of course;-) not thoroughly tested. For testing, I have compiled and run a couple of test programs and demos in N9210. Still, e.g. thread related functions have not been tested at all.
   4.128 -
   4.129 -Known bugs and unimplemented features:
   4.130 -- No sound
   4.131 -- No console output screen. Printing to stdout do not have any effect.
   4.132 -- Epoc do not allow static/global variables in DLL libraries. So I could only use static linking with SDL.
   4.133 -- Some test programs may take so much cpu in 9210 that e.g. SMS sending and receiving is not possible at a same time. Also screen may look awkward if there appear visible notes, dialogs etc. when an sdl program is active. SDL program runs in the lowest possible priority for minimum interference in the system. Unfortunately, this is always not enough.  Perhaps some Delay() commands are needed.
   4.134 -
   4.135 -P.s. I have ported also the SDL version of MirrorMagic puzzle game to Epoc. I will put the sources and binaries available as soon as I bother to clean the ported sources a bit... 
   4.136 -
   4.137 -
   4.138 -Open Source & "bazaar" style software development
   4.139 -=================================================
   4.140 -
   4.141 -You can take part in this porting project. This is Open Source software and you are very welcome to try it, test it, improve the code and implement the missing pieces. If you have any fix suggestions, improvements, code excerpts etc., contact me by email. Please start the mail subject with a string "EPOC SDL:".
   4.142 -
   4.143 -Cheers,
   4.144 -Hannu
   4.145 -
   4.146 -Mail:hannu.j.viitala@mbnet.fi
   4.147 -Homepage of SDL for Epoc: www.mbnet.fi/~haviital
     5.1 --- a/docs.html	Fri Dec 14 12:30:25 2001 +0000
     5.2 +++ b/docs.html	Fri Dec 14 12:37:34 2001 +0000
     5.3 @@ -16,6 +16,7 @@
     5.4  Major changes since SDL 1.0.0:
     5.5  </H2>
     5.6  <UL>
     5.7 +	<LI> 1.2.4: Added support for building SDL for EPOC/SymbianOS 6.0
     5.8  	<LI> 1.2.4: Added support for Xi Graphics XME fullscreen extension
     5.9  	<LI> 1.2.3: Added X11 Xinerama support - fullscreen starts on screen 0
    5.10  	<LI> 1.2.3: Added platform independent OpenGL header - SDL_opengl.h