rpautrat / homography_est

Light-weight library to perform homography estimation with RANSAC from point, line or point-line correspondences
MIT License
40 stars 6 forks source link

cl : command line error D8021: Invalid numeric argument“/Werror” #3

Closed Zhang-CH0 closed 9 months ago

Zhang-CH0 commented 10 months ago

Obtaining file:///D:/projects/python/homography_est Preparing metadata (setup.py) ... done Installing collected packages: homography-est Running setup.py develop for homography-est error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [105 lines of output]
    running develop
    D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\command\develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)
    D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!
      self.initialize_options()
    running egg_info
    writing homography_est.egg-info\PKG-INFO
    writing dependency_links to homography_est.egg-info\dependency_links.txt
    writing top-level names to homography_est.egg-info\top_level.txt
    reading manifest file 'homography_est.egg-info\SOURCES.txt'
    adding license file 'LICENSE'
    writing manifest file 'homography_est.egg-info\SOURCES.txt'
    running build_ext
    D:\projects\python\homography_est\setup.py:31: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
    -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
    -- Found required Ceres dependency: Eigen version 3.4.0 in D:/projects/python/vcpkg/installed/x64-windows/share/eigen3
    -- Found Ceres version: 2.1.0 installed in: D:/projects/python/vcpkg/installed with components: [SchurSpecializations, Multithreading]
    CMake Deprecation Warning at pybind11/CMakeLists.txt:8 (cmake_minimum_required):
      Compatibility with CMake < 3.5 will be removed from a future version of
      CMake.

      Update the VERSION argument <min> value or use a ...<max> suffix to tell
      CMake that the project does not need compatibility with older versions.

    -- pybind11 v2.11.0 dev1
    CMake Warning (dev) at D:/projects/python/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
      Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
      are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
      the cmake_policy command to set the policy and suppress this warning.

    Call Stack (most recent call first):
      pybind11/tools/FindPythonLibsNew.cmake:98 (find_package)
      D:/projects/python/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
      pybind11/tools/pybind11Tools.cmake:50 (find_package)
      pybind11/tools/pybind11Common.cmake:180 (include)
      pybind11/CMakeLists.txt:208 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- Configuring done (1.0s)
    -- Generating done (0.3s)
    -- Build files have been written to: D:/projects/python/homography_est/build/temp.win-amd64-cpython-39/Release
    MSBuild version 17.6.3+07e294721 for .NET Framework

      1>Checking Build System
      Building Custom Rule D:/projects/python/homography_est/CMakeLists.txt
    cl : 命令行  error D8021: 无效的数值参数“/Werror” [D:\projects\python\homography_est\build\temp.win-amd64-cpython-39\Release\homography_est.vcxproj]
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "D:\projects\python\homography_est\setup.py", line 66, in <module>
        setup(
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\__init__.py", line 103, in setup
        return distutils.core.setup(**attrs)
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
        return run_commands(dist)
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
        dist.run_commands()
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\dist.py", line 989, in run_command
        super().run_command(command)
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
        cmd_obj.run()
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\command\develop.py", line 34, in run
        self.install_for_development()
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\command\develop.py", line 109, in install_for_development
        self.run_command('build_ext')
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
        self.distribution.run_command(command)
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\dist.py", line 989, in run_command
        super().run_command(command)
      File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
        cmd_obj.run()
      File "D:\projects\python\homography_est\setup.py", line 36, in run
        self.build_extension(ext)
      File "D:\projects\python\homography_est\setup.py", line 64, in build_extension
        subprocess.check_call(['cmake', '--build', '.', "--parallel {0}".format(N_CORES)] + build_args, cwd=self.build_temp)
      File "D:\Program Files\anaconda\envs\IMP\lib\subprocess.py", line 373, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--parallel 8', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
    ['cmake', 'D:\\projects\\python\\homography_est', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\\projects\\python\\homography_est', '-DPYTHON_EXECUTABLE=D:\\Program Files\\anaconda\\envs\\IMP\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=D:\\projects\\python\\homography_est', '-A', 'x64']
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [105 lines of output] running develop D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\command\develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running egg_info
writing homography_est.egg-info\PKG-INFO
writing dependency_links to homography_est.egg-info\dependency_links.txt
writing top-level names to homography_est.egg-info\top_level.txt
reading manifest file 'homography_est.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'homography_est.egg-info\SOURCES.txt'
running build_ext
D:\projects\python\homography_est\setup.py:31: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
-- Found required Ceres dependency: Eigen version 3.4.0 in D:/projects/python/vcpkg/installed/x64-windows/share/eigen3
-- Found Ceres version: 2.1.0 installed in: D:/projects/python/vcpkg/installed with components: [SchurSpecializations, Multithreading]
CMake Deprecation Warning at pybind11/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- pybind11 v2.11.0 dev1
CMake Warning (dev) at D:/projects/python/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  pybind11/tools/FindPythonLibsNew.cmake:98 (find_package)
  D:/projects/python/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
  pybind11/tools/pybind11Tools.cmake:50 (find_package)
  pybind11/tools/pybind11Common.cmake:180 (include)
  pybind11/CMakeLists.txt:208 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (1.0s)
-- Generating done (0.3s)
-- Build files have been written to: D:/projects/python/homography_est/build/temp.win-amd64-cpython-39/Release
MSBuild version 17.6.3+07e294721 for .NET Framework

  1>Checking Build System
  Building Custom Rule D:/projects/python/homography_est/CMakeLists.txt
cl : 命令行  error D8021: 无效的数值参数“/Werror” [D:\projects\python\homography_est\build\temp.win-amd64-cpython-39\Release\homography_est.vcxproj]
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "D:\projects\python\homography_est\setup.py", line 66, in <module>
    setup(
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
    return run_commands(dist)
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
    dist.run_commands()
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\dist.py", line 989, in run_command
    super().run_command(command)
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
    cmd_obj.run()
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\command\develop.py", line 34, in run
    self.install_for_development()
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\command\develop.py", line 109, in install_for_development
    self.run_command('build_ext')
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\dist.py", line 989, in run_command
    super().run_command(command)
  File "D:\Program Files\anaconda\envs\IMP\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
    cmd_obj.run()
  File "D:\projects\python\homography_est\setup.py", line 36, in run
    self.build_extension(ext)
  File "D:\projects\python\homography_est\setup.py", line 64, in build_extension
    subprocess.check_call(['cmake', '--build', '.', "--parallel {0}".format(N_CORES)] + build_args, cwd=self.build_temp)
  File "D:\Program Files\anaconda\envs\IMP\lib\subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--parallel 8', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
['cmake', 'D:\\projects\\python\\homography_est', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\\projects\\python\\homography_est', '-DPYTHON_EXECUTABLE=D:\\Program Files\\anaconda\\envs\\IMP\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=D:\\projects\\python\\homography_est', '-A', 'x64']
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

When I installed this model, I met this problem.