Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I failed to change the boost library version #1044

Open
whsm opened this issue Apr 12, 2024 · 1 comment
Open

I failed to change the boost library version #1044

whsm opened this issue Apr 12, 2024 · 1 comment

Comments

@whsm
Copy link

whsm commented Apr 12, 2024

I'm sorry to bother you.In order to use GUDHI, I installed boost c++ libraries, according to the suggestion of URL "https://gudhi.inria.fr/doc/latest/installation.html". I installed boost 1.84.0, 1.71.0, and 1.74.0 successively. Due to the mismatch, the folders of these three versions were directly deleted. Then boost 1.80.0 was installed. To generate the utility GUDHI, I run the command "cmake -DCMAKE_BUILD_TYPE=Release ..". The error result is as follows.What should I do?My operating system is Win11. My compiler is Visual Studio2022.Thank you for your help.

PS D:\Program Files (x86)\gudhi-devel\gudhi-devel> cd build/
PS D:\Program Files (x86)\gudhi-devel\gudhi-devel\build> cmake -DCMAKE_BUILD_TYPE=Release ..
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- GUDHI version : 3.10.0a1
CMake Error at D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1841 (file):
file STRINGS file "D:/Program Files
(x86)/boost_1_84_0/boost_1_84_0/boost/version.hpp" cannot be read.
Call Stack (most recent call first):
src/cmake/modules/GUDHI_third_party_libraries.cmake:3 (find_package)
CMakeLists.txt:20 (include)

CMake Warning at D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1015 (message):
Imported targets and dependency information not available for Boost version
0.0.0 (all versions older than 1.33)
Call Stack (most recent call first):
D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1523 (_Boost_COMPONENT_DEPENDENCIES)
D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:2134 (_Boost_MISSING_DEPENDENCIES)
src/cmake/modules/GUDHI_third_party_libraries.cmake:3 (find_package)
CMakeLists.txt:20 (include)

CMake Warning at D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1015 (message):
Imported targets and dependency information not available for Boost version
0.0.0 (all versions older than 1.33)
Call Stack (most recent call first):
D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1523 (_Boost_COMPONENT_DEPENDENCIES)
D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:2134 (_Boost_MISSING_DEPENDENCIES)
src/cmake/modules/GUDHI_third_party_libraries.cmake:3 (find_package)
CMakeLists.txt:20 (include)

CMake Warning at D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1015 (message):
Imported targets and dependency information not available for Boost version
0.0.0 (all versions older than 1.33)
Call Stack (most recent call first):
D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:1523 (_Boost_COMPONENT_DEPENDENCIES)
D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindBoost.cmake:2134 (_Boost_MISSING_DEPENDENCIES)
src/cmake/modules/GUDHI_third_party_libraries.cmake:3 (find_package)
CMakeLists.txt:20 (include)

CMake Error at src/cmake/modules/GUDHI_third_party_libraries.cmake:7 (message):
NOTICE: This program requires Boost and will not be compiled.
Call Stack (most recent call first):
CMakeLists.txt:20 (include)

-- Configuring incomplete, errors occurred!
PS D:\Program Files (x86)\gudhi-devel\gudhi-devel\build>
屏幕截图 2024-04-12 113041

@VincentRouvreau
Copy link
Contributor

As explained in CGAL installation manual:

As there is no canonical directory for where to find Boost on Windows, we recommend that you define the environment variable BOOST_ROOT and set it to where you have installed Boost, e.g., C:Boost\boost_1_69_0.

Please, could you try to define the environment variable BOOST_ROOT with the proper boost folder ?
I hope this will fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants