2016-09-11 7 views
0

私はOmnetの経験があまりありません。この例を実行するコマンドが正しく実行されているかどうかを知りたいと思います。私は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コマンドを実行しようとすると/シナリオ/動脈、それが返されます。

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

私は同じフォルダにopp_runコマンドを実行しようとすると、私はOmnetを開くことができます、しかし、シミュレーションがScenari以来実行されません。 o.nedが見つかりません。

どうすればよいですか?

答えて

1

これらの実行スクリプトは現在廃止されています。新しい実行ターゲットを使用してシミュレーションを実行できます。つまり、scenarios/arteryフォルダのシナリオは、ビルドディレクトリのrun_exampleターゲットで実行できます。

あなたは動脈のREADMEでのビルド手順に従っている場合、それは次のようになります。

cd build 
make run_example 

また、あなたは「デバッグ」に設定CMAKE_BUILD_TYPEで構築した場合debug_exampleターゲットトラフシミュレーション環境を起動することができ、

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

+0

私は 'make run_example'コマンドを実行しましたが、エラーが発生しました。 SUMOが停止し、ログに "extern/veins/examples/veins/erlangen.net.xml"というファイルが存在しないことが示されました。この問題を解決するために、.net.xml、rou.xml、poly.xmlおよびsumoをコピーしました。 Veinsのサンプルフォルダからシナリオ/動脈へのcfg。その後、launchd.xmlファイルから行を削除しました。それは正常に動作しています。 Raphaelありがとうございました! – Rhu

+1

Veinsのsumo-launchd.pyスクリプトは、起動されたディレクトリに対して敏感です。私はこのスクリプトを動脈の 'make launch_sumo'を通して呼び出すことを勧めます。次に、ファイルをコピーする必要はありません。 –

関連する問題