bibatn / special_seminar_

0 stars 0 forks source link

Собрать PCL из исходников #8

Closed bibatn closed 1 year ago

bibatn commented 1 year ago

Склонирован проект: https://github.com/Kitware/CMake
./bootstrap
make

bibatn commented 1 year ago

find_package(Boost 1.65.0 QUIET COMPONENTS serialization mpi PATHS /polusfs/home_edu/edu-cmc-sqi19/edu-cmc-sqi19-24/PCL/boost/build/lib/cmake/Boost-1.71.0)

find_package(Boost 1.65.0 REQUIRED COMPONENTS ${BOOST_REQUIRED_MODULES} PATHS /polusfs/home_edu/edu-cmc-sqi19/edu-cmc-sqi19-24/PCL/boost/build/lib/cmake/Boost-1.71.0)

bibatn commented 1 year ago

find_path(EIGEN_INCLUDE_DIR Eigen/Core PATHS /home_edu/edu-cmc-sqi19/edu-cmc-sqi19-24/PCL/eigen NO_DEFAULT_PATH ) message(STATUS "marat ${EIGEN_INCLUDE_DIR}")

bibatn commented 1 year ago

Second try to locate FLANN using pkgconfig

find_package(PkgConfig QUIET) if(FLANN_FIND_VERSION) pkg_check_modules(PC_FLANN flann>=${FLANN_FIND_VERSION}) else() pkg_check_modules(PC_FLANN flann) endif()

find_path(FLANN_INCLUDE_DIR NAMES flann/flann.hpp PATHS /home_edu/edu-cmc-sqi19/edu-cmc-sqi19-24/PCL/flann/src/cpp NO_DEFAULT_PATH ) message(STATUS "marat ${FLANN_INCLUDE_DIR}")

bibatn commented 1 year ago

grep -rnw '.' -e '-march'

./pcl_find_sse.cmake:10: list(APPEND SSE_FLAGS "-march=native") ./pcl_find_sse.cmake:16: # "-march=native". The reason for this is that by default, 32bit architectures

bibatn commented 1 year ago

[100%] Built target pcl_linemod_detection [edu-cmc-sqi19-24@polus-ib build]$ :point_up: