メイン Scenario Setup & Configuration Qualnetのソースの変更の反映方法 | 投稿するにはまず登録を |
スレッド表示 | 古いものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
mada8 | 投稿日時: 2016/2/15 12:00 |
新米 登録日: 2016/1/27 居住地: 投稿: 8 |
Re: Qualnetのソースの変更の反映方法 何度もお助けいただきありがとうございます.
ライセンスを管理している方に相談したところ,GUIまで動かないなら再インストールしてしまおうということで,一旦環境がリセットとなりました. コンパイルにはまた後程試みますので,今までいただいた情報を参考にさせていただきます. 少し日が空きますが,再度実行結果を報告させていただきます. 失礼いたします. |
hiro | 投稿日時: 2016/2/15 10:35 |
長老 登録日: 2005/7/16 居住地: 投稿: 452 |
Re: Qualnetのソースの変更の反映方法 > 引き続き nmake , cmake を行いましたが, 98% でエラーが発生してしまいました.
nmakeを実行してcmakeしたのでしょうか? cmake -G "NMake Makefiles" –DCMAKE_BUILD_TYPE=Release . 実行してからnamkeを実行するのが正しい手順です。 Microsoft Visual Studio Express 2013 for Windows Desktopの インストール前にすでにcmake実行を行っていた場合、 cacheが残っているはずなので CMakeCache.txt ファイルを削除してから、 cmake -G "NMake Makefiles" –DCMAKE_BUILD_TYPE=Release . 実行して下さい。 また、念のためにnmake cleanしてからnmakeして下さい。 エラー内容はboot関連のエラーメッセージですが、simlibのlinkまで 進んでいるということは、 C:\Program Files\Scalable\3rdparty\scalable-3p-boost\tools\include\boost-1_58 C:\Program Files\Scalable\3rdparty\scalable-3p-boost\tools\lib は正しく入っていると思います。 > また,現在Microsoft Visual Studio 2010はインストールされています. とありましたが、他に QualNet-7.4-ProgrammersGuide.pdf の手順に従っていない 『何か』を行っていますか? 例えばcmake-guiで設定を変更したとか。 あるいはboostのEXCEPTIONS関連のdefineを追加/変更したとか。 |
mada8 | 投稿日時: 2016/2/14 16:15 |
新米 登録日: 2016/1/27 居住地: 投稿: 8 |
Re: Qualnetのソースの変更の反映方法 コメントいただきありがとうございます.
行ってみます. 後ほど本投稿に結果を記入いたします. --- Microsoft Visual Studio Express 2013 for Windows Desktop をインストルすることにより, cmake G... のコマンドを通すことができました. cl.exeのバージョンも正しい物になっていました. ありがとうございます. --- 引き続き nmake , cmake を行いましたが, 98% でエラーが発生してしまいました. エラー部分は以下になります. [ 98%] Built target simlib Linking CXX executable bin\qualnet.exe simlib.lib(multi_gui_interface.cpp.obj) : error LNK2001: 外部シンボル ""void __c decl boost::throw_exception(class std::exception const &)" (?throw_exception@boo st@@YAXAEBVexception@std@@@Z)" は未解決です。 simlib.lib(SPConnection.cpp.obj) : error LNK2001: 外部シンボル ""void __cdecl bo ost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAX AEBVexception@std@@@Z)" は未解決です。 simlib.lib(mac_dot11_channelmanager.cpp.obj) : error LNK2001: 外部シンボル ""voi d __cdecl boost::throw_exception(class std::exception const &)" (?throw_exceptio n@boost@@YAXAEBVexception@std@@@Z)" は未解決です。 simlib.lib(gui.cpp.obj) : error LNK2001: 外部シンボル ""void __cdecl boost::thro w_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexcep tion@std@@@Z)" は未解決です。 simlib.lib(SopsRpcInterface.cpp.obj) : error LNK2001: 外部シンボル ""void __cdec l boost::throw_exception(class std::exception const &)" (?throw_exception@boost@ @YAXAEBVexception@std@@@Z)" は未解決です。 simlib.lib(dbapi.cpp.obj) : error LNK2001: 外部シンボル ""void __cdecl boost::th row_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexc eption@std@@@Z)" は未解決です。 simlib.lib(terrain_qualnet_urban.cpp.obj) : error LNK2001: 外部シンボル ""void _ _cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@b oost@@YAXAEBVexception@std@@@Z)" は未解決です。 bin\qualnet.exe : fatal error LNK1120: 1 件の未解決の外部参照 LINK failed. with 1120 NMAKE : fatal error U1077: '"C:\Program Files\Scalable\3rdparty\scalable-3p-cmak e\tools\bin\cmake.exe"' : リターン コード '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\nmake.exe"' : リターン コード '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\nmake.exe"' : リターン コード '0x2' Stop. 質問ばかりで恐縮ですが,よろしかったコメントお願い致します. |
hiro | 投稿日時: 2016/2/14 12:49 |
長老 登録日: 2005/7/16 居住地: 投稿: 452 |
Re: Qualnetのソースの変更の反映方法 まず初めに、QualNet-7.4-ProgrammersGuide.pdfの
2.2.2.1 C++ Compiler に記載されているように、 Microsoft Visual Studio 2013か Microsoft Visual Studio Express 2013 for Windows Desktopを インストールして下さい。 インストールが終わったら、cl.exeを起動してバージョンを確認してください。 正常であれば以下のように18.00になっているはずです。 Microsoft(R) C/C++ Optimizing Compiler Version 18.00.40629 for x64 Copyright (C) Microsoft Corporation. All rights reserved. なお、最近のVCのバージョンとcl.exeのバージョンは 次のようになります。 VC10, Visual Studio 2010, 16.00 VC11, Visual Studio 2012, 17.00 VC12, Visual Studio 2013, 18.00 |
mada8 | 投稿日時: 2016/2/13 22:31 |
新米 登録日: 2016/1/27 居住地: 投稿: 8 |
Re: Qualnetのソースの変更の反映方法 追記になります.
プログラマーズガイドを見直しているのですが,まだ原因解明できておりません. ちなみにですが,以下の条件での実行は正しいのでしょうか?(ビルド・ソースディレクトリの場所など) 何かコメントいただければ幸いです. カレントディレクトリ:Scalable/qualnet/7.4 実行したコマンド1: >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release . |
mada8 | 投稿日時: 2016/2/13 16:56 |
新米 登録日: 2016/1/27 居住地: 投稿: 8 |
Re: Qualnetのソースの変更の反映方法 返答頂きありがとうございます.
私もプログラマーズガイド2.2 Compiling QualNet on Windowsを参照してコンパイルを試みております. 最初の方の作業は,他の方がされていることもあり,現在はその部分の再確認を行っております. また,現在Microsoft Visual Studio 2010はインストールされています. (2010でも問題ないのですよね?) 引き続き情報頂けましたらありがたいです. よろしくお願いいたします. |
maxam | 投稿日時: 2016/2/13 10:18 |
常連 登録日: 2006/4/11 居住地: 投稿: 58 |
Re: Qualnetのソースの変更の反映方法 こんにちは
私はプログラマーズガイド2.2 Compiling QualNet on Windows に従って問題なくコンパイルできましたが、 なんでしょうね? Microsoft Visual Studio 2013はインストールしましたか? |
mada8 | 投稿日時: 2016/2/13 5:23 |
新米 登録日: 2016/1/27 居住地: 投稿: 8 |
Re: Qualnetのソースの変更の反映方法 同じくQualNet初心者です。
QualNet7.4を利用しています。 プログラマーズガイドを見ながら、SCALABLE Command Promptまでは導入できました。 app_cbr.cppを少しいじってコンパイルを行おうとしたのですが、どうもうまくいきません。助言がいただけませんでしょうか。 以下、実行内容です。 変更ファイル:app_cbr.cpp カレントディレクトリ:Scalable/qualnet/7.4 実行したコマンド1: >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release . 実行結果1: CMake Warning at CMakeLists.txt:33 (project): To use the NMake generator, cmake must be run from a shell that can use the compiler cl from the command line. This environment does not contain INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to work. -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:33 (project): The CMAKE_C_COMPILER: cl is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:33 (project): The CMAKE_CXX_COMPILER: cl is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. -- Configuring incomplete, errors occurred! See also "C:/Program Files/Scalable/qualnet/7.4/CMakeFiles/CMakeOutput.log". See also "C:/Program Files/Scalable/qualnet/7.4/CMakeFiles/CMakeError.log". 実行コマンド2(一応実行してみました):nmake 実行結果2:'nmake'は、内部コマンド、または外部コマンド、操作可能なプログラムまたはバッチファイルとして認識されていません。 以上、よろしくお願いいたします。 |
forum_support | 投稿日時: 2015/9/28 11:13 |
モデレータ 登録日: 2005/5/17 居住地: 東京都中野区中央4-5-3 ?構造計画研究所 投稿: 322 |
Re: Qualnetのソースの変更の反映方法 .statファイルは、動作させたシナリオ(.config)のあるディレクトリと
同じディレクトリに作成されます。 |
hirooo | 投稿日時: 2015/9/28 10:52 |
新米 登録日: 2015/9/23 居住地: 投稿: 10 |
Re: Qualnetのソースの変更の反映方法 .statファイルはどこにできるのでしょうか?
versionは7.2です |
(1) 2 » |
スレッド表示 | 古いものから | 前のトピック | 次のトピック | トップ |