Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find boost #7

Open
highlightz opened this issue Nov 24, 2024 · 1 comment
Open

cannot find boost #7

highlightz opened this issue Nov 24, 2024 · 1 comment

Comments

@highlightz
Copy link

My system is ubuntu 18.04 and the cmake version is 3.30.5.

when i run the below build command

cmake -DCMAKE_BUILD_TYPE=Release -DUSE_NN=OFF  ..

i got the following error:

CMake Error at okvis_timing/CMakeLists.txt:6 (find_package):
  By not providing "FindBoost.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Boost", but
  CMake did not find one.

  Could not find a package configuration file provided by "Boost" with any of
  the following names:

    BoostConfig.cmake
    boost-config.cmake

  Add the installation prefix of "Boost" to CMAKE_PREFIX_PATH or set
  "Boost_DIR" to a directory containing one of the above files.  If "Boost"
  provides a separate development package or SDK, be sure it has been
  installed.

in fact, i can find a FindBoost.cmake file in the /usr/local/share/cmake-3.30/Modules path.

how can i fix it?

@sotpapathe
Copy link
Contributor

I assume you've already installed Boost (sudo apt install libboost-dev libboost-filesystem-dev ). Does removing the build folder and running the following work?

cmake -DCMAKE_BUILD_TYPE=Release -DUSE_NN=OFF -DCMAKE_MODULE_PATH=/usr/local/share/cmake-3.30/Modules ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants