1. Install and configure ns-3 (ubuntu12.04) in eclipse

Source: Internet
Author: User

Install a series of NS3 packages with the following script:

#!/bin/sh

sudo apt-get install gcc g++ python python-pygccxml

sudo apt-get install gcc g++ python python-dev

sudo apt-get install mercurial

sudo apt-get install BZR

sudo apt-get install gdb valgrind

sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl

sudo apt-get install Flex Bison Libfl-dev

sudo apt-get install tcpdump

sudo apt-get install SQLite sqlite3 Libsqlite3-dev

sudo apt-get install libxml2 Libxml2-dev

sudo apt-get install libgtk2.0-0 Libgtk2.0-dev

sudo apt-get install Vtun LXC

sudo apt-get install uncrustify

sudo apt-get install Doxygen graphviz ImageMagick

sudo apt-get install texlive texlive-extra-utils Texlive-latex-extra

sudo apt-get install Python-sphinx dia

sudo apt-get install Python-pygraphviz python-kiwi python-pygoocanvas Libgoocanvas-dev

sudo apt-get install Libboost-signals-dev Libboost-filesystem-dev

sudo apt-get install python-gnome2 python-gnomedesktop python-rsvg

sudo apt-get install Ipython

sudo apt-get install Qt4-dev-tools

sudo apt-get install gnuplot

sudo apt-get install wireshark*

Configuring NS3 in Eclipse

Help-> "Install New software ..." Enter the website, select all.

Http://download.eclipse.org/tools/cdt/releases/kepler

After importing the project, right-click the project, set,

In the builder settings tag for C + + Builder:

Remove the check in front of "Use default Build Command" and "Generate Makefile automatically"

Set build command: ${workspace_loc:/ns-3.19/waf}

Set up build directory: ${workspace_loc:/ns-3.19//build}

In the behaviour tag for C + + Builder:

Select All Workbench Build behavior check boxes are selected, the first 2 values are empty, and the last one is clean.

Setting up Eclipse executor using external tools

Run->external Tools->externel Tools configurations, right-select New,name in program can be set to ns3-waf-3.19, set ${in location WORKSPACE_LOC:/NS-3.19/WAF}, set to--run "${string_prompt}" in Settings ${workspace_loc:/ns-3.19},argument in working directory.

Finally click the run selector and you can choose Scratch-simulator to perform the simulation.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.