Difference between revisions of "HOWTO configure Eclipse with ns-3"

From Nsnam
Jump to: navigation, search
Line 10: Line 10:
 
         NB:It is advised to use a different directory for the code say ~/src
 
         NB:It is advised to use a different directory for the code say ~/src
 
     * clone the mercurial reppository: go to ~/src and execute hg clone http://code.nsnam.org/ns-3-dev ns3dev
 
     * clone the mercurial reppository: go to ~/src and execute hg clone http://code.nsnam.org/ns-3-dev ns3dev
     * create a new empty C++ project with your preferred name and the path is ~/src/ns3dev
+
     * create a new empty C++ project with your preferred name and the path is ~/src/ns3devt on
 +
    * click right on the project and go to team->share project
 +
    * click on next and click on use local hg and finish
 +
You should have now your project configured with eclipse and be able to pull, update, view history, etc in eclipse. The next steps will allow you to configure, compile and run the code from eclipse.
 +
 
 
[[User:fmoatamr|fmoatamr]] 18:11, 7 August 2009 (EDT)
 
[[User:fmoatamr|fmoatamr]] 18:11, 7 August 2009 (EDT)

Revision as of 11:01, 9 August 2009

   * First download eclipse IDE for C++ developers from www.eclipse.org
   * Install eclipse into you operating system
   * Install mercurial eclipse plugin:
       - Go to help->software update
       - Click on available software
       - Click on add a site
       - Add http://www.vectrace.com/eclipse-update/ taken from http://www.vectrace.com/mercurialeclipse/ then click on mercurialeclipse and check the box and click on install
   * We suppose that you already have mercurial installed on your machine
   * start eclipse, it will create a workspace directory
       NB:It is advised to use a different directory for the code say ~/src
   * clone the mercurial reppository: go to ~/src and execute hg clone http://code.nsnam.org/ns-3-dev ns3dev
   * create a new empty C++ project with your preferred name and the path is ~/src/ns3devt on 
   * click right on the project and go to team->share project
   * click on next and click on use local hg and finish

You should have now your project configured with eclipse and be able to pull, update, view history, etc in eclipse. The next steps will allow you to configure, compile and run the code from eclipse.

fmoatamr 18:11, 7 August 2009 (EDT)