Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_package() #76

Open
narutojxl opened this issue Jan 27, 2021 · 6 comments
Open

find_package() #76

narutojxl opened this issue Jan 27, 2021 · 6 comments

Comments

@narutojxl
Copy link

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
Copy link
Member

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

@narutojxl
Copy link
Author

Hi @jingnanshi, thanks author :)

@StrikerCC
Copy link

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
Copy link
Member

@StrikerCC try the develop branch

@Aklice-new
Copy link

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

@LimHyungTae
Copy link
Member

Please run sudo ldconfig after the sudo make install!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants