Building Mika (under construction)

In this page we describe how to build Mika for an existing CPU type and operating system. For instructions on how to port to a new CPU/OS, see PortMika.

Tooling up

You will need:

  • Apache Ant version 1.6 or later
  • Jam, either Acunia Jam (binary for Linux/x86, sources) or ftjam
  • The Jikes Java compiler (e.g. version 1.22). You can also use another Java compiler, but you will need to edit the Jamfiles in order to do so.
  • A gcc cross-compiling toolchain for your target platform.

Ensure that the binaries for Ant, Jam, Jamjar and Jikes are on your PATH, e.g. by installing them in /usr/bin.

Platform definition file

In the source tree you will find a directory Configuration/platform which contains platform definition files:

> ls Configuration/platform/
arm-linux  mips-uclinux  pc  pc-awt  ppc-linux
> cat Configuration/platform/arm-linux

CPU_MIPS = 200 ;
DEFAULT_HEAP_SIZE default = 16M ;

FLOATING_POINT = hauser ;
SHARED_OBJECTS = true ;

HOSTOS = linux ;
CPU = arm ;
SCHEDULER = o4p ;

CCFLAGS += -DSTORE_METHOD_DEBUG_INFO ;


As you can see, the platform definition file specifies a number of build-time parameters.

(to be continued)

Associating the cross-compiler with the platform

(todo)