-
Notifications
You must be signed in to change notification settings - Fork 494
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
1.4.0 Installs pkgconfig and cmake files into wrong locations #161
Comments
You're right, it seems e.g. from https://packages.ubuntu.com/jammy/all/libeigen3-dev/filelist I'll provide a fix and release again, or feel free to propose a PR ! |
For the records: I changed it from lib to share since that's the more appropriate path for a headers only lib |
Yes, please release again. Thanks! |
v1.4.1 has been verified to correctly provide working cmake and pkgconfig files. There are now two examples with the two build systems under examples/*. |
1.4.1 installs .pc file into
.pc files should be in |
Mmm... in which distribution is that? $ sudo make install
...
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/share/nanoflann/cmake/nanoflannTargets.cmake
-- Up-to-date: /usr/local/share/pkgconfig/nanoflann.pc
-- Up-to-date: /usr/local/share/nanoflann/cmake/nanoflannConfig.cmake
-- Up-to-date: /usr/local/share/nanoflann/cmake/nanoflannConfigVersion.cmake
-- Up-to-date: /usr/local/include/nanoflann.hpp
$ pkg-config nanoflann --cflags
-I/usr/local/include Just to make sure it's that .pc file the one pkg-config saw: $ sudo make uninstall
-- Uninstalling "/usr/local/share/nanoflann/cmake/nanoflannTargets.cmake"
-- Uninstalling "/usr/local/share/pkgconfig/nanoflann.pc"
-- Uninstalling "/usr/local/share/nanoflann/cmake/nanoflannConfig.cmake"
-- Uninstalling "/usr/local/share/nanoflann/cmake/nanoflannConfigVersion.cmake"
-- Uninstalling "/usr/local/include/nanoflann.hpp"
$ pkg-config nanoflann --cflags
Package nanoflann was not found in the pkg-config search path.
No package 'nanoflann' found ?? |
Stupid question... FreeBSD :-) Could you check where does the well-known library In Debian-based ones, architecture-independent files go into |
FreeBSD 13, but I don't think this matters.
|
Eigen installs it here: |
Ah, I think I see the issue (I still would compare to eigen3, which is a "reference" headers-only library used by many):
So, I think that with:
will work for FreeBSD, w/o breaking existing policies in other distros... |
Why don't you just bring back the previous .pc location |
It's weird: according to pkgconfig docs,
the /usr/share/pkgconfig should work too and would be preferred for non-architecture specific... But if it causes problems in that distribution, I could roll back it for the .pc file; I think cmake being "smarter" and more up-to-date shouldn't have any problems to locate its own stuff under |
Closed (again XD) by fa97cab Will release again soon, after some further time for testing. |
Before they were installed into:
``
lib/cmake/nanoflann/nanoflannConfig.cmake
lib/cmake/nanoflann/nanoflannConfigVersion.cmake
lib/cmake/nanoflann/nanoflannTargets.cmake
libdata/pkgconfig/nanoflann.pc
share/cmake/nanoflann/nanoflannConfig.cmake
share/cmake/nanoflann/nanoflannConfigVersion.cmake
share/cmake/nanoflann/nanoflannTargets.cmake
share/pkgconfig/nanoflann.pc
The text was updated successfully, but these errors were encountered: