kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

CMake Error cmake:137 (message)

Open asteria25 opened this issue 4 years ago • 9 comments

I use commands: wget -O - https://kheafield.com/code/kenlm.tar.gz |tar xz mkdir kenlm/build cd kenlm/build cmake .. make -j2

after "cmake.." : CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Boost (missing: program_options system thread unit_test_framework) (found suitable version "1.58.0", minimum required is "1.41.0") Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindBoost.cmake:2161 (find_package_handle_standard_args) CMakeLists.txt:85 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/gb504/stu_ftt/kenlm/build/CMakeFiles/CMakeOutput.log". See also "/home/gb504/stu_ftt/kenlm/build/CMakeFiles/CMakeError.log".

Thanks.

asteria25 avatar Dec 04 '20 09:12 asteria25

Smells like you have the headers but not the libraries?

kpu avatar Dec 04 '20 10:12 kpu

yes, I installed boost and the problem solved.

asteria25 avatar Dec 04 '20 12:12 asteria25

Even after installing boost, the issue is still persisting, and I'm getting the following output on entering cmake ..

-- Could NOT find Eigen3 (missing: Eigen3_DIR)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR program_options system
  thread unit_test_framework) (Required is at least version "1.41.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindBoost.cmake:2179 (find_package_handle_standard_args)
  CMakeLists.txt:85 (find_package)


-- Configuring incomplete, errors occurred!
See also "/mnt/e/Code_Blooded/ASR/DeepSpeech/native_client/kenlm/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/e/Code_Blooded/ASR/DeepSpeech/native_client/kenlm/build/CMakeFiles/CMakeError.log".

And the latest version of boost available is 0.1, I'm not sure what package is required whose version 1.41 is necessary

cmake version 3.16.3

Is it possible that the error is occurring because I'm using WSl and accessing a directory on windows?

Edit: Solved with installing some modules as shown

  sudo apt install build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev

Nishant-Pall avatar Mar 20 '21 10:03 Nishant-Pall

I am too getting boost related error, I am using Windows 10.

CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR program_options system
  thread unit_test_framework) (Required is at least version "1.41.0")

Can anyone help me how to install boost for cmake in Windows 10 system?

computervisionpro avatar Jun 05 '21 07:06 computervisionpro

I'm not sure about how to solve this in windows, I was able to solve it in Linux, perhaps you can use WSL or a virtual machine

Nishant-Pall avatar Jun 05 '21 08:06 Nishant-Pall

I'm facing the same problem on windows, does anybody find out the solution?

TalissaDreossi avatar Jul 02 '21 08:07 TalissaDreossi

I am too getting boost related error, I am using Windows 10.

CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR program_options system
  thread unit_test_framework) (Required is at least version "1.41.0")

Can anyone help me how to install boost for cmake in Windows 10 system?

Hello Bro! Did you figure it out on how to compile it on windows?

MaarufB avatar Aug 08 '21 15:08 MaarufB

yes, I installed boost and the problem solved.

Hello, can you tell me how to get "boost"? I haven't used it.

swgu98 avatar Dec 09 '21 13:12 swgu98

@MaarufB Hi,

I had downloaded boost from here

I referred this and this video.

Hope this helps!

computervisionpro avatar Dec 13 '21 17:12 computervisionpro