静脉中的 opp_run 错误 4.4 + sumo0.25 + omnet 4.6 [英] opp_run error in veins 4.4 + sumo0.25 + omnet 4.6

查看:155
本文介绍了静脉中的 opp_run 错误 4.4 + sumo0.25 + omnet 4.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用 omnet++ 进行模拟的硕士生初学者.这是我第一次为 IVC 模拟安装 omnet + 静脉 + 相扑.

I'm a master student beginner in simulations with omnet++. It's my first installation of omnet + veins + sumo for IVC simulations.

我花了一整天的时间来解决这个问题,但没有成功.我真的需要任何人的帮助.

I'm spend all day to solve this, without success. I really need a help of anyone.

基本上,当我按照教程中的建议尝试运行/veins-4.4/examples/veins"示例时,我收到此错误.错误是:

Basically I'm receiving this error when I try run "/veins-4.4/examples/veins" example as suggested in tutorial. The error is:

Starting...

$ cd /local1/liborio/VehicularNetworking/workspace/veins-4.4/examples/veins
$ opp_run -r 0 -n .:../../src/veins --tkenv-image-path=../../images -l ../../src/veins-4.4 omnetpp.ini

<!> Warning: opp_run: Cannot check library ../../src/veins-4.4: ../../src/veins-4.4: cannot open shared object file: No such file or directory


<!> Error during startup: Cannot load library '../../src/veins-4.4': ../../src/veins-4.4: cannot open shared object file: No such file or directory.
OMNeT++ Discrete Event Simulation  (C) 1992-2014 Andras Varga, OpenSim Ltd.
Version: 4.6, build: 141202-f785492, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

End.

Simulation terminated with exit code: 1
Working directory: /local1/liborio/VehicularNetworking/workspace/veins-4.4/examples/veins
Command line: opp_run -r 0 -n .:../../src/veins --tkenv-image-path=../../images -l ../../src/veins-4.4 omnetpp.ini

Environment variables:
PATH=/local1/liborio/VehicularNetworking/omnetpp-4.6/bin::/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/local1/liborio/VehicularNetworking/workspace/sumo-0.25.0/bin:/local1/liborio/VehicularNetworking/omnetpp-4.6/bin:/home/liborio/Documents/Unicamp/Dropbox/Pesquisa-Mestrado/Projeto/OpenStreetMaps/osmosis-0.44/bin
LD_LIBRARY_PATH=/local1/liborio/VehicularNetworking/omnetpp-4.6/lib::/local1/liborio/VehicularNetworking/workspace/veins-4.4/src:
OMNETPP_IMAGE_PATH=/local1/liborio/VehicularNetworking/omnetpp-4.6/images

非常感谢您的回答.

推荐答案

Prof.@Christoph Sommer,感谢您的回答.

Prof. @Christoph Sommer, thanks for the answer.

在建筑物上没有显示错误或警告.

On the building not errors or warnings are showed.

libveins.so 位于静脉 4.4/src 文件夹中:

The libveins.so is on the veins-4.4/src folder:

-rw-rw-r-- 1 liborio liborio   188 Mar 22 08:58 index.h
lrwxrwxrwx 1 liborio liborio    36 Abr 15 13:55 libveins-4.4.so -> ../out/gcc-debug/src/libveins-4.4.so
-rw-rw-r-- 1 liborio liborio 46586 Abr 14 16:44 Makefile
drwxrwxr-x 2 liborio liborio  4096 Mar 22 08:58 scripts
drwxrwxr-x 5 liborio liborio  4096 Mar 22 08:58 veins

我直接用终端解决了这个问题.

I solved this problem using the terminal directly.

我用 sumo-launchd.py 脚本启动了服务器.

I launched the server with sumo-launchd.py script.

通过终端,在文件夹 */examples/veins 我运行命令:

Via terminal, on the folder */examples/veins I run the commands:

在终端中运行.

opp_run -r 0 -u Cmdenv -n .:../../src/veins -l ../../src/libveins-4.4.so omnetpp.ini

使用图形界面运行.

opp_run -r 0 --tkenv-image-path=../../images -n .:../../src/veins -l ../../src/libveins-4.4.so omnetpp.ini

但它只能通过终端运行.在 IDE 上同样的错误发生.

But it is possible only run via terminal. On the IDE de same error occurs.

我注意到路径显示错误:文件夹veins-4.4"不存在于文件夹/src"中.存在的文件夹名为veins".

I noticed that the path showed on error: The folder "veins-4.4", not exists on the folder "/src". The folder that exists is named "veins".

但由于我不知道更改文件夹名称的影响,所以我没有这样做.

But as I do not know the effects of changing the folder name, I not do it.

我尝试了 4.3 版,但出现了同样的情况.

I tried with version 4.3 and the same situation occurs.

此致.

这篇关于静脉中的 opp_run 错误 4.4 + sumo0.25 + omnet 4.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆