-
Notifications
You must be signed in to change notification settings - Fork 3
Installation
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
- Installation on Linux
- VirtualBox image with pre-installed SMILe
- Docker container with pre-installed SMILe
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).
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_RELEASEandCFLAGS_DEBUG - Uncomment
CXXFLAGSand change it toCXXFLAGS=-std=c++14 - Set
WITH_OSG,WITH_OSGEARTHandWITH_PARSIMaccordingly
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).
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).
Clone SMILe repository to indoor_loc' folder. Import and build SMILe, follow instructions for INET.
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
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.