Search code examples
c++boost

cmake command can't find boost libraries


I'm using an ubuntu terminal to run a cmake . But, the boost libraries couldn't be found.

  The following Boost libraries could not be found:

          boost_program_options
          boost_signals
          boost_serialization
          boost_unit_test_framework

With commands like:

cmake . -DBoost_USE_STATIC_LIBS=ON

The problem persist, also, if I use a location boost_unit_test_framework I'm not getting any result.

How I can install those references?


Solution

  • You can use apt-get command (requires sudo)

    sudo apt-get install libboost-all-dev

    How to Install boost on Ubuntu?