Build From Sources

Suggest edits
Documentation > Download


First time setup ๐Ÿ”—

Prerequisites ๐Ÿ”—

You will need the following tools to get a local copy of OpenMOLE running:
  • A java 8 (or higher) JDK (N.B. not only the JRE!). Check your version by typing javac -version in a terminal.
  • The git software and the LFS extension.
  • SBT, the Scala Building Tool.
  • npm, library required to build the website.
As a suggestion, we recommend the IntelliJ IDE to edit the Scala source code of the project.

Get the project and set it up ๐Ÿ”—

The following commands are to be typed in your command shell (prompt $> )
  1. Clone the OpenMOLE repository:

    $> git lfs install
    $> git lfs clone
  2. Publish locally the content of the build-system and libraries subdirectories:

    $> cd openmole/build-system
    $> sbt publishLocal
    $> cd ../libraries/
    $> sbt publishLocal
These commands may take some time to execute (a few minutes at least).

Build the OpenMOLE application ๐Ÿ”—

Build from sources ๐Ÿ”—

To build the OpenMOLE application, use the sbt assemble command inside the openmole subdirectory.

$> cd openmole
$> sbt
# following commands occur inside sbt prompt
sbt:openmole-root> project openmole
openmole> assemble
Upon completion, the executable is placed under /openmole/openmole/bin/openmole/target/assemble and is launched as any executable via the ./openmole command. The app should then pop up in your default web browser, the URL should be something like http://localhost:44961/app.

Create a standalone archive ๐Ÿ”—

You can create a standalone archive of your fresh OpenMOLE build and ship it around by using sbt openmole:tar. You will find the resulting archive in bin/openmole/target/openmole.tar.gz.

Publish the bundles

$> cd build-system
$> sbt publish
$> cd ../libraries
$> sbt publish
$> cd ../openmole
$> sbt publish

Compile within Docker ๐Ÿ”—

An easy way to get an OpenMOLEย compilation environment up and running is to use docker. Once docker is installed on your machine you can do:

$> git clone
$> cd docker-build
$> ./run -v /a/local/path/on/your/system
# You should be in the docker container now, execute

You can now find the compiled OpenMOLE app in /a/local/path/on/your/system/openmole/openmole/bin/openmole/target/assemble/.