Package Details: flann 1.8.4-3

Git Clone URL: https://aur.archlinux.org/flann.git (read-only)
Package Base: flann
Description: FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces
Upstream URL: http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN
Licenses: BSD
Submitter: None
Maintainer: None
Last Packager: lubosz
Votes: 33
Popularity: 0.482241
First Submitted: 2011-04-05 02:06
Last Updated: 2016-07-03 09:27

Latest Comments

Svenstaro commented on 2017-11-13 18:06

This has been flagged OOD for a long time. Orphaning this package. Somebody take over.

patrick.luehne commented on 2017-11-13 17:55

I’ve brought this PKGBUILD to 1.9.1, as included below. Note that the patch for GCC 6 doesn’t seem necessary anymore, which is why I removed it.




# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Maintainer: Javier Fuentes <0xffaa.rm@gmail.com>
# Contributor: Figo.zhang <figo1802@gmail.com>
# Contributor: hauptmech

pkgname=flann
pkgver=1.9.1
pkgrel=1
pkgdesc="FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces"
arch=('i686' 'x86_64')
url='https://github.com/mariusmuja/flann'
license=('BSD')
depends=('hdf5')
makedepends=('cmake' 'python2')
optdepends=('python2: python bindings'
'cuda: cuda support')
source=("https://github.com/mariusmuja/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('0da78bb14111013318160dd3dee1f93eb6ed077b18439fd6496017b62a8a6070cc859cfb3e08dad4c614e48d9dc1da5f7c4a21726ee45896d360506da074a6f7')

build() {
cd "$srcdir/${pkgname}-${pkgver}"

sed -i 's/lib64/lib/g' cmake/flann_utils.cmake

sed -i '1 i #undef _GLIBCXX_ATOMIC_BUILTINS' src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu
sed -i '1 i #undef _GLIBCXX_USE_INT128' src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu

sed -i 's|#!/usr/bin/env python|#!/usr/bin/python2|' \
bin/download_checkmd5.py \
bin/run_test.py \
src/python/setup.py.tpl \
test/test_clustering.py \
test/test_index_save.py \
test/test_nn_autotune.py \
test/test_nn_index.py \
test/test_nn.py

sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' \
test/memusage_clustering.py \
test/memusage_nn.py

sed -i "s|setup\.py install|setup.py install --root=$pkgdir --optimize=1|" src/python/CMakeLists.txt

[[ -d build ]] && rm -r build
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_MATLAB_BINDINGS=OFF \
-DBUILD_PYTHON_BINDINGS=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DNVCC_COMPILER_BINDIR=/usr/bin
make
}

package() {
cd "$srcdir/${pkgname}-${pkgver}"

cd build
make DESTDIR="$pkgdir" install

#install license file
install -D -m644 ../COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

# FIXME: awful hack, but I got this error without the fix:
# running install_lib
# copying build/lib/pyflann/exceptions.py -> /usr/lib/python2.7/site-packages/pyflann
# error: /usr/lib/python2.7/site-packages/pyflann/exceptions.py: Permission denied
_python2libpath="`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" | tr -d '\n'`"
mkdir -p "${pkgdir}${_python2libpath}"
cp -pr "${pkgdir}/usr/share/flann/python/pyflann" "${pkgdir}${_python2libpath}/pyflann"

}

patrick.luehne commented on 2017-11-13 17:43

Dear maintainers,

FLANN moved to GitHub and the new version 1.9.1 has been out there for over a year now … [1]

Please update this PKGBUILD soon :). 1.8.4 seems to be almost five years old by now!

Thanks,
Patrick




[1] https://github.com/mariusmuja/flann/releases

puppieeesss commented on 2017-08-27 00:54

Thanks @wdna, those changes worked for me!
5 modifications in PKGBUILD:

pkgver=1.8.5
source=("https://github.com/mariusmuja/flann/archive/1.8.5.zip")
md5sums=('1fdf55d23db5aab563279246b2bd2bf9')

build() {
cd "$srcdir/flann-${pkgver}"

package() {
cd "$srcdir/flann-${pkgver}"

wdna commented on 2017-08-21 11:47

Can we update this package to 1.8.5, and removing need for patch at all?
https://github.com/mariusmuja/flann/tree/1.8.5
I've tested build it it seems to work just fine (https://github.com/mariusmuja/flann/archive/1.8.5.zip, and remove '-src' prefix on directory).

zootboy commented on 2017-08-11 00:29

The patch URL 404s, it seems to have changed to:

http://pkgs.fedoraproject.org/rpms/flann/raw/master/f/flann-1.8.4-gcc6.patch

However, the package seemed to compile OK on my system without the patch, so maybe it's not needed?

elimpfor commented on 2017-03-07 01:10

Would it be possible to update the PKGBUILD to build on 'any' (it works on aarch64 and armv7h)?

scummos commented on 2016-11-04 15:53

Needs to build-depend on extra/hdf5-cpp-fortran.

kertase commented on 2016-08-15 22:04

Did not work with standard hdf5 needed hdf5-cpp-fortran

Alad commented on 2016-05-19 12:53

Quote srcdir/pkgdir so the build doesn't fail in directories with spaces in them.

All comments