Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake install script fails on Windows #488

Open
iAnyKey opened this issue Apr 1, 2022 · 0 comments
Open

cmake install script fails on Windows #488

iAnyKey opened this issue Apr 1, 2022 · 0 comments

Comments

@iAnyKey
Copy link

iAnyKey commented Apr 1, 2022

Installation fails on build_py.

how to reproduce

  1. configure and build flann in release
  2. from elevated terminal issue cmake --install .

results in

-- Install configuration: "Release"
-- Up-to-date: C:/Program Files (x86)/flann/lib/cmake/flann/flann-config.cmake
-- Up-to-date: C:/Program Files (x86)/flann/lib/cmake/flann/flann-config-version.cmake
-- Up-to-date: C:/Program Files (x86)/flann/lib/cmake/flann/flann-targets.cmake
-- Up-to-date: C:/Program Files (x86)/flann/lib/cmake/flann/flann-targets-release.cmake
-- Up-to-date: C:/Program Files (x86)/flann/bin/msvcp140.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/msvcp140_1.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/msvcp140_2.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/msvcp140_atomic_wait.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/msvcp140_codecvt_ids.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/vcruntime140_1.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/vcruntime140.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin/concrt140.dll
-- Up-to-date: C:/Program Files (x86)/flann/bin
-- Up-to-date: C:/Program Files (x86)/flann/lib/pkgconfig/flann.pc
-- Up-to-date: C:/Program Files (x86)/flann/lib/flann_cpp.lib
-- Up-to-date: C:/Program Files (x86)/flann/bin/flann_cpp.dll
-- Up-to-date: C:/Program Files (x86)/flann/lib/flann_cpp_s.lib
-- Up-to-date: C:/Program Files (x86)/flann/lib/flann.lib
-- Up-to-date: C:/Program Files (x86)/flann/bin/flann.dll
-- Up-to-date: C:/Program Files (x86)/flann/lib/flann_s.lib
-- Up-to-date: C:/Program Files (x86)/flann/include/flann
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/all_indices.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/autotuned_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/center_chooser.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/composite_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/dist.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/hierarchical_clustering_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/kdtree_cuda_3d_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/kdtree_cuda_builder.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/kdtree_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/kdtree_single_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/kmeans_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/linear_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/lsh_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/algorithms/nn_index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/config.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/defines.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/flann.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/flann.hpp
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/general.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/io
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/io/hdf5.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/mpi
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/mpi/client.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/mpi/index.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/mpi/matrix.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/mpi/queries.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/mpi/server.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/nn
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/nn/ground_truth.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/nn/index_testing.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/nn/simplex_downhill.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/allocator.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/any.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/cuda
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/cuda/heap.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/cuda/result_set.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/cutil_math.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/dynamic_bitset.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/heap.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/logger.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/lsh_table.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/matrix.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/object_factory.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/params.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/random.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/result_set.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/sampling.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/saving.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/serialization.h
-- Up-to-date: C:/Program Files (x86)/flann/include/flann/util/timer.h
-- Up-to-date: C:/Program Files (x86)/flann/share/flann/python/pyflann
-- Up-to-date: C:/Program Files (x86)/flann/share/flann/python/pyflann/exceptions.py
-- Up-to-date: C:/Program Files (x86)/flann/share/flann/python/pyflann/flann_ctypes.py
-- Up-to-date: C:/Program Files (x86)/flann/share/flann/python/pyflann/index.py
-- Up-to-date: C:/Program Files (x86)/flann/share/flann/python/pyflann/__init__.py
-- Installing: C:/Program Files (x86)/flann/share/flann/python/setup.py
running install
running bdist_egg
running egg_info
writing flann.egg-info\PKG-INFO
writing dependency_links to flann.egg-info\dependency_links.txt
writing top-level names to flann.egg-info\top_level.txt
Traceback (most recent call last):
  File "C:\flann\build\src\python\setup.py", line 18, in <module>
    setup(name='flann',
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py", line 67, in run
    self.do_egg_install()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
    self.run_command('bdist_egg')
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\bdist_egg.py", line 155, in run
    self.run_command("egg_info")
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 299, in run
    self.find_sources()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 306, in find_sources
    mm.run()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 541, in run
    self.add_defaults()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 578, in add_defaults
    sdist.add_defaults(self)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\command\sdist.py", line 226, in add_defaults
    self._add_defaults_python()
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\sdist.py", line 108, in _add_defaults_python
    self.filelist.extend(build_py.get_source_files())
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_py.py", line 301, in get_source_files
    return [module[-1] for module in self.find_all_modules()]
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_py.py", line 295, in find_all_modules
    package_dir = self.get_package_dir(package)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\build_py.py", line 174, in get_package_dir
    res = orig.build_py.get_package_dir(self, package)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_py.py", line 165, in get_package_dir
    return os.path.join(*tail)
  File "C:\Users\_\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 78, in join
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType
-- Up-to-date: C:/Program Files (x86)/flann/bin/flann_example_c.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant