TEASER-plusplus icon indicating copy to clipboard operation
TEASER-plusplus copied to clipboard

find_package()

Open narutojxl opened this issue 5 years ago • 7 comments

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

narutojxl avatar Jan 27 '21 01:01 narutojxl

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

jingnanshi avatar Feb 02 '21 15:02 jingnanshi

Hi @jingnanshi, thanks author :)

narutojxl avatar Feb 03 '21 01:02 narutojxl

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

StrikerCC avatar Aug 09 '21 03:08 StrikerCC

@StrikerCC try the develop branch

jingnanshi avatar Aug 09 '21 14:08 jingnanshi

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

Aklice-new avatar May 29 '23 07:05 Aklice-new

Please run sudo ldconfig after the sudo make install!

LimHyungTae avatar Apr 03 '24 17:04 LimHyungTae