Haumikj Haumer
Haumikj Haumer

Reputation: 31

CMAKE - Could't find boost

I have a problem with Cmake. Every library i want to configure and generate it shows me:

CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230
  (message):   Could NOT find Boost (missing: Boost_INCLUDE_DIR system serialization)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594(_FPHSA_FAILURE_MESSAGE) 
  C:/Program Files/CMake/share/cmake-3.22/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args)  
  CMake/HighFiveTargetDeps.cmake:27 (find_package)
  CMakeLists.txt:63 (include)

I have no idea what should I do. Right now Im trying to generate HighFive library for C++ and it shows me the same problem like in Shark library, Shogun library, Opencv, Eigen, Xtensor... Any idea what should I do? I'll be glad for every answer.

Upvotes: 0

Views: 4735

Answers (1)

D-FENS
D-FENS

Reputation: 1521

It looks like the project you are trying to compile requires the Boost include libraries. Did you install them? If not, you need to install Boost first.

Then you can take a look at this post, which has a similar problem in my opinion. The accepted answer explained the following system variables were added (please adapt your paths and version numbers):

BOOST_INCLUDEDIR    C:\SDKs\boost_1_58_0\
BOOST_LIBRARYDIR    C:\SDKs\boost_1_58_0\lib64-msvc-12.0
BOOST_ROOT          C:\SDKs\boost_1_58_0\boost

Upvotes: 1

Related Questions