|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015270||CMake||CMake||public||2014-11-30 16:18||2015-05-04 09:05|
|Status||closed||Resolution||no change required|
|Platform||Linux||OS||CentOS 6||OS Version||up to date|
|Target Version||Fixed in Version|
|Summary||0015270: cmake can't find Boost libs at CentOS 6 correctly|
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-126.96.36.199-4.el6.x86_64:
-- 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
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
but not all the files it references.
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!
See also "/usr/src/fastnetmon/build/CMakeFiles/CMakeOutput.log".
Please help me...
|Tags||No tags attached.|
Roger Leigh (developer)
The version of Boost provided by CentOS6 is too old to work with the cmake FindBoost macros. On my CentOS6 systems, I had to install a more recent version of Boost, after which it worked fine.
Maybe you right, but my project compiled by users and rebuilding Boost from sources is not an trivial part of standard install process =(
Nils Gladitz (developer)
Try setting Boost_NO_BOOST_CMAKE  from the command line or if need be in the project with set(Boost_NO_BOOST_CMAKE ON) before your call to find_package(Boost).
That should prevent FindBoost.cmake from picking up boost's BoostConfig.cmake which looks like it may be defective.
 http://www.cmake.org/cmake/help/v3.0/module/FindBoost.html#boost-cmake [^]
|Thank you so much! I appreciate your help! My problem solved!|
Hello, I also encountered the same problem with you, but I don't know in which file I can change the setting specifically, could you please tell me in details?
it's really an annoying problem
|You could look at my CmakeList: https://github.com/FastVPSEestiOu/fastnetmon/blob/master/CMakeLists.txt [^]|
Roger Leigh (developer)
|Or just set -DBoost_NO_BOOST_CMAKE=BOOL:ON on the command-line. Preferable if you need to support multiple platforms/versions and avoiding hardcoding this stuff in the scripts.|
Robert Maynard (manager)
|Closing resolved issues that have not been updated in more than 4 months.|
|2014-11-30 16:18||pavel.odintsov||New Issue|
|2014-11-30 16:34||Roger Leigh||Note Added: 0037314|
|2014-11-30 16:50||pavel.odintsov||Note Added: 0037315|
|2014-12-01 02:28||Nils Gladitz||Note Added: 0037316|
|2014-12-01 03:18||pavel.odintsov||Note Added: 0037317|
|2014-12-01 11:12||Brad King||Status||new => resolved|
|2014-12-01 11:12||Brad King||Resolution||open => no change required|
|2014-12-27 02:38||mircle||Note Added: 0037529|
|2014-12-27 06:45||pavel.odintsov||Note Added: 0037530|
|2014-12-27 18:35||Roger Leigh||Note Added: 0037532|
|2015-05-04 09:05||Robert Maynard||Note Added: 0038712|
|2015-05-04 09:05||Robert Maynard||Status||resolved => closed|
|Copyright © 2000 - 2018 MantisBT Team|