現在Boostに問題があります。CMakeが見つかりましたが、Makeファイルがインクルードファイルを見つけられません
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- iostreams
-- timer
-- system
-- regex
しかし、生成されたMakefile
からmake
段階:
Timer.h(26): catastrophic error: cannot open source file "boost/timer/timer.hpp"
#include <boost/timer/timer.hpp>
[..] ^
Function.h(29): catastrophic error: cannot open source file "boost/ptr_container/ptr_map.hpp"
#include <boost/ptr_container/ptr_map.hpp>
[..]
Makefile
がboost
のための任意のヘッダを見つけたように基本的に、それはいないようですcmakeの段階では、そのブーストが発見された明記しました。私も行って、Boost_INCLUDEDIR
とBoost_LIBRARYDIR
- 大文字と小文字を区別して宣言します。それが役立つように見えません。
考えられる原因は何ですか?コンパイラ、つまりgcc/icc
とcmake
ジェネレータの間にコンフリクトがありますか? (ピュア推測 - 私はこの領域では得意ではないのです...)
EDIT:このCMakeLists.txt
ファイルにboost
を発見するプロセスです:http://pastebin.com/7m3yAYk5とFindBOOST.cmake
はここにある:https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake
質問を編集してBoostを探している 'CMakeLists.txt'の内容を追加してください。どのように検索し、Boostを使用しているのかわからなくても、あなたの質問に答えることはできません – wasthishelpful
この 'include_directories(SYSTEM $ {Boost_INCLUDE_DIR})' – Danh