This project builds and defines the build2 package for nanoflann, a C++11 header-only library for Nearest Neighbor (NN) search with KD-trees.
Make sure to add the stable section of the cppget.org
repository to your project's repositories.manifest
to be able to fetch the package.
:
role: prerequisite
location: https://pkg.cppget.org/1/stable
# trust: ...
If the stable section of cppget.org
is not an option then add this Git repository itself instead as a prerequisite.
:
role: prerequisite
location: https://github.com/build2-packaging/nanoflann.git
Add the respective dependency in your project's manifest
file to make the package available for import.
depends: nanoflann ^1.6.0
The library can be imported by the following declaration in a buildfile
.
import nanoflann = nanoflann%lib{nanoflann}
There are no configuration options available.
- FreeBSD, Clang, static, optimized: Error may occur during tests or installed tests:
ld: error: undefined symbol: pthread_create
- It seems that
pthread
is not correctly linked in the examples.
linux_debian_11-emcc_3.1.6
error (test):em++
seems not to be able to compilegtest
.
- Windows, MinGW, optimized: The
kdtree.SO2_vs_bruteforce
test may fail.
Thank you in advance for your help and contribution to keep this package up-to-date.
Please, file an issue on GitHub for questions, bug reports, or to recommend updating the package version.
If you're making a pull request to fix bugs or update the package version yourself, refer to the build2
Packaging Guidelines.