Hi Breno,
Thanks for the details, that helped me understand where was the problem in the instructions. I will now first give a summary for the NR module and then for the NR V2X, separately.
In the following instructions, I will provide instructions according to which you will have 2 separate ns-3 project folders, one for ns3 + NR installation, and another for ns-3 + NR-V2X installation. I believe that it is much easier to start in this way, you can choose which of these installations want, or you can install both as in the following.
cd ns-3-dev
When previous successful continue with:
cd contrib
Checkout compatible NR and ns-3 releases:
cd nr
git checkout 5g-lena-v2.2.y
cd ../..
You can see in the NR RELEASE_NOTES what is the recommended ns-3 release, so you check out that release:
git checkout ns-3.36.1
Then you configure it again:
./ns3 configure --enable-examples --enable-tests
And try to build:
./ns3
2. NR V2X installation version v2x-v0.1. To install the
NR V2X branch you should follow the link that Breno shared in the first email:
https://gitlab.com/cttc-lena/nr/-/blob/nr-v2x-dev/README.md. However, these instructions are maybe too complex for someone who is starting with git, so I will here make a very brief summary of it:
Notice in the following line, we do not download official ns-3-dev, this is ns-3-dev adapted for NR V2X:
Specific feature development is never on master, we move now to the ns-3 V2X branch:
git checkout v2x-lte-dev
We are now on the correct ns-3 branch, but to make your life more complicated :-), this branch is at the same time a release and the development branch. So, in that case, you need to return to a specific ns-3 V2X release commit, which has been tested for the specific NR V2X release. These commit releases are normally tagged with git tags. If you want to see the list of available ns-3 v2x release tags run:
git tag -l "*v2x*"
You will see that for the moment, as of today 20/09/2022, the only available tag is: ns-3-dev-v2x-v0.1, to check it out run:
git checkout ns-3-dev-v2x-v0.1
Git will now warn you that you are in a 'detached HEAD' state. Don't worry that is OK.
We continue. Now you navigate to your contrib folder.
cd contrib
cd nr
Now you need to move to your NR V2X branch, and I promise you are almost done ( :-) hahaha):
git checkout 5g-lena-v2x-v0.1.y
cd ../..
./waf configure --disable-python --enable-tests --enable-examples
./waf build
I refer here to all 5G-LENA users who will read this thread. All this instructions is for all of you. If you notice that any of these two previous sequences for installation is not correct, please let us know by replying to this email. If finally these instructions are ok for everyone, I will try to propose to update soon V2X installation instructions to be a bit more simple and to include the explanation about checking out the correct release tag of the ns-3 V2X repo.
I also think that ns-3-dev and NR V2X are upgraded to use the latest ns-3-dev release (ns-3.36.1), I will check with other V2X maintainers whether a new upgraded NR V2X version can be released soon.
Kind regards,
Biljana