SPTAG icon indicating copy to clipboard operation
SPTAG copied to clipboard

CMAKE Could not find Boost 1.67!

Open AleksCallebat opened this issue 5 years ago • 1 comments

Describe the bug Hello, everyone, There is an issue when trying to build from the repo with CMAKE : the problem seems to be that CMAKE cannot find Boost 1.67, and a rapid google search does not give me an answer whether I can install Boost or whether I should change the compiler.

To Reproduce To reproduce : I have tried it both on my machine (WSL, cmd & Powershell), and on a DSVM (Ubuntu 16.04). I git cloned the project, then from the SPTAG repo, did "mkdir build", then "cd build && cmake .. && make", or the adapted syntax depending on the OS.

AleksCallebat avatar Dec 16 '19 10:12 AleksCallebat

@AleksCallebat Before build, you should first install the following packages: swig >= 3.0 cmake >= 3.12.0 boost >= 1.67.0

If you installed the Boost 1.67.0 and cmake still could not find the Boost, you can try to use: cmake -DBOOST_ROOT=[your boost root] -DBOOST_INCLUDEDIR=[your boost include directory] -DBOOST_LIBRARYDIR=[your boost library directory] ..

MaggieQi avatar Dec 16 '19 12:12 MaggieQi