flann-lib / flann

Fast Library for Approximate Nearest Neighbors
http://people.cs.ubc.ca/~mariusm/flann
Other
2.25k stars 648 forks source link

flann make failed #338

Open witnessai opened 7 years ago

witnessai commented 7 years ago

Hi, all I tried to install flann on Ubuntu using these following steps

$ cd flann-x.y.z-sr
$ mkdir build
$ cd build  
$ cmake ..   
$ make

when I run make, I got following:

In file included from /mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/algorithms/autotuned_index.h:35:0,
                 from /mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/algorithms/all_indices.h:43,
                 from /mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/flann.hpp:45,
                 from /mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/flann.h:466,
                 from /mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/flann.cpp:31:
/mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/nn/ground_truth.h: In function ‘void flann::find_nearest(const flann::Matrix<typename Distance::ElementType>&, typename Distance::ElementType*, size_t*, size_t, size_t, Distance)’:
/mnt/hgfs/Linux Share files/flann-1.8.4-src/src/cpp/flann/nn/ground_truth.h:45:44: warning: typedef ‘ElementType’ locally defined but not used [-Wunused-local-typedefs]
     typedef typename Distance::ElementType ElementType;

the program can not continue, so I terminated the process , I got following:

make[2]: *** [src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o] Interrupt
CMakeFiles/Makefile2:253: recipe for target 'src/cpp/CMakeFiles/flann_s.dir/all' failed
make[1]: *** [src/cpp/CMakeFiles/flann_s.dir/all] Interrupt
Makefile:137: recipe for target 'all' failed
make: *** [all] Interrupt
JohnDoee commented 7 years ago

Try using latest version 1.9.1, you can find it here https://github.com/mariusmuja/flann/releases

The warning should not be a problem, try opening a new window, run top and see if it isn't working hard at compiling it after you run make. It does take a bit of time to compile as far as I remember.

witnessai commented 7 years ago

I didn't see the make in a new window after I run top