Subject: CGAL users discussion list
List archive
- From: Michael Bieri <>
- To:
- Subject: [cgal-discuss] Boost is not found when compiling my own code
- Date: Tue, 8 Aug 2017 21:14:05 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:Eehnih3A643ZYdsGsmDT+DRfVm0co7zxezQtwd8ZsewfKfad9pjvdHbS+e9qxAeQG96Ku7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q89pDXYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmiCkJOT0k/m/JlsN9l7hUrA67qhFl34LYfIOYOfxjda3dZ9MaQm9BU95WWSxAHoy8b5EAAPQFPe1FsoT9pkUBrQG/BQKxA+7vzz5IiWT33aIkyeQhEBrL3AMlH90UsXTUqM/5O7sVUeCw1aTFyyjIYfBO2Trl9oTEbhQsreuPUL9wa8bd11cjGx/fglmNqoHpIjWY3fkXvWeB9epvT+evhnYnqw5vpjivwd8hiozTiYIUzlDI7Dx5wIUpKdGhRk53fN2pHIZKuyGVMIt2RcwiQ2V2tyog1rIGvpu7cDALyJQh2RHfd+SKf5aU7h/nTuqcIjd1iGh7dL6hmxq+61Wsx+7hWsWs1VZFtCtFkt3CtnAX0BzT79CKSv58/ki62DaAyRrT6uBfLEA7kKrUMZ8hwroqmpUPtkTDGzf6mF/qg6+OakUk5u+o5vz7bbXpvJCcM5Z4hRz/MqQ1hsO/HP84MhMVUmiA+eW80aXj8lfjTLVLiP02iKjZv4rAKcQVvK7qSzNSh40s4hL6Aza928kDhlEGKkhEcVSJldvHIVbLddX5Bve2jlDkujZm3fGOarjgCJTANHnrn7LofLI74ElZnllghetD7o5ZX+lSaMn4XVX84YTV
Hello
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.
Boost_DEBUG OFF
Boost_DIR /usr/lib64/boost
Boost_INCLUDE_DIR /usr/include
I'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:
*******************************************************
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_DIR /usr/lib64/boost
Boost_INCLUDE_DIR /usr/include
Whe 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
Archive powered by MHonArc 2.6.18.