riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
204 stars 132 forks source link

Artery Build issues on Ubuntu 20.04 lts #169

Closed divakar5 closed 3 years ago

divakar5 commented 3 years ago

I got this error at the very final stage of Artery Build, I searched about this but no help yet. Could you please see if you have an idea on this? I have installed all the necessary dependencies to build artery.

divakar@divakar:~/artery/build$ cmake --build . [ 0%] Generating ../extern/inet/.oppfeaturestate /bin/sh: 1: ./inet_featuretool: Permission denied make[2]: [CMakeFiles/INET.dir/build.make:927: ../extern/inet/.oppfeaturestate] Error 126 make[1]: [CMakeFiles/Makefile2:563: CMakeFiles/INET.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Artery build issue

riebl commented 3 years ago

Possibly the script inet_featuretool is simply lacking execution permissions, for whatever reason. You can add these permissions via chmod +x extern/inet/inet_featuretool called from Artery's root directory.

divakar5 commented 3 years ago

Thanks for the quick support!

I tried the above solution you mentioned, after that I'm getting another error as

divakar@divakar:~/artery/build$ cmake --build . [ 0%] Generating ../extern/inet/.oppfeaturestate /usr/bin/env: ‘python3\r’: No such file or directory make[2]: [CMakeFiles/INET.dir/build.make:927: ../extern/inet/.oppfeaturestate] Error 127 make[1]: [CMakeFiles/Makefile2:563: CMakeFiles/INET.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Artery build issue 2

riebl commented 3 years ago

Install python3 on your system then.

divakar5 commented 3 years ago

Hi, I already have python 3.8.5 and i also had python 2..7 hence after the above error I removed python 2.7. still I'm having the same error.

riebl commented 3 years ago

Maybe this answer helps you: https://askubuntu.com/a/896880 Seems like your git clone completely went wrong as file permissions and line endings are broken. I suggest cloning the repository again.

divakar5 commented 3 years ago

Sure Sir, I'll clone the repo again and let you know the result. Thanks for the help, much appreciated!

divakar5 commented 3 years ago

Hi Sir, The issue resolved, as you told it was due to corruption of the Git clone. after recloning, the issue got resolved. I tried simulating an Artery example, only Qtenv popped but Sumo didn't get started, I added the below line in Omnetpp.ini (veins example).

*.traci.launcher.sumo = "sumo-gui"

Note: (I have already installed sumo)

your guidance will be much appreciated, thank you

riebl commented 3 years ago

Do you see any error messages in the logging panel? Is SUMO really not started or just without GUI?

divakar5 commented 3 years ago

There were no errors and Sumo didn't start at all. Qtenv worked as expected.

riebl commented 3 years ago

No error message and no vehicle nodes on the Qtenv canvas? I have no idea how I could help you with this little information.

divakar5 commented 3 years ago

Hi Sir, I tried simulating Veins Example. I also launched sumo using the script but after triggering 'run' on Qtenv I'm facing below errors. Sumo launch error for veins example VeinsExample_error

riebl commented 3 years ago

You are not using Artery but Veins. Neither sumo-launchd.py nor veins::TraCIScenarioManagerLaunchd are related to Artery. You should ask questions related to Veins at their project site.