Work is in progress (in the freertos-wip branch) on a port of Open Mika to FreeRTOS. This port has already been compiled and tested on a company's internal build system, the challenge now is to get it to build on a widely-available platform (Arduino IDE looks a good candidate). For testing we have Freenove starter kit for ESP8266 here in the Kiffer lab.
+-------------------------------------------------------------------------+
| Copyright (c) 2015 by Chris Gray, Kiffer Ltd. All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the following conditions |
| are met: |
| 1. Redistributions of source code must retain the above copyright |
| notice, this list of conditions and the following disclaimer. |
| 2. Redistributions in binary form must reproduce the above copyright |
| notice, this list of conditions and the following disclaimer in the |
| documentation and/or other materials provided with the distribution. |
| 3. Neither the name of KIFFER Ltd nor the names of other contributors |
| may be used to endorse or promote products derived from this |
| software without specific prior written permission. |
| |
| THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| IN NO EVENT SHALL KIFFER LTD OR OTHER CONTRIBUTORS BE LIABLE FOR ANY |
| DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| POSSIBILITY OF SUCH DAMAGE. |
+-------------------------------------------------------------------------+
This file contains a short overview on how to run and build Open Mika. For more detailed information please see the 'doc' dirctory.
The build system is designed to run on x86-linux machine, but it can also be run self-hosted if your target machine has enough memory etc. to perform the compilation. Most of the major linux flavors should enable you to compile and run mika.
Note: depending on your setup, you might need to add entries for java and ant to your PATH.
Building mika is done by calling ant in the same directory as this file is in (the build.xml is next to this README.txt file).
There are 5 tasks which can be called directly with ant :
main: this is the main build task. This is also the default task run by ant. However just typing 'ant' will fail since the build needs to know for what platform you intend to build, and this is specified by the PLATFORM property. To compile for the 'pc' platform the command line would be: 'ant -DPLATFORM=pc' or 'ant -DPLATFORM=pc main'. Ant will now compile and package mika. You can build mika for another platform by calling 'ant -DPLATFORM=otherplatform'.
clean: clean will clean all generated files from a specific build. Example: 'ant -DPLATFORM=pc' clean will delete all files generated specific for the pc build.
cleanall: as it says, cleanall will delete all generated files (no need to specify a PLATFORM).
sample: this target will compile and package all the samples.
tests: the 'tests' target will build the VisualTestEngine, the AppletViewer and the mauve-test. More details on these test can be found in doc/TESTS.txt.
More details on building with various options mika can be found in doc/BUILD.txt
Traditionally the native part of Mika has been built using Jam, but we are in the process of developing a parallel system using GNU Make. This does not yet work for all build options, but the intention is that soon the Makefiles will be able to do everything which is now done by Jam and that GNU Make will replace Jam (and probably also Ant) as the primary build tool.
To build for a PC Linux target using the Makefiles, use the command
ant -DPLATFORM=pc -DBUILD_TOOL=make
After succesfully building mika for you platform, you'll see a directory
under the 'release' directory with the same name as your platform, e.g.
'release/pc'. This contains the binary files needed to run mika;
'bin' contains the executable, while 'lib/mika' stores java classes
(e.g. mcl.jar) plus some properties and resources. The command line of mika works
pretty much like the Sun/Oracle one, for example calling
./release/pc/bin/mika -cp . HelloWord
causes HelloWorld.class to be executed . More info on mika's commandline can be found in doc/COMMAND_LINE.txt