報錯信息

 

(base) ➜ DeepLSD git:(main) ✗ pip install -e line_refinement
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///home/featurize/DeepLSD/line_refinement
Preparing metadata (setup.py) ... done
Installing collected packages: line-refinement
Running setup.py develop for line-refinement
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [290 lines of output]
running develop
/environment/miniconda3/lib/python3.10/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, pypa/build or
other standards-based tools.

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

!!
easy_install.initialize_options(self)
/environment/miniconda3/lib/python3.10/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, pypa/build 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 line_refinement.egg-info/PKG-INFO
writing dependency_links to line_refinement.egg-info/dependency_links.txt
writing top-level names to line_refinement.egg-info/top_level.txt
reading manifest file 'line_refinement.egg-info/SOURCES.txt'
writing manifest file 'line_refinement.egg-info/SOURCES.txt'
running build_ext
-- Found installed version of Eigen: /usr/local/share/eigen3/cmake
-- Found required Ceres dependency: Eigen version 3.4.0 in /usr/local/include/eigen3
-- Found installed version of glog: /usr/local/lib/cmake/glog
-- Detected glog version: 0.7.0
-- Found required Ceres dependency: glog
-- Found installed version of gflags: /usr/local/lib/cmake/gflags
-- Detected gflags version: 2.2.2
-- Found required Ceres dependency: gflags
-- Found Ceres version: 1.14.0 installed in: /usr/local with components: [EigenSparse, SparseLinearAlgebraLibrary, SchurSpecializations, OpenMP, Multithreading]
-- pybind11 v2.12.0 dev1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/featurize/DeepLSD/line_refinement/build/temp.linux-x86_64-cpython-310
[ 50%] Building CXX object CMakeFiles/line_refinement.dir/line_vp_optim.cpp.o
In file included from /usr/include/opencv4/opencv2/calib3d.hpp:49,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_epnp_lm.h:40,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:51,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/usr/include/opencv4/opencv2/core/affine.hpp: In member function ‘cv::Affine3<T>::Vec3 cv::Affine3<T>::rvec() const’:
/usr/include/opencv4/opencv2/core/affine.hpp:502:26: error: call of overloaded ‘acos(double&)’ is ambiguous
502 | double theta = acos(c);
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cmath:41,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:5:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:53:1: note: candidate: ‘double acos(double)’
53 | __MATHCALL (acos,, (_Mdouble_ __x));
| ^~~~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:5:
/usr/include/c++/9/cmath:91:3: note: candidate: ‘constexpr long double std::acos(long double)’
91 | acos(long double __x)
| ^~~~
/usr/include/c++/9/cmath:87:3: note: candidate: ‘constexpr float std::acos(float)’
87 | acos(float __x)
| ^~~~
In file included from /usr/local/include/ceres/internal/autodiff.h:145,
from /usr/local/include/ceres/autodiff_cost_function.h:132,
from /usr/local/include/ceres/ceres.h:37,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:16:
/usr/local/include/ceres/jet.h:436:15: note: candidate: ‘double ceres::acos(double)’
436 | inline double acos (double x) { return std::acos(x); }
| ^~~~
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:58,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_5pc.h: In static member function ‘static constexpr char* gcransac::estimator::solver::RadialHomography5PC::getName()’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_5pc.h:82:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
82 | return "H5l1l2";
| ^~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:59,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_6pc.h: In static member function ‘static constexpr char* gcransac::estimator::solver::RadialHomography6PC::getName()’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_6pc.h:74:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
74 | return "H6l1l2";
| ^~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:16,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h: In member function ‘virtual const std::vector<double>& gcransac::neighborhood::FlannNeighborhoodGraph::getCellSizes() const’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h:86:66: warning: returning reference to temporary [-Wreturn-local-addr]
86 | const std::vector<double> &getCellSizes() const { return std::vector<double>(); }
| ^~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h: In member function ‘virtual const std::unordered_map<long unsigned int, std::pair<std::vector<long unsigned int>, std::vector<long unsigned int> > >& gcransac::neighborhood::FlannNeighborhoodGraph::getCells() const’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h:90:17: warning: returning reference to temporary [-Wreturn-local-addr]
90 | return std::unordered_map<size_t, std::pair<std::vector<size_t>, std::vector<size_t>>>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findHomographies_(std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const size_t&, const size_t&, const size_t&, const size_t&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:231:6: warning: narrowing conversion of ‘(size_t)source_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
231 | { source_image_width, // The width of the source image
| ^~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:231:6: warning: narrowing conversion of ‘source_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:232:5: warning: narrowing conversion of ‘(size_t)source_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
232 | source_image_height, // The height of the source image
| ^~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:232:5: warning: narrowing conversion of ‘source_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:233:5: warning: narrowing conversion of ‘(size_t)destination_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
233 | destination_image_width, // The width of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:233:5: warning: narrowing conversion of ‘destination_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:234:5: warning: narrowing conversion of ‘(size_t)destination_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
234 | destination_image_height }, // The height of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:234:5: warning: narrowing conversion of ‘destination_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:242:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
242 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
243 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findPlanes_(std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:357:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
357 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
358 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findVanishingPoints_(std::vector<double>&, std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const size_t&, const size_t&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:473:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
473 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
474 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findTwoViewMotions_(std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const size_t&, const size_t&, const size_t&, const size_t&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:594:6: warning: narrowing conversion of ‘(size_t)source_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
594 | { source_image_width, // The width of the source image
| ^~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:594:6: warning: narrowing conversion of ‘source_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:595:5: warning: narrowing conversion of ‘(size_t)source_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
595 | source_image_height, // The height of the source image
| ^~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:595:5: warning: narrowing conversion of ‘source_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:596:5: warning: narrowing conversion of ‘(size_t)destination_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
596 | destination_image_width, // The width of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:596:5: warning: narrowing conversion of ‘destination_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:597:5: warning: narrowing conversion of ‘(size_t)destination_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
597 | destination_image_height }, // The height of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:597:5: warning: narrowing conversion of ‘destination_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:605:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
605 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
606 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:21,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h: In instantiation of ‘bool gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::initialize(const cv::Mat*) [with long unsigned int _DimensionNumber = 4]’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:95:19: required from ‘gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::ProgressiveNapsacSampler(const cv::Mat*, std::vector<long unsigned int>, size_t, const std::vector<double>&, double) [with long unsigned int _DimensionNumber = 4; size_t = long unsigned int]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:235:7: required from here
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:155:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type’ {aka ‘long unsigned int’} [-Wformat=]
155 | fprintf(stderr, "%d ", layer_data[layer_idx]);
| ~^
| |
| int
| %ld
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:156:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type’ {aka ‘long unsigned int’} [-Wformat=]
156 | fprintf(stderr, "%d\"\n", layer_data.back());
| ~^
| |
| int
| %ld
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/fundamental_estimator.h:49,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:39,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/../neighborhood/grid_neighborhood_graph.h: In instantiation of ‘gcransac::neighborhood::GridNeighborhoodGraph<_DimensionNumber>::GridNeighborhoodGraph(const cv::Mat*, const std::vector<double>&, const size_t&) [with long unsigned int _DimensionNumber = 4; size_t = long unsigned int]’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:166:44: required from ‘bool gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::initialize(const cv::Mat*) [with long unsigned int _DimensionNumber = 4]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:95:19: required from ‘gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::ProgressiveNapsacSampler(const cv::Mat*, std::vector<long unsigned int>, size_t, const std::vector<double>&, double) [with long unsigned int _DimensionNumber = 4; size_t = long unsigned int]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:235:7: required from here
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/../neighborhood/grid_neighborhood_graph.h:174:92: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
174 | fprintf(stderr, "The data dimension (%d) does not match with the expected dimension (%d).\n",
| ~^
| |
| int
| %ld
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:43,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h: In instantiation of ‘double gcransac::estimator::PerspectiveNPointEstimator<_MinimalSolverEngine, _NonMinimalSolverEngine>::squaredResidual(const cv::Mat&, const MatrixXd&) const [with _MinimalSolverEngine = gcransac::estimator::solver::P3PSolver; _NonMinimalSolverEngine = gcransac::estimator::solver::EPnPLM; Eigen::MatrixXd = Eigen::Matrix<double, -1, -1>]’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h:165:53: required from ‘double gcransac::estimator::PerspectiveNPointEstimator<_MinimalSolverEngine, _NonMinimalSolverEngine>::squaredResidual(const cv::Mat&, const Model&) const [with _MinimalSolverEngine = gcransac::estimator::solver::P3PSolver; _NonMinimalSolverEngine = gcransac::estimator::solver::EPnPLM; gcransac::estimator::Estimator<cv::Mat, gcransac::Model>::Model = gcransac::Model]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/include/progressive_x.h:615:22: required from ‘void progx::ProgressiveX<_NeighborhoodGraph, _ModelEstimator, _MainSampler, _LocalOptimizerSampler>::updateCompoundModel(const cv::Mat&) [with _NeighborhoodGraph = gcransac::neighborhood::FlannNeighborhoodGraph; _ModelEstimator = gcransac::estimator::PerspectiveNPointEstimator<gcransac::estimator::solver::P3PSolver, gcransac::estimator::solver::EPnPLM>; _MainSampler = gcransac::sampler::UniformSampler; _LocalOptimizerSampler = gcransac::sampler::UniformSampler]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/include/progressive_x.h:423:4: required from ‘void progx::ProgressiveX<_NeighborhoodGraph, _ModelEstimator, _MainSampler, _LocalOptimizerSampler>::run(const cv::Mat&, const _NeighborhoodGraph&, _MainSampler&, _LocalOptimizerSampler&) [with _NeighborhoodGraph = gcransac::neighborhood::FlannNeighborhoodGraph; _ModelEstimator = gcransac::estimator::PerspectiveNPointEstimator<gcransac::estimator::solver::P3PSolver, gcransac::estimator::solver::EPnPLM>; _MainSampler = gcransac::sampler::UniformSampler; _LocalOptimizerSampler = gcransac::sampler::UniformSampler]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:146:29: required from here
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h:174:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Eigen::Index’ {aka ‘long int’} [-Wformat=]
174 | "The size of the matrix should be 3*4 instead of %d*%d.\n",
| ~^
| |
| int
| %ld
175 | descriptor_.rows(), descriptor_.cols());
| ~~~~~~~~~~~~~~~~~~
| |
| Eigen::Index {aka long int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h:174:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Eigen::Index’ {aka ‘long int’} [-Wformat=]
174 | "The size of the matrix should be 3*4 instead of %d*%d.\n",
| ~^
| |
| int
| %ld
175 | descriptor_.rows(), descriptor_.cols());
| ~~~~~~~~~~~~~~~~~~
| |
| Eigen::Index {aka long int}
make[2]: *** [CMakeFiles/line_refinement.dir/build.make:76: CMakeFiles/line_refinement.dir/line_vp_optim.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/line_refinement.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/featurize/DeepLSD/line_refinement/setup.py", line 68, in <module>
setup(
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/command/develop.py", line 115, in install_for_development
self.run_command('build_ext')
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/featurize/DeepLSD/line_refinement/setup.py", line 36, in run
self.build_extension(ext)
File "/home/featurize/DeepLSD/line_refinement/setup.py", line 66, in build_extension
subprocess.check_call(['cmake', '--build', '.', "--parallel {0}".format(N_CORES)] + build_args, cwd=self.build_temp)
File "/environment/miniconda3/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--parallel 8', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
['cmake', '/home/featurize/DeepLSD/line_refinement', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/featurize/DeepLSD/line_refinement', '-DPYTHON_EXECUTABLE=/environment/miniconda3/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX=~/.local/']
[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
╰─> [290 lines of output]
running develop
/environment/miniconda3/lib/python3.10/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, pypa/build or
other standards-based tools.

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

!!
easy_install.initialize_options(self)
/environment/miniconda3/lib/python3.10/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, pypa/build 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 line_refinement.egg-info/PKG-INFO
writing dependency_links to line_refinement.egg-info/dependency_links.txt
writing top-level names to line_refinement.egg-info/top_level.txt
reading manifest file 'line_refinement.egg-info/SOURCES.txt'
writing manifest file 'line_refinement.egg-info/SOURCES.txt'
running build_ext
-- Found installed version of Eigen: /usr/local/share/eigen3/cmake
-- Found required Ceres dependency: Eigen version 3.4.0 in /usr/local/include/eigen3
-- Found installed version of glog: /usr/local/lib/cmake/glog
-- Detected glog version: 0.7.0
-- Found required Ceres dependency: glog
-- Found installed version of gflags: /usr/local/lib/cmake/gflags
-- Detected gflags version: 2.2.2
-- Found required Ceres dependency: gflags
-- Found Ceres version: 1.14.0 installed in: /usr/local with components: [EigenSparse, SparseLinearAlgebraLibrary, SchurSpecializations, OpenMP, Multithreading]
-- pybind11 v2.12.0 dev1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/featurize/DeepLSD/line_refinement/build/temp.linux-x86_64-cpython-310
[ 50%] Building CXX object CMakeFiles/line_refinement.dir/line_vp_optim.cpp.o
In file included from /usr/include/opencv4/opencv2/calib3d.hpp:49,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_epnp_lm.h:40,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:51,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/usr/include/opencv4/opencv2/core/affine.hpp: In member function ‘cv::Affine3<T>::Vec3 cv::Affine3<T>::rvec() const’:
/usr/include/opencv4/opencv2/core/affine.hpp:502:26: error: call of overloaded ‘acos(double&)’ is ambiguous
502 | double theta = acos(c);
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cmath:41,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:5:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:53:1: note: candidate: ‘double acos(double)’
53 | __MATHCALL (acos,, (_Mdouble_ __x));
| ^~~~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:5:
/usr/include/c++/9/cmath:91:3: note: candidate: ‘constexpr long double std::acos(long double)’
91 | acos(long double __x)
| ^~~~
/usr/include/c++/9/cmath:87:3: note: candidate: ‘constexpr float std::acos(float)’
87 | acos(float __x)
| ^~~~
In file included from /usr/local/include/ceres/internal/autodiff.h:145,
from /usr/local/include/ceres/autodiff_cost_function.h:132,
from /usr/local/include/ceres/ceres.h:37,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:16:
/usr/local/include/ceres/jet.h:436:15: note: candidate: ‘double ceres::acos(double)’
436 | inline double acos (double x) { return std::acos(x); }
| ^~~~
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:58,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_5pc.h: In static member function ‘static constexpr char* gcransac::estimator::solver::RadialHomography5PC::getName()’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_5pc.h:82:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
82 | return "H5l1l2";
| ^~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:59,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_6pc.h: In static member function ‘static constexpr char* gcransac::estimator::solver::RadialHomography6PC::getName()’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/solver_radial_homography_6pc.h:74:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
74 | return "H6l1l2";
| ^~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:16,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h: In member function ‘virtual const std::vector<double>& gcransac::neighborhood::FlannNeighborhoodGraph::getCellSizes() const’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h:86:66: warning: returning reference to temporary [-Wreturn-local-addr]
86 | const std::vector<double> &getCellSizes() const { return std::vector<double>(); }
| ^~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h: In member function ‘virtual const std::unordered_map<long unsigned int, std::pair<std::vector<long unsigned int>, std::vector<long unsigned int> > >& gcransac::neighborhood::FlannNeighborhoodGraph::getCells() const’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/neighborhood/flann_neighborhood_graph.h:90:17: warning: returning reference to temporary [-Wreturn-local-addr]
90 | return std::unordered_map<size_t, std::pair<std::vector<size_t>, std::vector<size_t>>>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findHomographies_(std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const size_t&, const size_t&, const size_t&, const size_t&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:231:6: warning: narrowing conversion of ‘(size_t)source_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
231 | { source_image_width, // The width of the source image
| ^~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:231:6: warning: narrowing conversion of ‘source_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:232:5: warning: narrowing conversion of ‘(size_t)source_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
232 | source_image_height, // The height of the source image
| ^~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:232:5: warning: narrowing conversion of ‘source_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:233:5: warning: narrowing conversion of ‘(size_t)destination_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
233 | destination_image_width, // The width of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:233:5: warning: narrowing conversion of ‘destination_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:234:5: warning: narrowing conversion of ‘(size_t)destination_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
234 | destination_image_height }, // The height of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:234:5: warning: narrowing conversion of ‘destination_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:242:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
242 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
243 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findPlanes_(std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:357:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
357 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
358 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findVanishingPoints_(std::vector<double>&, std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const size_t&, const size_t&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:473:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
473 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
474 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp: In function ‘int findTwoViewMotions_(std::vector<double>&, std::vector<long unsigned int>&, std::vector<double>&, const size_t&, const size_t&, const size_t&, const size_t&, const double&, const double&, const double&, const double&, const double&, const size_t&, const size_t&, const int&, const size_t&, const double&, bool)’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:594:6: warning: narrowing conversion of ‘(size_t)source_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
594 | { source_image_width, // The width of the source image
| ^~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:594:6: warning: narrowing conversion of ‘source_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:595:5: warning: narrowing conversion of ‘(size_t)source_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
595 | source_image_height, // The height of the source image
| ^~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:595:5: warning: narrowing conversion of ‘source_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:596:5: warning: narrowing conversion of ‘(size_t)destination_image_width’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
596 | destination_image_width, // The width of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:596:5: warning: narrowing conversion of ‘destination_image_width’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:597:5: warning: narrowing conversion of ‘(size_t)destination_image_height’ from ‘size_t’ {aka ‘long unsigned int’} to ‘double’ [-Wnarrowing]
597 | destination_image_height }, // The height of the destination image
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:597:5: warning: narrowing conversion of ‘destination_image_height’ from ‘const size_t’ {aka ‘const long unsigned int’} to ‘double’ [-Wnarrowing]
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:605:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
605 | fprintf(stderr, "Unknown sampler identifier: %d. The accepted samplers are 0 (uniform sampling), 1 (PROSAC sampling), 2 (P-NAPSAC sampling)\n",
| ~^
| |
| int
| %ld
606 | sampler_id);
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:21,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h: In instantiation of ‘bool gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::initialize(const cv::Mat*) [with long unsigned int _DimensionNumber = 4]’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:95:19: required from ‘gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::ProgressiveNapsacSampler(const cv::Mat*, std::vector<long unsigned int>, size_t, const std::vector<double>&, double) [with long unsigned int _DimensionNumber = 4; size_t = long unsigned int]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:235:7: required from here
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:155:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type’ {aka ‘long unsigned int’} [-Wformat=]
155 | fprintf(stderr, "%d ", layer_data[layer_idx]);
| ~^
| |
| int
| %ld
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:156:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type’ {aka ‘long unsigned int’} [-Wformat=]
156 | fprintf(stderr, "%d\"\n", layer_data.back());
| ~^
| |
| int
| %ld
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/fundamental_estimator.h:49,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:39,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/../neighborhood/grid_neighborhood_graph.h: In instantiation of ‘gcransac::neighborhood::GridNeighborhoodGraph<_DimensionNumber>::GridNeighborhoodGraph(const cv::Mat*, const std::vector<double>&, const size_t&) [with long unsigned int _DimensionNumber = 4; size_t = long unsigned int]’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:166:44: required from ‘bool gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::initialize(const cv::Mat*) [with long unsigned int _DimensionNumber = 4]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/samplers/progressive_napsac_sampler.h:95:19: required from ‘gcransac::sampler::ProgressiveNapsacSampler<_DimensionNumber>::ProgressiveNapsacSampler(const cv::Mat*, std::vector<long unsigned int>, size_t, const std::vector<double>&, double) [with long unsigned int _DimensionNumber = 4; size_t = long unsigned int]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:235:7: required from here
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/../neighborhood/grid_neighborhood_graph.h:174:92: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
174 | fprintf(stderr, "The data dimension (%d) does not match with the expected dimension (%d).\n",
| ~^
| |
| int
| %ld
In file included from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/types.h:43,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/utils.h:48,
from /home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:4,
from /home/featurize/DeepLSD/line_refinement/vp_det.h:13,
from /home/featurize/DeepLSD/line_refinement/line_vp_optim.cpp:24:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h: In instantiation of ‘double gcransac::estimator::PerspectiveNPointEstimator<_MinimalSolverEngine, _NonMinimalSolverEngine>::squaredResidual(const cv::Mat&, const MatrixXd&) const [with _MinimalSolverEngine = gcransac::estimator::solver::P3PSolver; _NonMinimalSolverEngine = gcransac::estimator::solver::EPnPLM; Eigen::MatrixXd = Eigen::Matrix<double, -1, -1>]’:
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h:165:53: required from ‘double gcransac::estimator::PerspectiveNPointEstimator<_MinimalSolverEngine, _NonMinimalSolverEngine>::squaredResidual(const cv::Mat&, const Model&) const [with _MinimalSolverEngine = gcransac::estimator::solver::P3PSolver; _NonMinimalSolverEngine = gcransac::estimator::solver::EPnPLM; gcransac::estimator::Estimator<cv::Mat, gcransac::Model>::Model = gcransac::Model]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/include/progressive_x.h:615:22: required from ‘void progx::ProgressiveX<_NeighborhoodGraph, _ModelEstimator, _MainSampler, _LocalOptimizerSampler>::updateCompoundModel(const cv::Mat&) [with _NeighborhoodGraph = gcransac::neighborhood::FlannNeighborhoodGraph; _ModelEstimator = gcransac::estimator::PerspectiveNPointEstimator<gcransac::estimator::solver::P3PSolver, gcransac::estimator::solver::EPnPLM>; _MainSampler = gcransac::sampler::UniformSampler; _LocalOptimizerSampler = gcransac::sampler::UniformSampler]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/include/progressive_x.h:423:4: required from ‘void progx::ProgressiveX<_NeighborhoodGraph, _ModelEstimator, _MainSampler, _LocalOptimizerSampler>::run(const cv::Mat&, const _NeighborhoodGraph&, _MainSampler&, _LocalOptimizerSampler&) [with _NeighborhoodGraph = gcransac::neighborhood::FlannNeighborhoodGraph; _ModelEstimator = gcransac::estimator::PerspectiveNPointEstimator<gcransac::estimator::solver::P3PSolver, gcransac::estimator::solver::EPnPLM>; _MainSampler = gcransac::sampler::UniformSampler; _LocalOptimizerSampler = gcransac::sampler::UniformSampler]’
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/src/pyprogressivex/src/progressivex_python.cpp:146:29: required from here
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h:174:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Eigen::Index’ {aka ‘long int’} [-Wformat=]
174 | "The size of the matrix should be 3*4 instead of %d*%d.\n",
| ~^
| |
| int
| %ld
175 | descriptor_.rows(), descriptor_.cols());
| ~~~~~~~~~~~~~~~~~~
| |
| Eigen::Index {aka long int}
/home/featurize/DeepLSD/line_refinement/../third_party/progressive-x/graph-cut-ransac/src/pygcransac/include/estimators/perspective_n_point_estimator.h:174:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Eigen::Index’ {aka ‘long int’} [-Wformat=]
174 | "The size of the matrix should be 3*4 instead of %d*%d.\n",
| ~^
| |
| int
| %ld
175 | descriptor_.rows(), descriptor_.cols());
| ~~~~~~~~~~~~~~~~~~
| |
| Eigen::Index {aka long int}
make[2]: *** [CMakeFiles/line_refinement.dir/build.make:76: CMakeFiles/line_refinement.dir/line_vp_optim.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/line_refinement.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/featurize/DeepLSD/line_refinement/setup.py", line 68, in <module>
setup(
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/command/develop.py", line 115, in install_for_development
self.run_command('build_ext')
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/environment/miniconda3/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/featurize/DeepLSD/line_refinement/setup.py", line 36, in run
self.build_extension(ext)
File "/home/featurize/DeepLSD/line_refinement/setup.py", line 66, in build_extension
subprocess.check_call(['cmake', '--build', '.', "--parallel {0}".format(N_CORES)] + build_args, cwd=self.build_temp)
File "/environment/miniconda3/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--parallel 8', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
['cmake', '/home/featurize/DeepLSD/line_refinement', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/featurize/DeepLSD/line_refinement', '-DPYTHON_EXECUTABLE=/environment/miniconda3/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX=~/.local/']
[end of output]

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章