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

Error: Could not find a package configuration file provided by "Geogram" #149

Open
Helena2007 opened this issue May 13, 2024 · 2 comments
Open

Comments

@Helena2007
Copy link

I am doing autoporting of geogram code using AdaptiveCpp. When executed the cmake command

cmake .. -DGeogram_DIR=/...../geogram/cmake -DAdaptiveCpp_DIR=/...../AdaptiveCpp/lib/cmake/AdaptiveCpp -DACPP_TARGETS='cuda:sm_86' in geobox/build got the following error:

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

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

GeogramConfig.cmake
geogram-config.cmake

Add the installation prefix of "Geogram" to CMAKE_PREFIX_PATH or set
"Geogram_DIR" to a directory containing one of the above files. If
"Geogram" provides a separate development package or SDK, be sure it has
been installed.
But I have already added the path to FindGeogram.cmake in the cmakelist of geobox using Geogram_DIR and also given the path while running the cmake command. There are no files named GeogramConfig.cmake or geogram-config.cmake are created.

@BrunoLevy
Copy link
Owner

Hello,
I have no experience with AdaptiveCpp,
The easiest way of compiling geogram is following the instructions here.
Is there a reason that makes using AdaptiveCpp mandatory for your project ?

@Hideman85
Copy link

Hi, I'm having the same issue using cmake and clang++. No config is provide when installing libgeogram-dev on ubuntu 24.04.

I additionally tried to use your FindGeogram.cmake by adding it to my cmake folder, it find the lib on the system but incorrectly declare the header I have to include as #include <geogram1/geogram/basic/common.h> but then fails as

main.cpp:10:
/usr/include/geogram1/geogram/basic/common.h:43:10: fatal error: geogram/api/defs.h: No such file or directory
   43 | #include <geogram/api/defs.h>
      |          ^~~~~~~~~~~~~~~~~~~~

Could you help me with this? I'm not quite sure why FindGeogram.cmake does this.

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

3 participants