It is important to note that this module presently requires a special branch of ns-3 and a special branch of nr, both extended for V2X and ProSe. The release version numbers are synchronized across these components.
### Instructions for latest release
1) Download or check out the special ns-3 repository with a ProSe branch from the tag matching the desired release from NIST's [psc-ns3](https://github.com/usnistgov/psc-ns3/) website. In this example, we will use a release branch corresponding to release version 1.1 (which aligns with CTTC NR 3.1 release).
git clone https://github.com/usnistgov/psc-ns3.git
cd psc-ns3
git checkout -b ns-3-dev-v2x-v1.1-prose tags/ns-3-dev-v2x-v1.1-prose
2) cd into the contrib directory and add the [nr](https://gitlab.com/cttc-lena/nr.git) module from CTTC. Check out the tagged release version corresponding to this release (e.g., v1.1 release)
git clone https://gitlab.com/cttc-lena/nr.git
cd nr
git checkout -b v2x-1.1 tags/v2x-1.1
3) add this nr-prose module. Ensure that the directory name is `nr-prose`. Checkout the appropriate version to match the above.
cd ..
git clone https://github.com/usnistgov/nr-prose-ns3-module.git nr-prose
cd nr-prose
git checkout -b v1.1 tags/v1.1
4) add any other apps to contrib that you may want
5) cd back to the top level ns-3 directory and configure and build
### Instructions for development version
The instructions are similar to above except that different branches must be checked out, as follows:
1) Download or check out the special ns-3 repository with the "v2x-lte-dev-prose" branch from NIST's [psc-ns3](https://github.com/usnistgov/psc-ns3/) website.
git clone https://github.com/usnistgov/psc-ns3.git
cd psc-ns3
git checkout -b v2x-lte-dev-prose origin/v2x-lte-dev-prose
2) cd into the contrib directory and add the [nr](https://gitlab.com/cttc-lena/nr.git) module from CTTC. Check out the "nr-v2x-dev" branch
git clone https://gitlab.com/cttc-lena/nr.git
cd nr
git checkout -b nr-v2x-dev origin/nr-v2x-dev
3) add this nr-prose module. Ensure that the directory name is `nr-prose`. By default, the desired 'master' branch will be checked out.
cd ..
git clone https://github.com/usnistgov/nr-prose-ns3-module.git nr-prose
Then follow steps 4) and 5) above about finishing the module installations and building ns-3.