Skip to content

Installation

Tomasz Jankowski edited this page Jul 22, 2018 · 3 revisions

Overview

SMILe is developed on Linux platform, therefore it is considered the primary platform. However, it should be possible to run SMILe on other platforms supported by OMNET++ (Windows and macOS).

Table of Contents

Linux

This section discusses installation on Ubutnu 18.04. If you run other Linux distribution some steps may be slightly different (e.g. depend on different package manager).

OMNET++

Download OMNET++ 5.4.x tarball from official project site. Extract it to e.g. /home/[user_name]/omnet. Follow official installation guide, but note configuration discussed below.

Following OMNET++ features may be skipped because SMILe does not require them

  • Support for parallel simulation (MPI)
  • Support for 3D visualization, OpenSceneGraph and osgEarth
  • Support for PCAP

Update configure.user

  • Uncomment CFLAGS_RELEASE and CFLAGS_DEBUG
  • Uncomment CXXFLAGS and change it to CXXFLAGS=-std=c++14
  • Set WITH_OSG, WITH_OSGEARTH and WITH_PARSIM accordingly

Create directory for SMILe framework and projects e.g. /home/[user_name]/indoor_loc.

Launch OMNET++ IDE and select newly created indoor_loc directory as default workspace. Close First Steps dialog (do not let OMNET++ IDE to install INET for you).

INET

Download INET 3.6.x tarball from [official project site](https://inet.omnetpp.org/ and extract it to indoor_loc directory. Import INET to your OMNET++ IDE, go to File -> Import.... In new dialog choose General -> Existing projects into Workspace. In next step choose Select root directory and set it to indoor_loc/inet.

Build INET (open context menu for inet on Project Explorer pane and click Build Project).

SMILe

Clone SMILe repository to indoor_loc' folder. Import and build SMILe, follow instructions for INET.

Python

Make sure you have Python 3, pip and Python's Tk packages installed in your system. On Ubuntu you can run

sudo apt-get install python3 python3-pip python3-tk

Install packages required by SMILe using pip. On Ubuntu you will run

pip3 indor_loc/smile/requirements.txt

Post-installation steps

Edit .bashrc file (it is in your home directory). Add or update following lines

export PATH=$PATH:/home/[user_name]/omnet/bin:/home/[user_name]/indoor_loc/smile/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/goofy/omnetpp/lib
export PYTHONPATH=$PYTHONPATH:/home/[user_name]/indoor_loc/smile/python

Remember to replace /home/[user_name]/indoor_loc and /home/[user_name]/omnet you actually used during installation.

Clone this wiki locally