动脉(静脉扩展)的例子不起作用

时间:2016-09-11 03:16:53

标签: c++ omnet++ veins sumo

我对Omnet没有多少经验,我想知道我是否正确运行该命令来运行该示例。

首先,当我键入make Vanetza时,我意识到缺少COHDA_MK2_ROOT,但是,Vanetza编译没有错误:

mkdir extern/vanetza/build cd extern/vanetza/build && cmake -DCMAKE_BUILD_TYPE=Release .. -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Boost version: 1.58.0 -- Boost version: 1.58.0 -- Found the following Boost libraries: -- date_time -- serialization -- Boost version: 1.58.0 -- Found the following Boost libraries: -- date_time -- Boost version: 1.58.0 -- Found the following Boost libraries: -- date_time -- Found GeographicLib: /usr/local/include (found suitable version "1.46", minimum required is "1.37") -- Boost version: 1.58.0 -- Found the following Boost libraries: -- serialization -- Found CryptoPP: /usr/include (found suitable version "5.6.1", minimum required is "5.6.1") **-- Could NOT find Cohda (missing: COHDA_MK2_ROOT)** -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- Configuring done -- Generating done

当我尝试将带有root的./run命令运行到/ artery / scenarios / artery时,它返回:

./run: 2: ./run: ../../run: not found

当我尝试将opp_run命令运行到同一文件夹中时,我可以打开Omnet,但是,由于缺少Scenario.ned,模拟不会运行。

我该怎么办?

1 个答案:

答案 0 :(得分:1)

这些运行脚本现在已经过时了。您可以通过新的运行目标运行模拟,即scenarios/artery文件夹中的方案可以由构建目录中的run_example目标执行。

如果您已按照Artery的自述文件中的构建说明进行操作,那么它看起来像这样:

cd build
make run_example

如果您已将CMAKE_BUILD_TYPE设置为“Debug”,则可以通过debug_example目标启动模拟环境,

PS:“找不到Cohda(缺少:COHDA_MK2_ROOT)”根本不是一个严重的错误,它只是告知构建配置而没有需要这个可选依赖项的功能。