0

我对 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

当我尝试./run使用 root 运行命令到 /artery/scenarios/artery 时,它返回:

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

当我尝试opp_run在同一个文件夹中运行命令时,我可以打开 Omnet,但是,由于缺少 Scenario.ned,因此无法运行模拟。

我能做些什么?

4

1 回答 1

1

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

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

cd build
make run_example

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

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

于 2016-09-12T07:10:32.580 回答