Package Details: ann 1.1.2-3

Git Clone URL: https://aur.archlinux.org/ann.git (read-only, click to copy)
Package Base: ann
Description: Approximate nearest neighbor library.
Upstream URL: http://www.cs.umd.edu/~mount/ANN/
Licenses: LGPL
Submitter: foxcub
Maintainer: foxcub
Last Packager: foxcub
Votes: 8
Popularity: 0.003210
First Submitted: 2009-06-11 17:20 (UTC)
Last Updated: 2017-02-20 19:44 (UTC)

Latest Comments

notoria commented on 2026-05-14 09:58 (UTC)

Hello, I also tried to build ann for gmsh but I have warning and error like @magesing. I managed to build ann with an alternative patch to shared-libs.patch:

diff -u -r ann_1.1.2.src/Make-config ann_1.1.2.dst/Make-config
--- ann_1.1.2.src/Make-config   2024-07-19 00:00:00.000000000 +0200
+++ ann_1.1.2.dst/Make-config   2024-07-19 00:00:00.000000000 +0200
@@ -72,10 +72,18 @@
    $(MAKE) targets \
    "ANNLIB = libANN.a" \
    "C++ = g++" \
-   "CFLAGS = -O3" \
+   "CFLAGS = -std=c++11 -O3" \
    "MAKELIB = ar ruv" \
    "RANLIB = true"

+linux-g++-sl:
+   $(MAKE) targets \
+   "ANNLIB = libANN.so" \
+   "C++ = g++" \
+   "CFLAGS = -std=c++11 -O3 -fPIC" \
+   "MAKELIB = g++ -shared -o" \
+   "RANLIB = true"
+
 #                  Mac OS X using g++
 macosx-g++:
    $(MAKE) targets \
diff -u -r ann_1.1.2.src/Makefile ann_1.1.2.dst/Makefile
--- ann_1.1.2.src/Makefile  2024-07-19 00:00:00.000000000 +0200
+++ ann_1.1.2.dst/Makefile  2024-07-19 00:00:00.000000000 +0200
@@ -42,6 +42,7 @@
 default:
    @echo "Enter one of the following:"
    @echo "  make linux-g++            for Linux and g++"
+   @echo "  make linux-g++-sl         for Linux and g++, make shared libs"
    @echo "  make macosx-g++           for Mac OS X and g++"
    @echo "  make sunos5               for Sun with SunOS 5.x"
    @echo "  make sunos5-sl            for Sun with SunOS 5.x, make shared libs"
@@ -56,7 +57,7 @@
 #-----------------------------------------------------------------------------
 # main make entry point
 #-----------------------------------------------------------------------------
-alpha-g++ macosx-g++ linux-g++ sgi sunos4 sunos4-g++ sunos5 sunos5-g++ sunos5-g++-sl authors-debug authors-perf:
+alpha-g++ macosx-g++ linux-g++ linux-g++-sl sgi sunos4 sunos4-g++ sunos5 sunos5-g++ sunos5-g++-sl authors-debug authors-perf:
    cd src ; $(MAKE) $@
    cd test ; $(MAKE) $@
    cd sample ; $(MAKE) $@

carlosal1015 commented on 2026-05-05 19:07 (UTC)

@magesing. No issue from my side in a clean chroot. ann-1.1.2-3-x86_64-build.log

magesing commented on 2026-05-04 18:47 (UTC)

This currently fails to build with lots of "error: invalid conversion from..." and "error: no match for 'operator>>'..."

I suspect that this is due to changes in GCC since this package was last updated in 2017

I needed ann as a dependancy for gmsh... I worked around this issue by just installing aur/gmsh-bin instead.

micwoj92 commented on 2024-07-30 22:20 (UTC)

Please add gcc-libs and glibc to depends.

carlosal1015 commented on 2024-03-17 14:22 (UTC)

Could you please change to https://www.cs.umd.edu/~mount/ANN and https://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.tar.gz

jettan commented on 2016-08-19 12:48 (UTC)

I'm getting an error saying: ==> ERROR: license should be an array :: failed to verify ann integrity Can be fixed my changing "LGPL" to ('LGPL').

haagch commented on 2013-11-12 16:40 (UTC)

fyi: The parallel.patch can possibly break the nearest neighbour search so that it returns indizes not in the array.

haagch commented on 2013-04-15 22:48 (UTC)

Doesn't package anything with the latest pacman, probably because $startdir etc. Rudimentarily cleaned up PKGBUILD: http://pastebin.com/raw.php?i=k6TStR1T

<deleted-account> commented on 2010-12-06 16:43 (UTC)

I am a robot. This is not an official message. You have accidentally tarred up some dotfiles. Examples: .hg_archival.txt Suggestion: use "makepkg --source". Feel free to disregard this as you would any other comment. This robot will not post here again.