前提・実現したいこと
https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html
に従って、lightgbmパッケージをインストールしたいと思っています。
ここで、Windows Visual Studio (or VS Build Tools) GUIの項目で以下のように書かれています。
1. Install Visual Studio (2015 or newer). 2. Download `zip archive(https://github.com/microsoft/LightGBM/archive/master.zip)` and unzip it. 3. Go to `LightGBM-master/windows` folder. 4. Open `LightGBM.sln` file with Visual Studio, choose `Release` configuration and click `BUILD` -> `Build Solution (Ctrl+Shift+B)`. If you have errors about Platform Toolset, go to `PROJECT` -> `Properties` -> `Configuration Properties` -> `General` and select the toolset installed on your machine. The `.exe` file will be in `LightGBM-master/windows/x64/Release` folder.
上の説明に従って、https://github.com/microsoft/LightGBM/archive/master.zip
をダウンロードして解凍を実施しました。そして、3.からLightGBM-master/windows
のパスに移動してLightGBM.sln
を起動しました。
そして、(Ctrl+Shift+B)
からビルドしようとしたところ、以下のエラーメッセージが出ました。
このエラーを解決するには、どうすればよいでしょうか?
発生している問題・エラーメッセージ
ビルドを開始しました... 1>------ ビルド開始: プロジェクト: LightGBM, 構成: Release x64 ------ 1>application.cpp 1>boosting.cpp 1>gbdt.cpp 1>gbdt_model_text.cpp 1>gbdt_prediction.cpp 1>c_api.cpp 1>bin.cpp 1>config.cpp 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\c_api.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\boosting\gbdt_model_text.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\application\application.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\config.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\boosting\gbdt_prediction.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\boosting\boosting.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\boosting\gbdt.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\bin.cpp) 1>config_auto.cpp 1>dataset.cpp 1>dataset_loader.cpp 1>metadata.cpp 1>parser.cpp 1>train_share_states.cpp 1>tree.cpp 1>dcg_calculator.cpp 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\config_auto.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\dataset.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\metric\dcg_calculator.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\dataset_loader.cpp) 1>metric.cpp 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\tree.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\metadata.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\train_share_states.cpp) 1>network.cpp 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\io\parser.cpp) 1>linkers_socket.cpp 1>linker_topo.cpp 1>objective_function.cpp 1>main.cpp 1>data_parallel_tree_learner.cpp 1>feature_parallel_tree_learner.cpp 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\network\linkers_socket.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\metric\metric.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\network\network.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\objective\objective_function.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\network\linker_topo.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\main.cpp) 1>linear_tree_learner.cpp 1>serial_tree_learner.cpp 1>tree_learner.cpp 1>voting_parallel_tree_learner.cpp 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\treelearner\data_parallel_tree_learner.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\treelearner\feature_parallel_tree_learner.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\treelearner\voting_parallel_tree_learner.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\treelearner\tree_learner.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\treelearner\serial_tree_learner.cpp) 1>C:\Users\ユーザー名\Downloads\LightGBM-master\include\LightGBM\utils\common.h(35,10): fatal error C1083: include ファイルを開けません。'../../../external_libs/fmt/include/fmt/format.h':No such file or directory (ソース ファイルをコンパイルしています ..\src\treelearner\linear_tree_learner.cpp) 1>プロジェクト "LightGBM.vcxproj" のビルドが終了しました -- 失敗。 ========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========
補足情報(FW/ツールのバージョンなど)
Windows10
visual studio 2019
回答1件
あなたの回答
tips
プレビュー