[CMake] Difficulties with component search by "FindBoost"

SF Markus Elfring elfring at users.sourceforge.net
Mon Sep 30 07:00:53 EDT 2013


Hello,

I try to use a macro call like "find_package(Boost 1.49 REQUIRED COMPONENTS
spirit)". But I get surprised by the following messages despite of a complete
installation from the current source files of this software library.


elfring at Sonne:~/Projekte/Bau/boot_parameters/boost> cmake . -DBoost_DEBUG=ON
-- [ /usr/share/cmake/Modules/FindBoost.cmake:476 ] _boost_TEST_VERSIONS =
1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49
-- [ /usr/share/cmake/Modules/FindBoost.cmake:478 ] Boost_USE_MULTITHREADED = TRUE
-- [ /usr/share/cmake/Modules/FindBoost.cmake:480 ] Boost_USE_STATIC_LIBS =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:482 ] Boost_USE_STATIC_RUNTIME =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:484 ] Boost_ADDITIONAL_VERSIONS =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:486 ] Boost_NO_SYSTEM_PATHS =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:538 ] Declared as CMake or
Environmental Variables:
-- [ /usr/share/cmake/Modules/FindBoost.cmake:540 ]   BOOST_ROOT =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:542 ]   BOOST_INCLUDEDIR =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:544 ]   BOOST_LIBRARYDIR =
-- [ /usr/share/cmake/Modules/FindBoost.cmake:546 ] _boost_TEST_VERSIONS =
1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49
-- [ /usr/share/cmake/Modules/FindBoost.cmake:639 ] location of version.hpp:
/usr/local/include/boost/version.hpp
-- [ /usr/share/cmake/Modules/FindBoost.cmake:663 ] version.hpp reveals boost 1.54.0
-- [ /usr/share/cmake/Modules/FindBoost.cmake:739 ] guessed _boost_COMPILER = -gcc48
-- [ /usr/share/cmake/Modules/FindBoost.cmake:749 ] _boost_MULTITHREADED = -mt
-- [ /usr/share/cmake/Modules/FindBoost.cmake:792 ] _boost_RELEASE_ABI_TAG = -
-- [ /usr/share/cmake/Modules/FindBoost.cmake:794 ] _boost_DEBUG_ABI_TAG = -d
-- [ /usr/share/cmake/Modules/FindBoost.cmake:842 ] _boost_LIBRARY_SEARCH_DIRS =
/usr/local/include/lib;/usr/local/include/../lib;/usr/local/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
-- [ /usr/share/cmake/Modules/FindBoost.cmake:930 ] Searching for
SPIRIT_LIBRARY_RELEASE:
boost_spirit-gcc48-mt-1_54;boost_spirit-gcc48-mt;boost_spirit-mt-1_54;boost_spirit-mt;boost_spirit
-- [ /usr/share/cmake/Modules/FindBoost.cmake:966 ] Searching for
SPIRIT_LIBRARY_DEBUG:
boost_spirit-gcc48-mt-d-1_54;boost_spirit-gcc48-mt-d;boost_spirit-mt-d-1_54;boost_spirit-mt-d;boost_spirit-mt;boost_spirit
-- [ /usr/share/cmake/Modules/FindBoost.cmake:1017 ] Boost_FOUND = 1
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1106 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.54.0

  Boost include path: /usr/local/include

  The following Boost libraries could not be found:



          boost_spirit

  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):


  CMakeLists.txt:7 (find_package)



I would appreciate your advices.

Regards,
Markus


More information about the CMake mailing list