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

Missing references in CMake config of GeographicLib in pre-packaged dependencies #117

Open
glmax opened this issue Dec 7, 2020 · 4 comments

Comments

@glmax
Copy link
Contributor

glmax commented Dec 7, 2020

The CMake config of GeographicLib that is provided in the dependency packages at box.com seems to need some files (e.g. binaries) which are neither included in the packages nor actually needed for vanetza. Of course, one can disable the usage of that CMake config via GeographicLib_PREFER_PACKAGE_CONFIG, but it would be nice, if the default behavior worked out-of-the-box.

Here's the full error message for the old dependency package (with the new one, the error is the same IIRC):

-- GeographicLib configuration, version 1.49
CMake Error at /home/duser/vanetza-deps/lib/cmake/GeographicLib/geographiclib-targets.cmake:101 (message):
  The imported target "CartConvert" references the file

     "/home/duser/vanetza-deps/bin/CartConvert"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/home/duser/vanetza-deps/lib/cmake/GeographicLib/geographiclib-targets.cmake"

  but not all the files it references.
@riebl
Copy link
Owner

riebl commented Feb 19, 2021

Sorry for ignoring this issue ticket a long time. I am thinking about employing Conan to cross-compile those dependencies instead of (poorly) maintaining archives on box.com. What do you think @glmax? Is this a good idea?

@kvalli
Copy link

kvalli commented May 10, 2021

im also getting this issue .How to fix this issue

@riebl
Copy link
Owner

riebl commented May 10, 2021

You can manually remove the CMake targets from geographiclib-targets.cmake, which refer to GeographicLib executables, such as CartConvert. Or you cross-compile GeographicLib on your own.

@bma67
Copy link

bma67 commented May 15, 2021

I got the same problem and as suggested by Raphael, I rebuilt GeographicLib-1.5.1 using https://www.vanetza.org/recipes/cross-compile-dependencies/#geographiclib.
It worked fine.

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

4 participants