jwl317 / 2020thesis

Thesis
1 stars 0 forks source link

Create installation guide.md #11

Open jwl317 opened 2 years ago

jwl317 commented 2 years ago

CHECK THE INSTALLATION STEPS AGAIN>

  1. omnet Download omnetpp-5.6.2-src-linux.tgz Extract Open terminal from folder omnetpp-5.6.2
    sudo apt-get update
    sudo apt-get install build-essential gcc g++ bison flex perl tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-1.0-0 qt4-qmake libqt4-dev libqt4-opengl-dev openscenegraph libopenscenegraph-dev openscenegraph-plugin-osgearth osgearth osgearth-data libosgearth-dev openmpi-bin libopenmpi-dev nemiver qt5-default

. setenv [1-1] gedit ~/.bashrc

export PATH=$PATH:/home/jwlee/omnetpp-5.6.2/bin
export OMNET_DIR=/home/jwlee/omnetpp-5.6.2
export SUMO_HOME=/home/jwlee/sumo-1.8.0

[1-1-1] apply the changes

save .bashrc, close and re-open the terminal for the changes to take effect or source ~/.bashrc

*check by echo

[2] undo any changes that were made to ./configure.user Then, ./configure

//if there is an error in configuring due to outdated Qt packages sudo apt-get libqt5opengl5-dev

//if there is an error in configuring due to openscenegraph package //osgverion: I have OpenSceneGraph Library 3.2.1 sudo apt-add-repository universe sudo apt-get openscenegraph

//if there is an error in configuring due to osgEarth package

sudo apt-get install osgearth
./configure

//if it still shows an error due to osgEarth ./configure WITH_OSGEARTH=no

make
omnetpp

install INET build all

  1. sumo

download and extract sumo-src-1.8.0.tar.gz

sudo apt-get install git cmake python3 g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev python3-dev swig python-numpy python-opengl python-imaging python-matplotlib python-mpltoolkits.basemap openjdk-8-jdk
mkdir build/cmake-build && cd build/cmake-build
cmake ../..
make -j$(nproc)
cd ../../bin
ls
./sumo
./sumo-gui
  1. veins Download veins-veins-5.1.zip and unpack.

Create new workspace mkdir ~/samples

IDE Wizard Select ~/samples as workspace

Import the project into your OMNeT++ IDE workspace File > Import > General: Existing Projects into Workspace Select veins-veins-5.2 directory

Build the imported project Project > Build All

Originally posted by @jwl317 in https://github.com/jwl317/2020thesis/issues/9#issuecomment-1254756421

jwl317 commented 2 years ago

Sample https://gist.github.com/LongClipeus/12b3ff66b9d6d6bea93198a84e72ca56

jwl317 commented 2 years ago

Create another guide to how to run programs

[Run the proxy between omnet and sumo] still on the terminal from omnetpp directory '/home/jwlee/veins-veins-5.2/sumo-launchd.py' -vv -c '/usr/bin/sumo-gui' Listening on port 9999 # # #

jwl317 commented 2 years ago

[Run the proxy between omnet and sumo] still on the terminal from omnetpp directory '/home/jwlee/veins-veins-5.2/sumo-launchd.py' -vv -c '/usr/bin/sumo-gui'

No, run this command:

/home/jwlee/veins-veins-5.2/sumo-launchd.py' -vv -c '/home/jwlee/sumo-1.8.0/bin/sumo-gui'

9

jwl317 commented 1 year ago

Veins This consitutes a simulation framework. What this means is that Veins is meant to serve as the basis for writing application-specific simulation code. While it can be used unmodified, with only a few parameters tweaked for a specific use case, it is designed to serve as an execution environment for user written code. Typically, this user written code will be an application that is to be evaluated by means of a simulation. The framework takes care of the rest: modeling lower protocol layers and node mobility, taking care of setting up the simulation, ensuring its proper execution, and collecting results during and after the simulation.

https://veins.car2x.org/documentation/

https://veins.car2x.org/documentation/veins-arch.png