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 13:29:48 -0600
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:+YDS/hd/05X4mWe2HPmV/ZmPlGMj4u6mDksu8pMizoh2WeGdxcu7Yh7h7PlgxGXEQZ/co6odzbGH4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Yr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM28m/XhMx+gqxYvRyvuQBwzpXOb42JLvdzZL/Rcc8YSGdHQ81fVzZBAoS5b4YXEecBPfxYr4jmp1ATqhWxHxOsBPjvyjRVgXL5wa060/4gEQHdxgAgGsgBsG7PrNX1L6oSTPu1w7PTzTXAdf9ZxS3y5ZHOfxs8ov+MRap9fdfPxUQsDQ/JkFudpIL/Mz+Ly+gAs3KX4/RuWO+rk2IqqQ58riKyyssyioTFnIEYx17e+Sh23Yo4I8CzRlRhbt6+CpRQsjmXN4toTcMmRGFloCM6xacHuZ6/ZiQK1Y8nyATEa/yEaYSH/gjsWP6QITd+mn1lZKqyiwus/UWj0OHwSMe53VhQoiZbj9XBtmoB2wLd58WDUvd9+12u2TeL1wDd8OFEJkU0mLLHJJ4h2L4wl4ETvV7GHiDsgkX2l6+We145+uiz8evnebbmqoWAOIBukg3+KLghmtSjAeQkNQgDR3SU+eum273n5EH2XbRKjuYqnanEq5DaPt8WprW5Ag9QyoYs8QyzDzag0NQCnHkINkhJeBydj9uhB1abdPv3BPP6j1W3mypw3NjHOKfgC9PDNC6Qvq3meONW61Rd00IWxMpE59oAAbEbIem1X0brr9zwEwQwKA/yyO+xW4Y17Z8XRW/aWvzRC6jVq1Ldvu8=
When compiling against a custom boost with cmake, you can use this in your cmake file to specify the boost directory
set(Boost_NO_SYSTEM_PATHS TRUE)
set(BOOST_ROOT "/my/boost/boost_1_54_0")
the FindBoost.cmake file will then pickup your custom directory
On 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, 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
Archive powered by MHonArc 2.6.18.