python - How to install FLANN and pyflann on Windows -


how can setup flann on python (pyflann) on windows? know flann in opencv need standalone version. instructions here suggest compiling flann binary or downloading version pointclouds can't use of these.

i compiled source after tried run setup.py got error:

>  c:\python27\flann-1.8.4-src\src\python>python setup.py install running install running build running build_py traceback (most recent call last):   file "setup.py", line 27, in <module>     package_data={'pyflann.lib': ['libflann.so', 'flann.dll', 'libflann.dll', 'libflann.dylib']},   file "c:\python27\lib\distutils\core.py", line 152, in setup dist.run_commands()   file "c:\python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd)   file "c:\python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run()   file "c:\python27\lib\distutils\command\install.py", line 563, in run self.run_command('build')   file "c:\python27\lib\distutils\cmd.py", line 326, in run_command self.distribution.run_command(command)   file "c:\python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run()   file "c:\python27\lib\distutils\command\build.py", line 127, in run self.run_command(cmd_name)   file "c:\python27\lib\distutils\cmd.py", line 326, in run_command self.distribution.run_command(command)   file "c:\python27\lib\distutils\dist.py", line 971, in run_command cmd_obj.ensure_finalized()   file "c:\python27\lib\distutils\cmd.py", line 109, in ensure_finalized self.finalize_options()   file "c:\python27\lib\distutils\command\build_py.py", line 57, in finalize_options self.data_files = self.get_data_files()   file "c:\python27\lib\distutils\command\build_py.py", line 117, in get_data_files file[plen:] file in self.find_data_files(package, src_dir)   file "c:\python27\lib\distutils\command\build_py.py", line 129, in find_data_files filelist = glob(os.path.join(src_dir, convert_path(pattern)))   file "c:\python27\lib\ntpath.py", line 96, in join assert len(path) > 0 typeerror: object of type 'nonetype' has no len() 

could me solve or direct me version of flann can install?

  • extract zipped archive c:\flann-1.8.4-src\.
  • open cmd window administrator (right click > run administrator)

then following:

cd c:\flann-1.8.4-src\ mkdir build cd build cmake .. -g "nmake makefiles" nmake install 

the nmake install line should pyflann installed without needing call setup.py separately.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -