Cmake Can't Find Boost

Cmake Can't Find Boost

I'm trying to compile the software "TrinityCore". The process is explained quite thoroughly here:

After installing the dependencies, which include libboost-all-dev I was using cmake as explained. It stopped configuring when looking for some boost libraries (see below).

The strange thing is that I installed the required packages and there are directories in

/usr/include

that match the names of the missing libraries.

I also tried the solution here: Cmake Couldn't find boost but unfortunately without success.

Does anybody know what I'm doing wrong?

Thanks in regards!

Here the exact error message:

  Unable to find the requested Boost libraries.

  Boost version: 1.58.0

  Boost include path: /usr/include

  Could not find the following static Boost libraries:

          boost_system
          boost_filesystem
          boost_thread
          boost_program_options
          boost_iostreams

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.  If you still have problems search on forum for TCE00020.
Call Stack (most recent call first):
1

1 Answer

Strangely, only reinstalling Ubuntu Server 16.04.1 helped. Then, I didn't install

libboost-all-dev

but only the packages required by Trinitycore. Now

make

is runnig after cmake without any problems.

By adding the options

-DBoost_<missing package>_RELEASE=/usr/include/boost/<missing package>/

cmake can find it. Odd, because these are just subdirectories of

/usr/include/boost

which was already found by cmake.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.