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

Artery( Veins extension ) example is not working

我对 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 时,它 returns:

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

当我尝试运行将opp_run命令放入同一个文件夹时,我可以打开Omnet,但是,模拟没有运行,因为Scenario.ned不见了。

我能做什么?

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

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

cd build
make run_example

如果您已将 CMAKE_BUILD_TYPE 设置为 "Debug"、

,则还可以通过 debug_exampletarget 启动模拟环境

PS: "Could NOT find Cohda (missing: COHDA_MK2_ROOT)" 根本不是严重错误,它只是告知构建配置没有需要此可选依赖项的功能。