<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wireless Wave &#187; NS-3</title>
	<atom:link href="http://matinrad.com/index.php/category/network/network-simulation/ns-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://matinrad.com</link>
	<description>Arash, wireless and more</description>
	<lastBuildDate>Sun, 07 Feb 2010 17:36:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NS-3 (NS3) And Eclipse (Part I)</title>
		<link>http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/</link>
		<comments>http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:37:19 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
				<category><![CDATA[My notes]]></category>
		<category><![CDATA[NS-3]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[NS3]]></category>
		<category><![CDATA[NS3 simulator]]></category>

		<guid isPermaLink="false">http://matinrad.com/?p=145</guid>
		<description><![CDATA[This is a short explanation on how I added NS-3 (version 3.6) to Eclipse (Galileo). I use first part from NS-3 Wiki
Adding Mercurial to Eclipse
First download eclipse IDE for C++ developers from http://www.eclipse.org
* Install eclipse into you operating system
* Install mercurial eclipse plugin:
- Go to help-&#62;software update
- Click on available software
- Click on add a [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F02%2Fns-3-and-eclipse%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F02%2Fns-3-and-eclipse%2F" height="61" width="51" /></a></div><p>This is a short explanation on how I added NS-3 (version 3.6) to Eclipse (Galileo). I use first part from <a title="NS-3 Wiki- How to use Eclipse with NS-3" href="http://www.nsnam.org/wiki/index.php/HOWTO_configure_eclipse_with_ns-3" target="_blank">NS-3 Wiki</a></p>
<p><em><strong>Adding Mercurial to Eclipse</strong></em></p>
<blockquote><p>First download eclipse IDE for C++ developers from <a title="http://www.eclipse.org" rel="nofollow" href="http://www.eclipse.org/">http://www.eclipse.org</a><br />
* Install eclipse into you operating system<br />
* Install mercurial eclipse plugin:<br />
- Go to help-&gt;software update<br />
- Click on available software<br />
- Click on add a site<br />
- Add <a title="http://www.vectrace.com/eclipse-update/" rel="nofollow" href="http://www.vectrace.com/eclipse-update/">http://www.vectrace.com/eclipse-update/</a> taken from <a title="http://www.vectrace.com/mercurialeclipse/" rel="nofollow" href="http://www.vectrace.com/mercurialeclipse/">http://www.vectrace.com/mercurialeclipse/</a> then click on mercurialeclipse and check the box and click on install<br />
* We suppose that you already have mercurial installed on your machine</p></blockquote>
<p><em><strong>Making a Clone of NS-3 in Eclipse</strong></em></p>
<p>After you that you need to add the NS-3 from the repository:</p>
<p>Select: New -&gt; Other, and it would be like picture below:</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 310px"><a href="http://matinrad.com/wp-content/uploads/2010/02/ns-3_Eclipse_mercurial.png"><img class="size-medium wp-image-147" title="Eclipse mercurial new project" src="http://matinrad.com/wp-content/uploads/2010/02/ns-3_Eclipse_mercurial-300x238.png" alt="" width="300" height="238" /></a><p class="wp-caption-text">Eclipse mercurial after new project</p></div>
<p style="text-align: center;">
<p>Then press next. now you need to enter &#8220;Repository location URL&#8221; that is: <em><strong>http://code.nsnam.org/ns-3-dev</strong></em></p>
<p>in case you want to have different versions of the NS-3 you need to define the &#8220;Clone directory name&#8221;, in the figure below I chose <em><strong>ns-3.7-dev </strong></em></p>
<div id="attachment_148" class="wp-caption aligncenter" style="width: 281px"><a href="http://matinrad.com/wp-content/uploads/2010/02/2.png"><img class="size-medium wp-image-148" title="Clone the NS-3 to workspace" src="http://matinrad.com/wp-content/uploads/2010/02/2-271x300.png" alt="" width="271" height="300" /></a><p class="wp-caption-text">Clone the NS-3 to workspace</p></div>
<p>Now you just need to wait for the project files be cloned. then you will find a copy of the project you wanted like below:</p>
<div id="attachment_149" class="wp-caption aligncenter" style="width: 310px"><a href="http://matinrad.com/wp-content/uploads/2010/02/4.png"><img class="size-medium wp-image-149" title="A clone made of NS-3.7-dev in clipse" src="http://matinrad.com/wp-content/uploads/2010/02/4-300x268.png" alt="" width="300" height="268" /></a><p class="wp-caption-text">A clone made of NS-3.7-dev in clipse</p></div>
<p>Since the folder is not know as a C++ project it is necessary to be converted to so right click on project name and select: new -&gt; convert to a C/C++ project the rest of settings should be same as picture below:</p>
<div id="attachment_150" class="wp-caption aligncenter" style="width: 280px"><a href="http://matinrad.com/wp-content/uploads/2010/02/5.png"><img class="size-medium wp-image-150" title="Convert to C++ project" src="http://matinrad.com/wp-content/uploads/2010/02/5-270x300.png" alt="" width="270" height="300" /></a><p class="wp-caption-text">Convert to C++ project</p></div>
<p><em><strong>Configuring the Build system</strong></em></p>
<p>We know that build system for NS-3 is Waf so we need to change the build configuration from build/make to Waf. so right click on project and select the properties then choose the &#8220;C/C++ Build&#8221;.</p>
<p>In the &#8220;<strong>Builder setup</strong>&#8221; choose &#8220;<strong>External Builder</strong>&#8221;</p>
<p>Remove the check from &#8220;<strong>Use default build command</strong>&#8221;</p>
<p>change &#8220;<strong>Build command</strong>&#8221; to<em><strong> ${workspace_loc:/ns-3.7-dev/waf}</strong></em></p>
<div id="attachment_152" class="wp-caption aligncenter" style="width: 310px"><a href="http://matinrad.com/wp-content/uploads/2010/02/8.png"><img class="size-medium wp-image-152" title="Behaviour setting " src="http://matinrad.com/wp-content/uploads/2010/02/8-300x195.png" alt="" width="300" height="195" /></a><p class="wp-caption-text">Behaviour setting</p></div>
<p>in Behavior tab, clear both &#8220;<strong>Build on resource save (Auto save)&#8221; </strong>and &#8220;<strong>Build (Incremental build)</strong></p>
<p><strong></p>
<div id="attachment_152" class="wp-caption aligncenter" style="width: 310px"><strong><a href="http://matinrad.com/wp-content/uploads/2010/02/8.png"><img class="size-medium wp-image-152" title="Behaviour setting " src="http://matinrad.com/wp-content/uploads/2010/02/8-300x195.png" alt="" width="300" height="195" /></a></strong><p class="wp-caption-text">Behaviour setting</p></div>
<p></strong></p>
<p>Now all you need to do is to push  <em>apply </em>and<em> Ok</em>. you will notice that Waf starts to build the whole project.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F02%2Fns-3-and-eclipse%2F&amp;linkname=NS-3%20%28NS3%29%20And%20Eclipse%20%28Part%20I%29">Share/Save</a>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
