私は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が見つかりません。
どうすればよいですか?
私は 'make run_example'コマンドを実行しましたが、エラーが発生しました。 SUMOが停止し、ログに "extern/veins/examples/veins/erlangen.net.xml"というファイルが存在しないことが示されました。この問題を解決するために、.net.xml、rou.xml、poly.xmlおよびsumoをコピーしました。 Veinsのサンプルフォルダからシナリオ/動脈へのcfg。その後、launchd.xmlファイルから 行を削除しました。それは正常に動作しています。 Raphaelありがとうございました! –
Rhu
Veinsのsumo-launchd.pyスクリプトは、起動されたディレクトリに対して敏感です。私はこのスクリプトを動脈の 'make launch_sumo'を通して呼び出すことを勧めます。次に、ファイルをコピーする必要はありません。 –