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:37:25 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:oGfKwRRK66fnPg/UDgCV+ZT3f9psv+yvbD5Q0YIujvd0So/mwa68bRON2/xhgRfzUJnB7Loc0qyN4vCmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/2PZisJwgqxVow+vqQJjzIPPeo6ZKOBzc7nBcd8GR2dMWNtaWSxbAoO7aosCF+0PPedEoIn9vVQBsx++DhSxCePu1DBInH721rA93uQkEAHJxw0gEMwUsHTVt9j1O6ISXvq0zKnM1znMc/RW2TLk5YXObxsvoumMUKpufcbNzUQjDQDIg1WKpYD7Ij+Y1/4Bv3WZ4udkU++klnQppBtroje1w8chkonJiZwRylDD7Sh5xZw6Jdy8SEJieN6kDIdcuziUN4drQM4vR3tkuCk9yr0Btp67eDYFxI47yB7YbvyLa4mI4hT9W+aNOTp0mm5pdbalixux8UWs0PPwWtS13VpQsyZIkN3BumgI1xPJ68iHTvV9/l2m2TaKzw3T7+BELls1laXFMZ4hw6U9lpUWsUvZHy/2nF/6g7ORdkUh4uSo8fjoYq36pp+AMI95kh3xMqs0lcy7GOg3LwkOX3OH9uShz73j5lb0QK5Kj/0ziqnWqorWJcUdpq6jAg9ayJwv6xilD2Tu7NNNlnYOKBdJeQmMkpPyE1DIOvHxS/ml0Hq2lzI+4vHNPrTsBt3nL3XZkf+1eLd36kNGySI8yNle49RfDbRXc6G7YVP4qNGNVkxxCAez2euyUNg=
Hi Chris
Thanks for your answer. Where exactly should I put those lines, and do I need to recompile CGAL afterwards?
Best regards,
Michael
On 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, 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.