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

./runroot で /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_exampleCMAKE_BUILD_TYPE を「デバッグ」に設定してビルドした場合は、ターゲットからシミュレーション環境を開始することもできます。

PS: 「Cohda が見つかりませんでした (欠落: COHDA_MK2_ROOT)」は深刻なエラーではなく、このオプションの依存関係を必要とする機能のないビルド構成について通知するだけです。

于 2016-09-12T07:10:32.580 に答える