Skip to content

MinGW Symbian Build Chain

I saw harry Li’s blog post about generic symbian makefile, and I found it very interesting. The makefile seems to be a very good tool for porting software from other platforms into Symbian OS.
The MinGW in also nice build solution, since it doesn’t modifiy existing environment, so it can be used in parallel with old build setup. My version of the generic makefile is using newer GCCP and it supports assembly files and static libraries. This is a nice setup for building asm optimized sources in Symbian environment. If you also want to use newer version of GCCE you should see wiki page about the update process( changes in header files etc).
The MinGW makes it easy to modify the build, so we have a better control of the build process than mystical Symbian OS buildchain. It took less than 10 minutes to add the support for assembler. It’s also very fast to change between two GCCE versions with this.
I made some small modifications for my own purposes. Here are the instructions to use this environment.

  1. install SVG2SVGConvertter. The installation file can be found under EPOCROOT\S60tools\svg2svgt\installer\
  2. The script should be executed from \gms directory. The script also expects to have \dist\gcce and \obj\gcce directories under the gms directory, so you should also make these folders.
  3. The OS_HRH part doesn’t seem to work in the I solved this my replacing the include statement in epoc32\gcce\gcce.h to
    #if defined(__PRODUCT_INCLUDE__)
     #include <variant/Symbian_OS.hrh> //for MinGW
     //#include __PRODUCT_INCLUDE__ //quick hack

Some modifications for newer GCCE.

  1. Modify the PATH variable and replace the old GCCE installation path with the new one.
  2. Change also CC_INSTALL_PATH variable into new GCCE installation path
  3. I modify the version numbers in scrips.

Know limitations:

  1. There is no build for help files, and the svg conversion seems to be a bit limited. However the shouldn’t be any major issues, if old buildchain is still used for some builds.

Download the makefile and
a sample of is shown on below.

PROJECT_NAME = myproject
UID2 = 0
EPOCHEAPSIZE = 5000000 64000000
SYSINCLUDE = $(EPOCROOT2)/include $(EPOCROOT2)/include/esdl $(EPOCROOT2)/include/libc
 myapp.cpp \
 myApplication.cpp \
 myAppView.cpp \
 myAppUi.cpp \
 myDocument.cpp \
 main.c \
 my_asm_optimized_source.S \
SYSLIBRARY = euser.lib avkon.lib eikcore.lib eiksrv.lib apparc.lib estlib.lib efsrv.lib cone.lib
STATICLIBRARY = mystaticlib.lib
CERT = /c/cert/gps60p.cert
KEY = /c/cert/gps60p.key

I tested the MinGW buildchain and scripts by compiling the gpSP (probably the best GBA emulator) from GP32 platform to Symbian OS. The gpSP was also nice test, since it uses the c preprocessor (cpp) alot, and the old Symbian buildchain fails miserably building the gpSP sources. However with MinGW the build looks very promising, so I’m really temptated to continue with this port.


  1. I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.

Leave a Reply