Closed jonaselmesten closed 3 years ago
Hello. I never managed to get this working under Windows so I sadly cannot help - I am mostly using Ubuntu / WSL. Leaving the issue open, maybe someone else can lend a hand.
Same problem here with Windows10. Seems like sourcedir in setup.py is not right.
Hello. I never managed to get this working under Windows so I sadly cannot help - I am mostly using Ubuntu / WSL. Leaving the issue open, maybe someone else can lend a hand.
Yeah, I tried with ubuntu and now it worked after some minor changes.
It feels like I've tried everything, could someone help me?
ERROR: Command errored out with exit status 1: command: 'C:\Users\Jonas\anaconda3\envs\cuda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users \Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\setup.py'"'"'; file='"'"'C:\Users\Jonas\AppData\Local\Temp\pip-req -build-8apctr4e\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"' "');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Jonas\AppData\Local\Temp\pip-record-zmi5_s1 6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Jonas\anaconda3\envs\cuda\Include\p ycolmap' cwd: C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\ Complete output (220 lines): running install running build running build_ext ['cmake', 'C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Jonas\ \AppData\Local\Temp\pip-req-build-8apctr4e\build\lib.win-amd64-3.6', '-DPYTHON_EXECUTABLE=C:\Users\Jonas\anaconda3\envs\c uda\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORYRELEASE=C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\ lib.win-amd64-3.6', '-A', 'x64'] -- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042. -- The C compiler identification is MSVC 19.28.29913.0 -- The CXX compiler identification is MSVC 19.28.29913.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Ho stx64/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: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/ Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Boost: C:/dev/vcpkg/installed/x64-windows/include (found version "1.75.0") -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- Found required Ceres dependency: Eigen version 3.3.9 in C:/dev/vcpkg/installed/x64-windows/include/eigen3 -- Looking for sgemm -- Looking for sgemm_ - found -- Found BLAS: BLASLIBRARIES-PLACEHOLDER-FOR-EMPTY-LIBRARIES -- Looking for cheev -- Looking for cheev_ - found -- A library with LAPACK API found. -- Found Ceres version: 2.0.0 installed in: C:/dev/vcpkg/installed/x64-windows/share with components: [LAPACK, SuiteSparse, Spa rseLinearAlgebraLibrary, SchurSpecializations, Multithreading] CMake Warning at C:/Users/Jonas/anaconda3/envs/cuda/Library/share/cmake-3.18/Modules/FindBoost.cmake:1187 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): C:/Users/Jonas/anaconda3/envs/cuda/Library/share/cmake-3.18/Modules/FindBoost.cmake:1311 (_Boost_COMPONENT_DEPENDENCIES) C:/Users/Jonas/anaconda3/envs/cuda/Library/share/cmake-3.18/Modules/FindBoost.cmake:1919 (_Boost_MISSING_DEPENDENCIES) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:828 (_find_package) C:/dev/vcpkg/installed/x64-windows/share/colmap/COLMAPConfig.cmake:91 (find_package) C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:861 (_find_package) CMakeLists.txt:9 (find_package)
m regex 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 Glog -- Includes : C:/dev/vcpkg/installed/x64-windows/include -- Libraries : C:/dev/vcpkg/installed/x64-windows/debug/lib/glog.lib -- Found OpenGL: opengl32 -- Visual Leak Detector (VLD) is not found. -- Using header-only CGAL -- Targetting Visual Studio 16 2019 -- Target build enviroment supports auto-linking -- Using VC toolset 142. -- Generator uses intermediate configuration directory: $(Configuration) -- Found GMP: C:/dev/vcpkg/installed/x64-windows/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.75.0", minimum required is "1.48") -- Boost include dirs: C:/dev/vcpkg/installed/x64-windows/include -- Boost libraries: -- Found PythonInterp: C:/Users/Jonas/anaconda3/envs/cuda/python.exe (found version "3.6.13") -- Found PythonLibs: C:/Users/Jonas/anaconda3/envs/cuda/libs/Python36.lib -- pybind11 v2.5.dev1 -- Performing Test HAS_MSVC_GL_LTCG -- Performing Test HAS_MSVC_GL_LTCG - Failed -- LTO disabled (not supported by the compiler and/or linker) -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Jonas/AppData/Local/Temp/pip-req-build-8apctr4e/build/temp.win-amd64-3.6/Release Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.
ing MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\ZERO_CHECK.vcxpr oj] Checking Build System C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(523,5): warn ing MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj ] Building Custom Rule C:/Users/Jonas/AppData/Local/Temp/pip-req-build-8apctr4e/CMakeLists.txt cl : command line warning D9002: ignoring unknown option '-std=c++11' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e \build\temp.win-amd64-3.6\Release\pycolmap.vcxproj] main.cc C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(87,21): warning C4251: 'ceres::GradientC hecker::ProbeResults::residuals': class 'Eigen::Matrix<double,-1,1,0,-1,1>' needs to have dll-interface to be used by clients of st ruct 'ceres::GradientChecker::ProbeResults' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Rele ase\pycolmap.vcxproj] C:\dev\vcpkg\installed\x64-windows\include\Eigen\src/Core/Matrix.h(449): message : see declaration of 'Eigen::Matrix<double,-1, 1,0,-1,1>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj] C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(97,34): warning C4251: 'ceres::GradientC hecker::ProbeResults::jacobians': class 'std::vector<ceres::Matrix,std::allocator>' needs to have dll-interface to b
e used by clients of struct 'ceres::GradientChecker::ProbeResults' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\
temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(97): message : see declaration of 'std::
vector<ceres::Matrix,std::allocator>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64
-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(100,40): warning C4251: 'ceres::Gradient
Checker::ProbeResults::local_jacobians': class 'std::vector<ceres::Matrix,std::allocator>' needs to have dll-interfa
ce to be used by clients of struct 'ceres::GradientChecker::ProbeResults' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e
\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(97): message : see declaration of 'std::
vector<ceres::Matrix,std::allocator>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64
-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(103,42): warning C4251: 'ceres::Gradient
Checker::ProbeResults::numeric_jacobians': class 'std::vector<ceres::Matrix,std::allocator>' needs to have dll-inter
face to be used by clients of struct 'ceres::GradientChecker::ProbeResults' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr
4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(97): message : see declaration of 'std::
vector<ceres::Matrix,std::allocator>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64
-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(106,48): warning C4251: 'ceres::Gradient
Checker::ProbeResults::local_numeric_jacobians': class 'std::vector<ceres::Matrix,std::allocator>' needs to have dll
-interface to be used by clients of struct 'ceres::GradientChecker::ProbeResults' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-
8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(97): message : see declaration of 'std::
vector<ceres::Matrix,std::allocator>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64
-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(113,26): warning C4251: 'ceres::Gradient
Checker::ProbeResults::error_log': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-in
terface to be used by clients of struct 'ceres::GradientChecker::ProbeResults' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8ap
ctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xstring(4648): message : see de
claration of 'std::basic_string<char,std::char_traits,std::allocator>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build
-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(143,69): warning C4251: 'ceres::Gradient
Checker::localparameterizations': class 'std::vector<const ceres::LocalParameterization ,std::allocator<const ceres::LocalParame
terization >>' needs to have dll-interface to be used by clients of class 'ceres::GradientChecker' [C:\Users\Jonas\AppData\Local\T
emp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(78): message : see declaration of 'std::
vector<const ceres::LocalParameterization ,std::allocator<const ceres::LocalParameterization >>' [C:\Users\Jonas\AppData\Local\Te
mp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_checker.h(145,59): warning C4251: 'ceres::Gradient
Checker::finite_diff_costfunction': class 'std::unique_ptr<ceres::CostFunction,std::default_delete>' needs t
o have dll-interface to be used by clients of class 'ceres::GradientChecker' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apct
r4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/conditioned_cost_function.h(92): message : see declaration
of 'std::unique_ptr<ceres::CostFunction,std::default_delete>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build
-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradientproblem.h(109,48): warning C4251: 'ceres::Gradient
Problem::function': class 'std::unique_ptr<ceres::FirstOrderFunction,std::default_delete>' needs to hav
e dll-interface to be used by clients of class 'ceres::GradientProblem' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\b
uild\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_problem.h(109): message : see declaration of 'std:
:unique_ptr<ceres::FirstOrderFunction,std::default_delete>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-b
uild-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradientproblem.h(110,59): warning C4251: 'ceres::Gradient
Problem::parameterization': class 'std::unique_ptr<ceres::LocalParameterization,std::default_delete>
' needs to have dll-interface to be used by clients of class 'ceres::GradientProblem' [C:\Users\Jonas\AppData\Local\Temp\pip-req-bu
ild-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/local_parameterization.h(351): message : see declaration of
'std::unique_ptr<ceres::LocalParameterization,std::default_delete>' [C:\Users\Jonas\AppData\Local\Te
mp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradientproblem.h(111,37): warning C4251: 'ceres::Gradient
Problem::scratch': class 'std::unique_ptr<double [],std::default_delete<double []>>' needs to have dll-interface to be used by cli
ents of class 'ceres::GradientProblem' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd64-3.6\Release\p
ycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_problem.h(111): message : see declaration of 'std:
:unique_ptr<double [],std::default_delete<double []>>' [C:\Users\Jonas\AppData\Local\Temp\pip-req-build-8apctr4e\build\temp.win-amd
64-3.6\Release\pycolmap.vcxproj]
C:\dev\vcpkg\installed\x64-windows\share\colmap....\include\ceres/gradient_problem_solver.h(254,46): warning C4251: 'ceres::G
radientProblemSolver::Options::callbacks': class 'std::vector<ceres::IterationCallback ,std::allocator<ceres::IterationCallback >