Closed uzibuxing closed 2 years ago
Are you on Windows? Pycolmap has pre-built wheels only for Linux and macOS. For Windows it needs to built from source: https://github.com/colmap/pycolmap#windows
Sorry to bother you!I have finished the steps. But I STILL have the problem DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default. pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555. Building wheels for collected packages: pycolmap Building wheel for pycolmap (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'D:\Anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py'"'"'; file='"'"'C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\18683\AppData\Local\Temp\pip-wheel-jbsetevw' cwd: C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\ Complete output (227 lines): running bdist_wheel running build running buildext -- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000. -- The C compiler identification is MSVC 19.29.30145.0 -- The CXX compiler identification is MSVC 19.29.30145.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: d:/vs2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: d:/vs2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- Found CXSparse: C:/dev/vcpkg/installed/x64-windows/include/suitesparse (found version "3.2.0") -- Looking for sgemm -- Looking for sgemm - not found -- Looking for sgemm -- Looking for sgemm - found -- Found BLAS: C:/dev/vcpkg/installed/x64-windows/debug/lib/openblas.lib -- Using VCPKG FindLAPACK from package 'lapack-reference' -- Looking for cheev -- Looking for cheev - not found -- Looking for cheev -- Looking for cheev - not found -- Looking for cheev -- Looking for cheev_ - found -- A library with LAPACK API found. -- Found required Ceres dependency: Eigen version 3.4.0 in C:/dev/vcpkg/installed/x64-windows/share/eigen3 -- Using VCPKG FindLAPACK from package 'lapack-reference' -- A library with LAPACK API found. -- Found Ceres version: 2.1.0 installed in: C:/dev/vcpkg/installed with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, Multithreading] CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES) C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES) C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) CMakeLists.txt:4 (find_package)
CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES) C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES) C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) CMakeLists.txt:4 (find_package)
CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES) C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES) C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) CMakeLists.txt:4 (find_package)
CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES) C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES) C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) CMakeLists.txt:4 (find_package)
-- Found Boost: C:/dev/vcpkg/installed/x64-windows/include (found version "1.79.0") found components: program_options filesystem system unit_test_framework -- Found Eigen3: C:/dev/vcpkg/installed/x64-windows/include/eigen3 (Required is at least version "2.91.0") -- Found Eigen -- Includes : C:/dev/vcpkg/installed/x64-windows/include/eigen3 -- Found FreeImage -- Includes : C:/dev/vcpkg/installed/x64-windows/include -- Libraries : C:/dev/vcpkg/installed/x64-windows/lib/FreeImage.lib -- Found Metis -- Includes : C:/dev/vcpkg/installed/x64-windows/include -- Libraries : C:/dev/vcpkg/installed/x64-windows/debug/lib/metis.lib -- Found Glog -- Includes : C:/dev/vcpkg/installed/x64-windows/include -- Libraries : C:/dev/vcpkg/installed/x64-windows/debug/lib/glog.lib -- Found OpenGL: opengl32 CMake Warning at C:/dev/vcpkg/installed/x64-windows/share/cgal/CGALConfig.cmake:92 (message): CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the default value of CGAL::data_file_path() Call Stack (most recent call first): C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:200 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) CMakeLists.txt:4 (find_package)
-- Visual Leak Detector (VLD) is not found. -- Using header-only CGAL -- Targetting Visual Studio 16 2019 -- Target build environment supports auto-linking -- Using VC toolset 142. -- Generator uses intermediate configuration directory: $(Configuration) -- Found GMP: debug;C:/dev/vcpkg/installed/x64-windows/debug/lib/gmp.lib;optimized;C:/dev/vcpkg/installed/x64-windows/debug/lib/gmp.lib -- Found MPFR: C:/dev/vcpkg/installed/x64-windows/debug/lib/mpfr.lib -- Found Boost: C:/dev/vcpkg/installed/x64-windows/include (found suitable version "1.79.0", minimum required is "1.48") -- Boost include dirs: C:/dev/vcpkg/installed/x64-windows/include -- Boost libraries: -- pybind11 v2.10.0 dev1 -- Found PythonInterp: D:/Anaconda3/python.exe (found suitable version "3.8.12", minimum required is "3.6") -- Found PythonLibs: D:/Anaconda3/libs/python38.lib -- Performing Test HAS_MSVC_GL_LTCG -- Performing Test HAS_MSVC_GL_LTCG - Failed Compiling bindings with CUDA support. -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:
VERSION_INFO
-- Build files have been written to: C:/Users/18683/AppData/Local/Temp/pip-req-build-8vsommtl/build/temp.win-amd64-3.8/Release 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642 版权所有(C) Microsoft Corporation。保留所有权利。
ERROR: Failed building wheel for pycolmap Running setup.py clean for pycolmap Failed to build pycolmap Installing collected packages: pycolmap Running setup.py install for pycolmap ... error ERROR: Command errored out with exit status 1: command: 'D:\Anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py'"'"'; file='"'"'C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\18683\AppData\Local\Temp\pip-record-ru8btv4i\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda3\Include\pycolmap' cwd: C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\ Complete output (229 lines): running install running build running buildext -- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000. -- The C compiler identification is MSVC 19.29.30145.0 -- The CXX compiler identification is MSVC 19.29.30145.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: d:/vs2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: d:/vs2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- Found CXSparse: C:/dev/vcpkg/installed/x64-windows/include/suitesparse (found version "3.2.0") -- Looking for sgemm -- Looking for sgemm - not found -- Looking for sgemm -- Looking for sgemm - found -- Found BLAS: C:/dev/vcpkg/installed/x64-windows/debug/lib/openblas.lib -- Using VCPKG FindLAPACK from package 'lapack-reference' -- Looking for cheev -- Looking for cheev - not found -- Looking for cheev -- Looking for cheev - not found -- Looking for cheev -- Looking for cheev_ - found -- A library with LAPACK API found. -- Found required Ceres dependency: Eigen version 3.4.0 in C:/dev/vcpkg/installed/x64-windows/share/eigen3 -- Using VCPKG FindLAPACK from package 'lapack-reference' -- A library with LAPACK API found. -- Found Ceres version: 2.1.0 installed in: C:/dev/vcpkg/installed with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, Multithreading] CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES) C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES) C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package) CMakeLists.txt:4 (find_package)
CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include)
C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
CMakeLists.txt:4 (find_package)
CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include)
C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
CMakeLists.txt:4 (find_package)
CMake Warning at C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:778 (include)
C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:94 (find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
CMakeLists.txt:4 (find_package)
-- Found Boost: C:/dev/vcpkg/installed/x64-windows/include (found version "1.79.0") found components: program_options filesystem system unit_test_framework
-- Found Eigen3: C:/dev/vcpkg/installed/x64-windows/include/eigen3 (Required is at least version "2.91.0")
-- Found Eigen
-- Includes : C:/dev/vcpkg/installed/x64-windows/include/eigen3
-- Found FreeImage
-- Includes : C:/dev/vcpkg/installed/x64-windows/include
-- Libraries : C:/dev/vcpkg/installed/x64-windows/lib/FreeImage.lib
-- Found Metis
-- Includes : C:/dev/vcpkg/installed/x64-windows/include
-- Libraries : C:/dev/vcpkg/installed/x64-windows/debug/lib/metis.lib
-- Found Glog
-- Includes : C:/dev/vcpkg/installed/x64-windows/include
-- Libraries : C:/dev/vcpkg/installed/x64-windows/debug/lib/glog.lib
-- Found OpenGL: opengl32
CMake Warning at C:/dev/vcpkg/installed/x64-windows/share/cgal/CGALConfig.cmake:92 (message):
CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the
default value of CGAL::data_file_path()
Call Stack (most recent call first):
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:200 (find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
CMakeLists.txt:4 (find_package)
-- Visual Leak Detector (VLD) is not found.
-- Using header-only CGAL
-- Targetting Visual Studio 16 2019
-- Target build environment supports auto-linking
-- Using VC toolset 142.
-- Generator uses intermediate configuration directory: $(Configuration)
-- Found GMP: debug;C:/dev/vcpkg/installed/x64-windows/debug/lib/gmp.lib;optimized;C:/dev/vcpkg/installed/x64-windows/debug/lib/gmp.lib
-- Found MPFR: C:/dev/vcpkg/installed/x64-windows/debug/lib/mpfr.lib
-- Found Boost: C:/dev/vcpkg/installed/x64-windows/include (found suitable version "1.79.0", minimum required is "1.48")
-- Boost include dirs: C:/dev/vcpkg/installed/x64-windows/include
-- Boost libraries:
-- pybind11 v2.10.0 dev1
-- Found PythonInterp: D:/Anaconda3/python.exe (found suitable version "3.8.12", minimum required is "3.6")
-- Found PythonLibs: D:/Anaconda3/libs/python38.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Failed
Compiling bindings with CUDA support.
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
VERSION_INFO
-- Build files have been written to: C:/Users/18683/AppData/Local/Temp/pip-req-build-8vsommtl/build/temp.win-amd64-3.8/Release
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642
版权所有(C) Microsoft Corporation。保留所有权利。
d:\vs2019\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: 中间目录或输出目录无法驻留在临时目录下,因为这可能会导致增量生成出现问题。 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\ZERO_CHECK.vcxproj]
Checking Build System
d:\vs2019\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: 中间目录或输出目录无法驻留在临时目录下,因为这可能会导致增量生成出现问题。 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
Building Custom Rule C:/Users/18683/AppData/Local/Temp/pip-req-build-8vsommtl/CMakeLists.txt
cl : 命令行 warning D9002: 忽略未知选项“-std=c++14” [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
main.cc
C:\dev\vcpkg\installed\x64-windows\include\Eigen\src/Core/arch/Default/Half.h(1,1): warning C4819: 该文件包含不能在 当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\include\Eigen\src/Core/arch/Default/BFloat16.h(1,1): warning C4819: 该文件包含不 能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\include\Eigen\src/Core/arch/Default/GenericPacketMathFunctions.h(676,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(164,52): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(184,50): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(211,54): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(234,21): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(259,48): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(288,35): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(299): message : 查看对 正在编译的 类 模板 实例化“ceres::LineParameterization<AmbientSpaceDimension>”的引用 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(316,51): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/local_parameterization.h(357,31): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/autodiff_local_parameterization.h(114,44): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/autodiff_local_parameterization.h(154): message : 查看对正在编译的 类 模板 实例化“ceres::AutoDiffLocalParameterization<Functor,kGlobalSize,kLocalSize>”的引用 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_checker.h(90,31): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem.h(113,19): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem.h(159,9): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem.h(169,3): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem.h(176,19): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem.h(160,12): warning C4996: 'ceres::GradientProblem::parameterization_': [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem.h(170,12): warning C4996: 'ceres::GradientProblem::parameterization_': [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem_solver.h(255,37): warning C4251: “ceres::GradientProblemSolver::Options::callbacks”: class“std::vector<ceres::IterationCallback *,std::allocator<ceres::IterationCallback *>>”需要有 dll 接口由 struct“ceres::GradientProblemSolver::Options”的客户端使用 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem_solver.h(255): message : 参见“std::vector<ceres::IterationCallback *,std::allocator<ceres::IterationCallback *>>”的声明 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem_solver.h(273,17): warning C4251: “ceres::GradientProblemSolver::Summary::message”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 struct“ceres::GradientProblemSolver::Summary”的客户端使用 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
d:\vs2019\VC\Tools\MSVC\14.29.30133\include\xstring(4871): message : 参见“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”的声明 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem_solver.h(284,35): warning C4251: “ceres::GradientProblemSolver::Summary::iterations”: class“std::vector<ceres::IterationSummary,std::allocator<ceres::IterationSummary>>”需要有 dll 接口由 struct“ceres::GradientProblemSolver::Summary”的客户端使用 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/gradient_problem_solver.h(284): message : 参见“std::vector<ceres::IterationSummary,std::allocator<ceres::IterationSummary>>”的声明 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/problem.h(304,26): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/problem.h(396,28): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\ceres/problem.h(414,9): warning C4996: 'ceres::LocalParameterization': LocalParameterizations will be removed from the Ceres Solver API in version 2.2.0. Use Manifolds instead. [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\estimators/absolute_pose.cc(52,10): error C2660: “colmap::RefineAbsolutePose”: 函数不接受 8 个参数 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\colmap/estimators/pose.h(164,6): message : 参见“colmap::RefineAbsolutePose”的声明 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\estimators/generalized_absolute_pose.cc(195,10): error C3861: “RefineGeneralizedAbsolutePose”: 找不到标识符 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap\..\..\include\FreeImage.h(1,1): warning C4819: 该文件包含不能在当前 代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\sift.cc(159,50): warning C4244: “参数”: 从“Eigen::EigenBase<Derived>::Index”转换到“int”,可能丢失数据 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
with
[
Derived=Eigen::Ref<const Eigen::Matrix<float,-1,-1,1,-1,-1>,0,Eigen::OuterStride<-1>>
]
C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\sift.cc(158,50): warning C4244: “参数”: 从“Eigen::EigenBase<Derived>::Index”转换到“int”,可能丢失数据 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
with
[
Derived=Eigen::Ref<const Eigen::Matrix<float,-1,-1,1,-1,-1>,0,Eigen::OuterStride<-1>>
]
C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\sift.cc(221,55): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\pipeline/sfm.cc(3,10): fatal error C1083: 无法打开包括文件: “colmap/exe/sfm.h”: No such file or directory [C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\build\temp.win-amd64-3.8\Release\pycolmap.vcxproj]
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py", line 80, in <module>
setup(
File "D:\Anaconda3\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "D:\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "D:\Anaconda3\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "D:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py", line 34, in run
self.build_extension(ext)
File "C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py", line 77, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "D:\Anaconda3\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
['cmake', 'C:\\Users\\18683\\AppData\\Local\\Temp\\pip-req-build-8vsommtl', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\18683\\AppData\\Local\\Temp\\pip-req-build-8vsommtl\\build\\lib.win-amd64-3.8', '-DPYTHON_EXECUTABLE=D:\\Anaconda3\\python.exe', '-DVERSION_INFO=0.2.0', '-DCMAKE_TOOLCHAIN_FILE=C:\\dev\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\18683\\AppData\\Local\\Temp\\pip-req-build-8vsommtl\\build\\lib.win-amd64-3.8', '-DVCPKG_TARGET_TRIPLET=x64-windows', '-A', 'x64']
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\Anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py'"'"'; file='"'"'C:\Users\18683\AppData\Local\Temp\pip-req-build-8vsommtl\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\18683\AppData\Local\Temp\pip-record-ru8btv4i\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda3\Include\pycolmap' Check the logs for full command output.
I think the core error is ERROR: Failed building wheel for pycolmap
I think the core error is ERROR: Failed building wheel for pycolmap
I tried to install old version accidentally and successed. Error occured like yours when I followed the steps. Finally I move to linux. So sad
Thanks for your reply. Could I run the pycolmap and colmap in my virtual Ubuntu?
Dear author: When I install this code follow you steps but error occured
ERROR: Could not find a version that satisfies the requirement pycolmap (from hloc) (from versions: none) ERROR: No matching distribution found for pycolmap