NEC icon indicating copy to clipboard operation
NEC copied to clipboard

when install pyflann meet error

Open ganlinzhang opened this issue 4 years ago • 4 comments

hello, I meet this problem ,when I want to install pyflann: I run 'sudo cmake install'

running install running build running build_py package init file '/home/lin/桌面/code/NEC/libs/flann/build/lib/init.py' not found (or not a regular file) package init file '/home/lin/桌面/code/NEC/libs/flann/build/lib/init.py' not found (or not a regular file) running install_lib running install_egg_info Removing /home/lin/anaconda3/lib/python3.7/site-packages/flann-1.9.1-py3.7.egg-info Writing /home/lin/anaconda3/lib/python3.7/site-packages/flann-1.9.1-py3.7.egg-info CMake Error at examples/cmake_install.cmake:47 (file): file INSTALL cannot find "/home/lin/code/NEC/libs/flann/build/bin/flann_example_c". Call Stack (most recent call first): cmake_install.cmake:70 (include)

Do you know how to solve this problem? Thank you very much.

ganlinzhang avatar Nov 04 '20 16:11 ganlinzhang

Can you try to first build FLANN and then install the library?

cd libs/flann
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=<path you want to install flann & pyflann library> ..
make -j8
make install

hiwonjoon avatar Nov 04 '20 16:11 hiwonjoon

I have finished "cd libs/flann mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=<path you want to install flann & pyflann library> .. make -j8" this four step. and make problem when I run "make install".

ganlinzhang avatar Nov 04 '20 16:11 ganlinzhang

Did you run cmake install or make install?

hiwonjoon avatar Nov 06 '20 23:11 hiwonjoon

Can this code run on Windows?Thanks~

cxrsss avatar Nov 16 '20 17:11 cxrsss