whenever you found written here something like "it doesn't work" in
a particular way or "it works" in another, plase consider that these
are our experiences.
If you find a workaround, some new insights, etc…please let us know.
USE /bin/bash. Other shells do not work for the FLAIR framework. Save yourself the hassle and use bash temporarely.
git clone https://gitlab.utc.fr/zemanico/CUSCUS.git
A kind suggestion: use Vagrant to easily set up your VMs.
We used this box.
CUSCUS can take up a lot of space, please reserve at least 30GB for an initial install.
is enough to get NS3 up and running.
install vtun and lxc packages (I installed also all the suggested packages)
sudo apt-get install vtun lxc
Better safe than sorry:
sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml
Install NS-3 as per tutorial wherever you like.
--enable-sudo --enable-tests --enable-examples
export <place where waf is located> NS3_MAIN_PATH
Install the NS3 CUSCUS mod:
$CUSCUS/mods/ns3-src/src/mobility/model/uav-link-mobility-model.cc & .h
In $CUSCUS/mods/ns3-src/src/mobility/wscript there is an example;
Basically you have to add in "wscript" in the section "mobility.source" and "headers.source" the two source files.
$CUSCUS/mods/ns3-src/src/buildings/model/hybrid-raylight-buildings-propagation-loss-model.cc & .h
install the main cuscus runtime in the scratch folder of NS3 (dont' ask why we didn't setup a proper application model, we'll do that later, with all bells and whistles):
Re-compile ns-3 with waf
The ns-3 simulator should be is ready
Plase feel free to use the documentation for installation available here.
Just make sure that you also complete all the substeps in this section:
$FLAIR_ROOT and $NS3_MAIN_PATH