[cmake-developers] [CMake 0015270]: cmake can't find Boost libs at CentOS 6 correctly

Mantis Bug Tracker mantis at public.kitware.com
Sun Nov 30 16:18:44 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15270 
====================================================================== 
Reported By:                pavel.odintsov
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15270
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2014-11-30 16:18 EST
Last Modified:              2014-11-30 16:18 EST
====================================================================== 
Summary:                    cmake can't find Boost libs at CentOS 6 correctly
Description: 
Hello!

I tried to use find_package capability for my project:
https://github.com/FastVPSEestiOu/fastnetmon/blob/master/CMakeLists.txt

It work perfectly at Debian 7 Wheezy with 2.8.9-1.

But I got this critical errors on CentOS 6 with modern
cmake-2.8.12.2-4.el6.x86_64:

cmake ..
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/lib64/boost/Boost.cmake:536 (message):
  The imported target "boost_date_time-static" references the file

     "/usr/lib64/lib64/libboost_date_time.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/boost/Boost.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/boost/BoostConfig.cmake:28 (include)
  /usr/share/cmake/Modules/FindBoost.cmake:177 (find_package)
  CMakeLists.txt:30 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/src/fastnetmon/build/CMakeFiles/CMakeOutput.log".

Please help me...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-11-30 16:18 pavel.odintsov New Issue                                    
======================================================================



More information about the cmake-developers mailing list