Downloading and Building Mika
Source code repository
You can obtain a copy of the "head" (i.e. latest developement-) version of Mika from the source repository as follows:
svn checkout svn://svn.k-embedded-java.com/Mika/trunk
Build tools
To build Mika you will need following tools:
- a PC running Linux (any recent distro)
- a Java runtime on which to run ant
- Apache ant (version 1.6.2 or higher)
- jam. You can find acunia-jam at https://opensource.luminis.net/confluence/display/WONKA/Wonka+Downloads, or you can use FT Jam. Make sure the binary file is named jam and is somewhere in your PATH.
- the jikes Java compiler; available from http://jikes.sourceforge.net. We currently use version 1.22.
- awk (preferably GNU awk)
- a gcc (cross-)toolchain for your target platform.
Building Mika
After the checkout you should have a trunk directory. To build a version of Mika for PC, type
cd trunk
ant -DPLATFORM=pc
(or -DPLATFORM=pc-awt if you want to have an AWT version).
To build for another platform you should normally create your own set of Configuration files. However for arm you can try:
ant -DPLATFORM=default -DJAM.PLATFORM=arm-linux
(check in Configuration/platform for other alternatives than arm-linux). In the event of failures look in the build/platform/log directory, e.g. build/pc-awt/log or build/arm-linux/log. One commmon problem is that your cross-compiler has a different name; you can fix that in the Configuration/cpu/cpu file.
Once the build is completed, you'll find the binaries in the release/PLATFORM directory. Example:
ant -DPLATFORM=pc
would create it files in directory release/pc/, so the command to run Mika is ./release/bin/mika parameters...
(to be continued) .. .
Attachments
- gamezero_cn_2211191824830.jar (153.7 kB) - added by anonymous on 10/09/07 18:15:22.
- 8227e52494.jpg (67.7 kB) -
drivers
, added by djibril1181@yahoo.fr on 10/30/07 09:33:57.
