jkulhanek / tetra-nerf

Official implementation for Tetra-NeRF paper - NeRF represented as triangulation of input point cloud.
https://jkulhanek.com/tetra-nerf
MIT License
278 stars 14 forks source link

Compilation error. boost dependency not found, but it does exist. #14

Closed liuxiaozhu01 closed 1 year ago

liuxiaozhu01 commented 1 year ago

Thanks for your great work! I met some questions when I try to compile and run this project.

mkdir build
cd build
cmake ..
make

when compiling by make, the error occurs.

Consolidate compiler generated dependencies of target tetranerf_cpp_extension
[ 12%] Building CXX object CMakeFiles/tetranerf_cpp_extension.dir/src/tetrahedra_tracer.cpp.o
[ 25%] Building CXX object CMakeFiles/tetranerf_cpp_extension.dir/src/triangulation.cpp.o
In file included from /usr/local/include/CGAL/compute_average_spacing.h:21,
                 from /root/home/workspace/tetra-nerf/src/triangulation.cpp:9:
/usr/local/include/CGAL/Point_set_processing_3/internal/Neighbor_query.h:25:10: fatal error: boost/iterator/function_output_iterator.hpp: No such file or directory
 #include <boost/iterator/function_output_iterator.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/tetranerf_cpp_extension.dir/build.make:277: recipe for target 'CMakeFiles/tetranerf_cpp_extension.dir/src/triangulation.cpp.o' failed
make[2]: *** [CMakeFiles/tetranerf_cpp_extension.dir/src/triangulation.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tetranerf_cpp_extension.dir/all' failed
make[1]: *** [CMakeFiles/tetranerf_cpp_extension.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

it seems that it cannot find the boost dependency, but im pretty sure that it is located in /usr/lib I would appreciate for you help! Thanks!

liuxiaozhu01 commented 1 year ago

sorry, i've made a mistake. My boost is located in /usr/include.

jkulhanek commented 1 year ago

Hi, sorry for the delay. How did you install CGAL? Can you make sure your CGAL version is compatible with your installed boost version?

liuxiaozhu01 commented 1 year ago

Thank you for you reply! I've solved this problem. It seems that the CGAL version is imcompatible with the boost version, and I reinstall the CGAL. Now it compiles properly. Thanks for your brilliant work!