What's new

CMAKE Errors (Trinitycore)

paradox

Trial Member
3
2016
0
Code:
CMake Error at cmake/macros/FindBoost.cmake:1185 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.55.0

  Boost include path: C:/local/boost_1_55_0

  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.
Call Stack (most recent call first):
  dep/boost/CMakeLists.txt:29 (find_package)

I've been looking how to solve this for a while now. Can't find the solution at all.
 

IceNet

Gold Supporter
Veteran Member
116
2015
5
Boost
Download the prebuilt Windows Binary for Visual Studio 2015
64bit: http://sourceforge.net/projects/boo...1.59.0/boost_1_59_0-msvc-14.0-64.exe/download
32bit: http://sourceforge.net/projects/boo...1.59.0/boost_1_59_0-msvc-14.0-32.exe/download

1.59.0 is the minimum version required, version 1.60.0 is recommended (fixes the boost/ASIO warnings in 1.59.0)
64bit: https://sourceforge.net/projects/bo...1.60.0/boost_1_60_0-msvc-14.0-64.exe/download
32bit: https://sourceforge.net/projects/bo...1.60.0/boost_1_60_0-msvc-14.0-32.exe/download

Install the package to the default location (usually C:\local\boost_1_XX_0\ .)

Add an environment variable to "System" variables named "BOOST_ROOT" pointing to your Boost installation directory, e.g "C:/local/boost_1_60_0".
(Make sure that it does not have a trailing slash. If you still get problems, add the same variable in the "USER" variables section too, like shown in the image below.)

boost_envs.PNG


Notice that this image shows the version number 1.59.0 - use your actual version number in your settings.
 
Top