-
Notifications
You must be signed in to change notification settings - Fork 6
Developer
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 git@github.com: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.24.1
- Location = ~/ns3/ns-allinone-3.24.1
- 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.24.1/waf
- Build directory: ${ProjDirPath}/ns-3.24.1
- "Behavior" tab
- Check "enable parallel build"
- Build (incremental build): build (was "all")
- "Refresh Policy" tab
- Click the project name
- Click "Add Exception"
- Click "Add" and exclude these directories: bake, netanim-3.106, pybindgen-..., ns-3.24.1/doc
- It's very important to add the ns-3.24.1/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.24.1/ns-3.24.1/src" and click OK
- Click "Add to all configurations" and "Add to all languages".
- Click "OK"
- "Source Location" tab
- Select "Add Folder" and navigate to "ns-3.24.1/src"
- Select original entry "ns-allinone-3.24.1" in the "build path" window and then "Delete"
- Click "Apply" and then "Yes" to rebuild the index
- Click "OK"
- "Includes" tab for GNU C++
Copyright (c) 2016, Xerox Corporation (Xerox) and Palo Alto Research Center (PARC). All rights reserved.