Caffe: Could NOT find Boost (missing: system thread filesystem) (found suitable version "1.70.0", minimum required is "1.54")

Created on 18 Jul 2019  路  12Comments  路  Source: BVLC/caffe

CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Boost (missing: system thread filesystem) (found suitable
version "1.70.0", minimum required is "1.54")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:2142 (find_package_handle_standard_args)
cmake/Dependencies.cmake:8 (find_package)
CMakeLists.txt:80 (include)

-- Configuring incomplete, errors occurred!
See also "E:/Program/caffe/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed

can someone tell me how to solve this error ?

Most helpful comment

I have my Windows to locate the Boost with CMake by adding below in the Windows Environment Variables:

Variable name: Boost_INCLUDE_DIR
Variable value: \libs\headers
eg. C:\local\boost_1_73_0\libs\headers

Variable name: BOOST_ROOT
Variable value:
eg. C:\local\boost_1_73_0

Open a new Command prompt and install the lightgbm (gpu mode) again.

All 12 comments

have you solved it now?
I met it too.

I also have this issue with version 1.71.0.

Same issue here with 1.71.0

Same issue with 1.71.0 when trying to install lightGBM for GPU:

Found OpenCL: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64/OpenCL.lib (found version "1.2")
OpenCL include directory: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/include
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Boost (missing: filesystem system) (found suitable version
"1.71.0", minimum required is "1.56.0")
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.16/Modules/FindBoost.cmake:2165 (find_package_handle_standard_args)
CMakeLists.txt:100 (find_package)

This helped: https://stackoverflow.com/questions/57870032/cmake-v3-15-3-cannot-find-boost-v1-71-0

I had to specify my path C:\boost\boost_1_71_0 as boost directory.

Where to Specify??

Same issue here with 1.72.0

I'm having the same issue with 1.72.0, and I tried everything, but it still doesn't work.

I have my Windows to locate the Boost with CMake by adding below in the Windows Environment Variables:

Variable name: Boost_INCLUDE_DIR
Variable value: \libs\headers
eg. C:\local\boost_1_73_0\libs\headers

Variable name: BOOST_ROOT
Variable value:
eg. C:\local\boost_1_73_0

Open a new Command prompt and install the lightgbm (gpu mode) again.

Today I had the same problem and I just added

set(Boost_USE_STATIC_LIBS ON)

to my CMakeLists.txt which solved the issue for me. Perhaps this is necessary to tell CMake since regex is one of the few Boost components which is not header-only. Therefore you need to link against something which is not required in case of header-only libraries.

Also, in my opinion it is bad to specify host dependent paths, like @juliuskittler told in his solution. This blows up manually tackled set up phases.

EDIT: Equivalent to my suggestion is passing an argument like here: https://stackoverflow.com/a/57875055/6346852

Today Same problem with CMake 3.20 Boost 1.75.0 under windows 10 and got this error:

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
CMake Error at C:/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: chrono system) (found version "1.75.0")
Call Stack (most recent call first):
  C:/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/CMake/share/cmake-3.20/Modules/FindBoost.cmake:2344 (find_package_handle_standard_args)
  CMakeLists.txt:88 (FIND_PACKAGE)

Have tried these kind of things but same error.
BOOST_DIR
Boost_INCLUDE_DIRS - Boost include directories
Boost_LIBRARY_DIRS - Link directories for Boost libraries

set(Boost_USE_STATIC_LIBS ON) in CMakeLists.txt

I met the same problem in 1.72.0

Was this page helpful?
0 / 5 - 0 ratings