LiangliangNan / Easy3D

A lightweight, easy-to-use, and efficient C++ library for processing and rendering 3D data
GNU General Public License v3.0
1.37k stars 245 forks source link

Search only the Boost Graph Library component #187

Closed wolodyx closed 4 months ago

wolodyx commented 4 months ago

Only some boost packages can be installed on the computer. If only boost-program-options is available, then the program will not build: HAS_BOOST will be TRUE, but the header file "boost/adjacency_list.hpp" will not be available. My little edit corrects this situation.

LiangliangNan commented 4 months ago

Hi, thanks for this pull request.

I want to understand what the issue was. What does "Only some boost packages can be installed on the computer" mean?

After checking your edit, I see the only change is find_package(Boost)
to find_package(Boost COMPONENTS graph) Now I realize that only the boost "graph" module is needed.

LiangliangNan commented 4 months ago

I have merged your edit into the code. Thanks again for the contribution!

wolodyx commented 4 months ago

Hi, thanks for this pull request.

I want to understand what the issue was. What does "Only some boost packages can be installed on the computer" mean?

After checking your edit, I see the only change is find_package(Boost) to find_package(Boost COMPONENTS graph) Now I realize that only the boost "graph" module is needed.

Hi! Thank you for accepting this code. On my machine, I installed only a separate boost-program-options module from the boost package. Because of this, Easy3d was not going to, because "algo/CMakeLists.txt "found boost (set HAS_BOOST=TRUE), but couldn't find "boost/adjacency_list.hpp". This resulted in a compilation error.