Subject: CGAL users discussion list
List archive
- From: Michael Bieri <>
- To:
- Subject: Re: [cgal-discuss] Boost is not found when compiling my own code
- Date: Tue, 8 Aug 2017 21:56:53 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:F8uaHBE9QcgpRGkhL7rAL51GYnF86YWxBRYc798ds5kLTJ79rsuwAkXT6L1XgUPTWs2DsrQf2rqQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODw38G/XhMJ+j79Vrgy9qBFk2YHYfJuYOeBicq/Bf94XQ3dKUMZLVyxGB4Oxd4wBD+sdMuZYtYbyuV8OpgajCAmtGuzv0D5IjWLx0K0/0uQuCgDG0xI6H9IPq3nUo9D1O70TUeCx1qXH0TLDb/ZP1Dr79YPGcQghrOmSUb5sdcfd00oiGgPfglmOtIDoPimZ2vkPvmWY6edrSPihhHQ9qw5rpzii3scshZfNhoIS0l3E8D92wIcxJdGhUU57fcKoHIJety2HNYZ7QdkuQ25vuCY9xb0GvYC0cDIWx5Qgwh7Tc/2Hc46W7RL/TOudPyt0iXZ/dL+8hxu+61asxvD9W8WuzVpHrClInsHJtn8X1hzT7saHSuF6/kekwTuP0gHT5fpFIU8qj6rbKoUswrE1lpUJsETDGjX6l1nxjK+Tbkkk4PSn6/z7YrX6oZ+RL5N7ig7kPaQqg8CwHOU4MhMSUGiG4uS8z6bu/Vb5QbVPlv05iLPVsJHcJcQBp662GRVZ0og560X3MzDz29sRmTwLLUlOZQmcp4nvIVDHZv7iXtmlhFH5tTZgx/nLOvXLA5jXLzCXlbbrfLtn6mZTzQMyyZZU4JcCWeJJG+76RkKk7I+QNRQ+KQHhm+s=
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.