Package Details: flann 1.9.1-7

Git Clone URL: https://aur.archlinux.org/flann.git (read-only, click to copy)
Package Base: flann
Description: FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces
Upstream URL: https://github.com/mariusmuja/flann
Licenses: BSD
Submitter: None
Maintainer: acxz
Last Packager: acxz
Votes: 44
Popularity: 0.24
First Submitted: 2011-04-05 02:06
Last Updated: 2020-04-19 05:05

Pinned Comments

acxz commented on 2020-02-03 02:07

Development is on Github: https://github.com/acxz/pkgbuilds Please open issues and PRs there instead of commenting.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

hauptmech commented on 2013-10-28 17:32

+1 for CUDA as an opt-depend

progtologist commented on 2013-09-25 10:45

CUDA should be listed as an opt-depend instead of a makedepend.
Users without nvidia graphics cards can install flann without CUDA and nvidia drivers.

idonthack commented on 2012-12-01 04:22

makedep cuda-toolkit no longer exists, it's now in the official repos as community/cuda

Svenstaro commented on 2012-05-17 23:40

Package fixed.

pallegro commented on 2012-05-03 19:09

The gcc error is reported at https://bugs.archlinux.org/task/29359 and there's a workaround.
flann built fine for me with standard gcc (4.7) by adding

#undef _GLIBCXX_ATOMIC_BUILTINS
#undef _GLIBCXX_USE_INT128

at the beginning of src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu

cuda_gcc47.patch
0a1,3
> #undef _GLIBCXX_ATOMIC_BUILTINS
> #undef _GLIBCXX_USE_INT128
>

PKGBUILD edit before running make:
patch src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu ../cuda_gcc47.patch

erwinkendo commented on 2012-04-29 01:13

Hello
Fixed the problem installing gcc 4.4 from AUR and adding this line to the PKGBUILD.

cd $srcdir/flann-${pkgver}-src

sed -i 's|;--compiler-bindir=${NVCC_COMPILER_BINDIR}|;--compiler-bindir=/opt/gcc-4.4/|' src/cpp/CMakeLists.txt

erwinkendo commented on 2012-04-27 05:42

Already commented, but not very popular
http://forums.developer.nvidia.com/devforum/discussion/7501/pcl-flann-compilation-troubles-due-to-nvcc

In PCL forum, someone suggested me to use gcc4.4 because NVCC only works with up until GCC-4.4, but forcing it in nvcc.profile pointing a symbolic link in my home folder gives this error:

Linking CXX static library ../../lib/libflann_cpp_s-gd.a
[ 44%] Built target flann_cpp_s-gd
[ 55%] Building NVCC (Device) object src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
/home/erwin/gcc44/: Permission denied
CMake Error at flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake:198 (message):
Error generating
/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/build/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o


make[2]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o] Error 1
make[1]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/all] Error 2
make: *** [all] Error 2

Svenstaro commented on 2012-04-24 21:36

See http://forums.developer.nvidia.com/devforum/discussion/146/how-to-report-a-cuda-bug/p1

erwinkendo commented on 2012-04-24 21:33

Can we report this? a bug tracer? As mentioned, is a CUDA NVCC related issue. Does anyone know where to report this? Is there a way to get PCL without this package?

Svenstaro commented on 2012-04-23 01:19

Yeah we pretty much gotta wait for nvidia to fix this.