Subject: CGAL users discussion list
List archive
- From: Chris Marsh <>
- To: <>
- Subject: Re: [cgal-discuss] Boost is not found when compiling my own code
- Date: Tue, 8 Aug 2017 14:23:47 -0600
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:SThSEBxvmOkyxC3XCy+O+j09IxM/srCxBDY+r6Qd2+kVIJqq85mqBkHD//Il1AaPBtSLraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze6/9pnQbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRDqhicJNzA3/mLKhMJukK1WuwiuqwBlzoPOfI2ZKPhzc6XAdt0aX2pBWcNRWjRfD4O8dYsPDvEBNvtfoYbnvVsOthu+DhSrCezzyj9InH723bYg3+QkCw7GxhcgH9IVvXTJt9X6LrwSUeOvwKbU1zrOdvVb0irz5ojPdxAuu/CMXbRofMrQz0kvDQLFgU+KpYzrJTOZzuoNs3KG7+p7SeKvlmsnpxttrTiow8chjJTCiIENyl3c6Cl13oU4KcemREN1b9OoCoVcuzyaOodsXM8vTWBltD44x7AJo5K3YTYGxZQ9yxPcZfGLaYeF7xDlWe2MOzl3nmhld6i6hxuq8Uiv1On8Vs6s3VZPtCVFk93MumoQ1xzI8MeHUfh98l291jmVzwzT6+dELl4olafDNpIt3L09moANvUnNECL6glv6gLKWe0k+5OSl5eXqbq3jppCGNo90jg/+Mr4pmsy6Gek3LggOX3Ka+eSnzrHj+Ff2QK9Rjv02iaTZrYvaKt4Apq66GQNazpws5w6lDzi6yNQYgWUHLFVddR2bgIjmIVXOLOnlAve+mFSjjCprx+vdPrD6GZXMLn3DkK/7crpn6k5czhAzzdFF6J5OBLEBOqG7Z0nqqdaNDgMlKxfmhKH8GdBl38UfX3iOC+mXKuTJoFqQ76U0IuaWaZYItS3hbPMq7vqrgX4ikkIGZvqV2s5DY3+xGrFqIl6SfGH3qtYHC2YD+AQkGr/EklqHBBVTfXepF4c1/Co7QNatDZ3CXcaoiaaa3A+mBZRNZSZNAwbfQj/Ta4yYVqJUO2qpKch7n2lcWA==
you can unsub here
https://sympa.inria.fr/sympa/sigrequest/cgal-discussOn 8 August 2017 at 14:10, Jesse Blankenship <> wrote:
can I get removed from the list?On Tue, Aug 8, 2017 at 2:10 PM, Michael Bieri <> wrote:Ok, I tried to do this, but I get the following result when running it with --trace:/my/project/CMakeLists.txt(25): set(Boost_NO_SYSTEM_PATHS TRUE )/my/project/CMakeLists.txt(26): set(BOOST_ROOT /my/boost )/my/project/CMakeLists.txt(27): find_package(Boost REQUIRED )/usr/share/cmake/Modules/FindBoost.cmake(163): if(NOT Boost_NO_BOOST_CMAKE )/usr/share/cmake/Modules/FindBoost.cmake(166): if($ENV{Boost_DIR} STREQUAL )/usr/share/cmake/Modules/FindBoost.cmake(167): if(NOT $ENV{BOOST_ROOT} STREQUAL )/usr/share/cmake/Modules/FindBoost.cmake(168): set(ENV{Boost_DIR} $ENV{BOOST_ROOT} )/usr/share/cmake/Modules/FindBoost.cmake(177): find_package(Boost QUIET NO_MODULE )/usr/lib64/boost/BoostConfigVersion.cmake(12): if(${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}.${PACKAGE_FIND_VERSION_PATCH} STREQUAL 1.41.0 )/usr/lib64/boost/BoostConfig.cmake(20): set(Boost_VERSION 1.41.0 )/usr/lib64/boost/BoostConfig.cmake(21): set(Boost_INCLUDE_DIRS /usr/include )/usr/lib64/boost/BoostConfig.cmake(22): set(Boost_INCLUDE_DIR /usr/include CACHE FILEPATH Boost include directory )/usr/lib64/boost/BoostConfig.cmake(24): set(Boost_LIBRARY_DIRS /usr/lib64 )This will then again lead to the same error as before.It seems that cmake absolutely wants to go into /usr/share/cmake/Modules/FindBoost.cmake and then /usr/lib64/boost/BoostConfig.cmake, no matter wheter I set Boost_NO_SYSTEM_PATHS TRUE.Best regards,MichaelOn Tue, Aug 8, 2017 at 10:00 PM, Chris Marsh <> wrote:In your project cmake.And I would not manually set these variablesBoost_DIR /usr/lib64/boost
Boost_INCLUDE_DIR /usr/includeI would let the find_pacakge call do that for you.On 8 August 2017 at 13:56, Michael Bieri <> wrote:Just in the cmake file of my project, or in the cmake file for building CGAL?On Tue, Aug 8, 2017 at 9:48 PM, Chris Marsh <> wrote:You put them before the find_package(Boost REQUIRED) call in your cmake file. You will not need to recompile boost.For example:set(Boost_NO_SYSTEM_PATHS TRUE)set(BOOST_ROOT "/my/boost/boost_1_54_0")find_package(Boost REQUIRED)message(STATUS "Found boost incl: ${Boost_INCLUDE_DIR}")message(STATUS "Boost libs to link: ${Boost_LIBRARIES}")message(STATUS "Found boost lib: ${Boost_LIBRARY_DIRS}")should print your custom boost library pathOn 8 August 2017 at 13:37, Michael Bieri <> wrote:Hi ChrisThanks for your answer. Where exactly should I put those lines, and do I need to recompile CGAL afterwards?Best regards,MichaelOn Tue, Aug 8, 2017 at 9:29 PM, Chris Marsh <> wrote:When compiling against a custom boost with cmake, you can use this in your cmake file to specify the boost directoryset(Boost_NO_SYSTEM_PATHS TRUE)set(BOOST_ROOT "/my/boost/boost_1_54_0")the FindBoost.cmake file will then pickup your custom directoryOn 8 August 2017 at 13:14, Michael Bieri <> wrote:HelloI'm currently installing CGAL on different platforms. Normally, it works just fine. But I have one computer where Boost is not installed into the system, but just compiled in a directory. This Boost works properly in combination with other things I'm building, just not with CGAL.I can compile CGAL using the following Boost-related settings, displayed with ccmake:
Boost_DEBUG OFF
Boost_INCLUDE_DIR /my/boost/boost_1_54_0
Boost_LIBRARY_DIR /my/boost/boost_1_54_0/stage/lib
Boost_SYSTEM_LIBRARY_DEBUG /my/boost/boost_1_54_0/stage/lib
Boost_SYSTEM_LIBRARY_RELEASE /my/boost/boost_1_54_0/stage/lib
Boost_THREAD_LIBRARY_DEBUG /my/boost/boost_1_54_0/stage/lib
Boost_THREAD_LIBRARY_RELEASE /my/boost/boost_1_54_0/stage/lib
CGAL_Boost_USE_STATIC_LIBS OFF
Now, I'd like to compile one of my examples. I get the following error:*******************************************************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.*******************************************************The error itself is not a surprise, because it's a very old Boost there.Boost-related settings for cmake in my project folder are:Boost_DEBUG OFF
Boost_DIR /usr/lib64/boost
Boost_INCLUDE_DIR /usr/includeWhe I change the variables to my own Boost in ccmake, it will also throw the above error and not save the changes.So I really, really wonder: How do I set Boost properly to compile my own code? (I also tried with environment variables as given in the installation manual, Section 15.7.)Best regards,Michael
- [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Jesse Blankenship, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Biswajit Biswas, 08/09/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Michael Bieri, 08/08/2017
- Re: [cgal-discuss] Boost is not found when compiling my own code, Chris Marsh, 08/08/2017
Archive powered by MHonArc 2.6.18.