PointCloudLibrary / pcl

Point Cloud Library (PCL)
https://pointclouds.org/
Other
10k stars 4.62k forks source link

build issues #5072

Closed Rampantsen closed 2 years ago

Rampantsen commented 2 years ago

Operating System and version: Ubuntu 20.04 PCL Version: latest version I'm getting the following error message while trying to install PCL

[ 34%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/local_maximum.cpp.o [ 34%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/model_outlier_removal.cpp.o [ 34%] Linking CXX shared library ../lib/libpcl_filters.so [ 34%] Built target pcl_filters [ 34%] Linking CXX shared library ../lib/libpcl_surface.so [ 34%] Built target pcl_surface make: *** [Makefile:152:all] 错误 2

kunaltyagi commented 2 years ago

This is part of the error message. We need more information (specifically the actual error)

Rampantsen commented 2 years ago

When I try to execute the order “make -j8", it stopped at 34% and say make: *** [Makefile:152:all] 错误 2

Rampantsen commented 2 years ago

And what does the following passage mean?

[ 25%] Building CXX object tracking/CMakeFiles/pcl_tracking.dir/src/tracking.cpp.o /usr/bin/ld: 当搜索用于 /usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/libOpenNI2.so 时跳过不兼容的 -lOpenNI2 /usr/bin/ld: 当搜索用于 /usr/lib/../lib/libOpenNI2.so 时跳过不兼容的 -lOpenNI2 /usr/bin/ld: 当搜索用于 /usr/lib/gcc/x86_64-linux-gnu/9/../../../libOpenNI2.so 时跳过不兼容的 -lOpenNI2 /usr/bin/ld: 当搜索用于 /usr/lib/libOpenNI2.so 时跳过不兼容的 -lOpenNI2 /usr/bin/ld: 找不到 -lOpenNI2 collect2: error: ld returned 1 exit status make[2]: [io/CMakeFiles/pcl_io.dir/build.make:807:lib/libpcl_io.so.1.12.0.99] 错误 1 make[1]: [CMakeFiles/Makefile2:1223:io/CMakeFiles/pcl_io.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务....

kunaltyagi commented 2 years ago

You don't have OpenNI2 library but have requested PCL to build features related to it. If you don't need those features (most likely), please consider switching them off using cmake <PCL source directory> -DWITH_OPENNI2:=OFF

Rampantsen commented 2 years ago

thanks, the issue has solved .But I meet new problems When I try to execute the order “make -j8", it stopped [ 15%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/processing.cpp.o [ 15%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/gp3.cpp.o [ 15%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/ear_clipping.cpp.o [ 15%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/marching_cubes_hoppe.cpp.o [ 15%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/marching_cubes_rbf.cpp.o [ 16%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/marching_cubes.cpp.o [ 16%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/grid_projection.cpp.o [ 16%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/conditional_removal.cpp.o [ 16%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/bilateral_upsampling.cpp.o [ 17%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/convolution.cpp.o [ 17%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/crop_box.cpp.o [ 17%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/mls.cpp.o [ 17%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/extract_indices.cpp.o [ 18%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/organized_fast_mesh.cpp.o [ 18%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/filter.cpp.o [ 18%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/filter_indices.cpp.o [ 18%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/simplification_remove_unused_vertices.cpp.o [ 19%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/passthrough.cpp.o [ 19%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/shadowpoints.cpp.o [ 19%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/project_inliers.cpp.o [ 19%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/surfel_smoothing.cpp.o [ 19%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/radius_outlier_removal.cpp.o [ 19%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/random_sample.cpp.o [ 19%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/normal_space.cpp.o [ 19%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/texture_mapping.cpp.o [ 19%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/vtk_smoothing/vtk_utils.cpp.o [ 20%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/sampling_surface_normal.cpp.o [ 20%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/vtk_smoothing/vtk_mesh_subdivision.cpp.o [ 20%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/statistical_outlier_removal.cpp.o [ 20%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/voxel_grid.cpp.o [ 21%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp.o [ 21%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/approximate_voxel_grid.cpp.o [ 21%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp.o [ 21%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp.o [ 21%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/poisson.cpp.o [ 21%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/concave_hull.cpp.o [ 21%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/bilateral.cpp.o [ 22%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/convex_hull.cpp.o [ 22%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/bspline_data.cpp.o [ 23%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/fast_bilateral.cpp.o [ 23%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/factor.cpp.o [ 23%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/fast_bilateral_omp.cpp.o [ 23%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/geometry.cpp.o [ 23%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/crop_hull.cpp.o [ 23%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/voxel_grid_covariance.cpp.o [ 23%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/voxel_grid_label.cpp.o [ 23%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/frustum_culling.cpp.o [ 23%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/marching_cubes_poisson.cpp.o [ 24%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/covariance_sampling.cpp.o [ 24%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/median_filter.cpp.o [ 24%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/uniform_sampling.cpp.o [ 24%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/voxel_grid_occlusion_estimation.cpp.o [ 24%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/normal_refinement.cpp.o [ 25%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/grid_minimum.cpp.o [ 25%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/morphological_filter.cpp.o [ 25%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/local_maximum.cpp.o [ 25%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/model_outlier_removal.cpp.o [ 25%] Linking CXX shared library ../lib/libpcl_filters.so [ 25%] Built target pcl_filters [ 25%] Linking CXX shared library ../lib/libpcl_surface.so [ 25%] Built target pcl_surface make: *** [Makefile:152:all] error 2

kunaltyagi commented 2 years ago

Please use discord for issues not in the core library. The community can help figure out how to best go ahead.

For now, I'd recommend using make -j2 (will be slower, but uses less RAM in case that's slower), but it could be a useless recommendation given the lack of info (no visible error)

Rampantsen commented 2 years ago

Thanks for your help. I am really appreciate.