ManiAm / VENTOS_Public

VEhicular NeTwork Open Simulator (VENTOS)
http://maniam.github.io/VENTOS/
GNU General Public License v3.0
57 stars 25 forks source link

Installation issue #23

Closed xwenarthur closed 6 years ago

xwenarthur commented 6 years ago

Hi Mani

I'm really sorry to disturb you. I'm a graduate from US. Now I got an installation problem. When I run './runme', a configure error generates, as the figure shows.

screen shot 2018-04-17 at 15 33 13

I'm confused because I'm sure I installed osgearth package.

If I set 'WITH_OSGEARTH=no' in configure.user, there is another error shown below.

screen shot 2018-04-17 at 15 27 24

What should I do? I really need your help. Because this's my graduation thesis. :)

Thank you!

ManiAm commented 6 years ago

If I set 'WITH_OSGEARTH=no' in configure.user, there is another error shown below.

you should not use that flag, because osgearth lib is needed during compile time.

What version of Ubuntu are you running? 16.04?

xwenarthur commented 6 years ago

Yes. I use Ubuntu 16.04

ManiAm commented 6 years ago

can you run this command in terminal and tell me the output?

echo $PATH

Also this:

dpkg -l '*osg*'

I get these outputs:

2018-04-17_16-15-19

xwenarthur commented 6 years ago

Sure! Thank you for your time.

screen shot 2018-04-17 at 17 10 00
ManiAm commented 6 years ago

Also this:

dpkg -l '*osg*'

xwenarthur commented 6 years ago
screen shot 2018-04-17 at 21 28 20

Here is it.

ManiAm commented 6 years ago

it is identical to my system. The error you get is from the g++ compiler itself! Notice that the error says internal error!

I suggest you to go to the omnet directory from the terminal and run make clean to clean the build and then run make all. Then run the runme script again.

xwenarthur commented 6 years ago

Thank you! I did it but another problem shows up. It seems 'Makefile.inc' doesn't exist. There is only a file called 'Makefile.inc.in', as the figure shows.

screen shot 2018-04-17 at 21 43 32
ManiAm commented 6 years ago

I thought that the runme script has run the configure command for you first. Run these:

./configure make

xwenarthur commented 6 years ago

When I go to the omnet directory and type in: ./configure make

It still says 'configure: error: Cannot find osgEarth......'

Makefile:36: Makefile.inc: No such file or directory make: *** No rule to make target 'Makefile.inc'. Stop.

I have even deleted the Ubuntu and re-installed it. But it still happens... :(

screen shot 2018-04-17 at 22 36 36
ManiAm commented 6 years ago

this is very strange! unfortunately I do not have any more hints for you. I even installed VENTOS from scratch on a fresh Ubuntu and it worked! I suggest you to download OMNET from their official website and follow their installation guide to install it on Ubuntu and then import VENTOS.

xwenarthur commented 6 years ago

Ok. Btw, should I install OMNET 5.0 or 5.1?

Thank you!

ManiAm commented 6 years ago

OMNET 5.1:

https://www.omnetpp.org/component/jdownloads/download/32-release-older-versions/2309-omnetpp-5-1-linux

xwenarthur commented 6 years ago

Thank you Mani. Now I'm able to install VENTOS on my mac. The trick is that the VirtualBox, not Parallel Desktop should be used.

But now I got another problem, when running the sample scenario. Is there any idea?

screen shot 2018-04-19 at 00 14 11 screen shot 2018-04-19 at 00 09 26
ManiAm commented 6 years ago

The trick is that the VirtualBox, not Parallel Desktop should be used.

I though that you are already using VirtualBox or VMWare. I am not familiar with parallel desktop. But if it is a virtual machine it should not matter!

But now I got another problem, when running the sample scenario. Is there any idea?

Your run configuration is wrong! The working dir should point to a folder in the example folder (platoon_cacc) and ini file(s) should be omnetpp.ini in your example.

xwenarthur commented 6 years ago

Thank you a lot, Mani!!!

Finally, I'm able to run the simulation scenario! :)

ManiAm commented 6 years ago

Good! i am closing this issue.