kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.5k stars 512 forks source link

CMake Error cmake:137 (message) #315

Open asteria25 opened 3 years ago

asteria25 commented 3 years ago

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.

kpu commented 3 years ago

Smells like you have the headers but not the libraries?

asteria25 commented 3 years ago

yes, I installed boost and the problem solved.

Nishant-Pall commented 3 years ago

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
computervisionpro commented 3 years ago

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?

Nishant-Pall commented 3 years ago

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

TalissaDreossi commented 3 years ago

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

MaarufB commented 3 years ago

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?

swgu98 commented 2 years ago

yes, I installed boost and the problem solved.

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

computervisionpro commented 2 years ago

@MaarufB Hi,

I had downloaded boost from here

I referred this and this video.

Hope this helps!