-
Notifications
You must be signed in to change notification settings - Fork 6
Developer
You should look at the [ccns3Sim Paper](The paper).
The recommended method to develop against git is to fork our public repository to your account and develop against that. You can then generate pull requests to ask for changes to be incorporated in to the public release.
- In github.com, you need to have your own account.
- Go to our project in github.com/PARC/ccns3Sim and click on the Fork button. Specify your personal account as the target.
- Follow the [Getting Started walkthrough](Getting Started#complete-walkthrough), and use your personal fork for the git URI.
- Add our repository as the upstream, so you can pull changes (git remote add upstream [email protected]:PARC/ccns3Sim.git).
... FINISH ...
This is a walkthrough on setting up Eclipse from scratch. It assumes you have followed the [Getting Started walkthrough](Getting Started#complete-walkthrough) to download NS3 and clone our code in to the source directory.
You should have a recent Eclipse (we use Mars) along with the C/C++ module.
We create the workspace in the ~/ns3 directory. This is one directory up from where you put your NS3 allinone package.
You should have run "./waf configure" already (from the Getting Started section).
- Select
File | Importand choose from the C/C++ group "Existing code as Makefile Project".- Project Name = ns-allinone-3.25
- Location = ~/ns3/ns-allinone-3.25
- Languages: check both C and C++
- Toolchain: Select "MacOSX GCC" (or appropriate Linux one)
- Right click the project and select "Properties", navigate to C/C++ Build
- "Builder Settings" tab
- Deselect "use default build command"
- Build command: ${ProjDirPath}/ns-3.25/waf
- Build directory: ${ProjDirPath}/ns-3.25
- Click "Apply"
- "Behavior" tab
- Check "enable parallel build"
- Build (incremental build): build (was "all")
- Click "Apply"
- "Refresh Policy" tab
- Click the project name
- Click "Add Exception"
- Click "Add" and exclude these directories: bake, netanim-3.106, pybindgen-..., ns-3.25/doc
- It's very important to add the ns-3.25/doc directory if you will be building the doxygen, otherwise Eclipse can stall out on parsing the directory.
- Click "Apply"
- "Builder Settings" tab
- In the project properties tree, select "C/C++ General"
- Select "Enable project specific settings"
- Select "Doxygen" as the Documentation Tool.
- In the project properties tree, select "C/C++ General | Formatter"
- Enable project specific settings
- Select "GNU [built-in]"
- In the project properties tree, select "C/C++ General | Paths and Symbols"
- "Includes" tab for GNU C++
- Click "Add", then "Workspace", then navigate to "ns-allinone-3.25/ns-3.25/src" and click OK
- Click "Add to all configurations" and "Add to all languages" (note: this doesn't exist in OSX 4.5.2 version).
- Click "OK"
- "Source Location" tab
- Select "Add Folder" and navigate to "ns-3.25/src"
- Select original entry "ns-allinone-3.25" in the "build path" window and then "Delete"
- Click "Apply" and then "Yes" to rebuild the index
- Click "OK"
- "Includes" tab for GNU C++
You should now be able to use Command-B or one of the buttons or menu items to run the build.
If you get an error like: "make: *** no rule to make target 'all'. Stop." then check your setting from step 2.i.b and make sure you are using "waf" and check 2.ii.b for the build target name.
We have exported our launch configurations to the directory ns-3.25/src/ccns3Sim/eclipse-launch. If you use "File | Import" and select "Run/Debug Launchers" you can set this directory as where to save and load launch configurations. It will be a live link -- what's in the directory will appear in your menu and if you delete or edit or create something it will appear in the directory.
Copyright (c) 2016, Xerox Corporation (Xerox) and Palo Alto Research Center (PARC). All rights reserved.