MIT-SPARK / TEASER-plusplus

A fast and robust point cloud registration library
MIT License
1.76k stars 340 forks source link

find_package() #76

Open narutojxl opened 3 years ago

narutojxl commented 3 years ago

Hi author, After make installed teaser in /usr/local/, when using in other project CMakeLists.txt with find_package(teaserpp REQUIRED), it comes out:

CMake Error at hdl_global_localization_noted/CMakeLists.txt:45 (find_package): By not providing "Findteaserpp.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "teaserpp", but CMake did not find one.

  Could not find a package configuration file provided by "teaserpp" with any
  of the following names:

    teaserppConfig.cmake
    teaserpp-config.cmake

  Add the installation prefix of "teaserpp" to CMAKE_PREFIX_PATH or set
  "teaserpp_DIR" to a directory containing one of the above files.  If
  "teaserpp" provides a separate development package or SDK, be sure it has
  been installed.

In the /usr/local/lib/cmake/teaserpp/, there is no teaserppConfig.cmake or teaserpp-config.cmake, but teaserppTargets.cmake and teaserppTargets-release.cmake. How to fix this problem, thanks for your help and time!

/usr/local/lib/cmake/teaserpp/teaserppTargets.cmake /usr/local/lib/cmake/teaserpp/teaserppTargets-release.cmake

jingnanshi commented 3 years ago

Hi @narutojxl , thanks for reporting this issue. Will take a look soon.

narutojxl commented 3 years ago

Hi @jingnanshi, thanks author :)

StrikerCC commented 3 years ago

get the same issue, I set teaserpp_DIR to build directory, but there is no teaserppConfig.cmake or teaserpp-config.cmake also. I'm wondering how your guys run the Minimal C++ example

jingnanshi commented 3 years ago

@StrikerCC try the develop branch

Aklice-new commented 1 year ago

你好,请问解决这个问题了吗

LimHyungTae commented 6 months ago

Please run sudo ldconfig after the sudo make install!