Open ahong007007 opened 4 years ago
My install errors are:
/home/.../Code/matching/pymagsac/src/pymagsac/include/magsac.h:537:31: error: no matching function for call to ‘magsac::estimator::FundamentalMatrixEstimator<gcransac::estimator::solver::FundamentalMatrixSevenPointSolver, gcransac::estimator::solver::FundamentalMatrixEightPointSolver>::isValidModel(__gnu_cxx::__alloc_traits<std::allocator<gcransac::Model> >::value_type&, const cv::Mat&, std::vector<long unsigned int>&, __gnu_cxx::__alloc_traits<std::allocator<long unsigned int> >::value_type*, double&, bool&) const’ if (sigma_models.size() == 1 && // If only a single model is estimated
/home/.../Code/matching/pymagsac/src/pymagsac/include/magsac.h:807:14: error: no matching function for call to ‘magsac::estimator::FundamentalMatrixEstimator<gcransac::estimator::solver::FundamentalMatrixSevenPointSolver, gcransac::estimator::solver::FundamentalMatrixEightPointSolver>::isValidModel(gcransac::Model&, const cv::Mat&, std::vector<long unsigned int>&, __gnu_cxx::__alloc_traits<std::allocator<long unsigned int> >::value_type*, double&, bool&) const’ if (updated && // If the model has been updated
Here is my build env:
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/pymagsac
copying src/pymagsac/__init__.py -> build/lib.linux-x86_64-3.7/pymagsac
running build_ext
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /home/.../miniconda3/envs/mmdet_t14cu101p37/bin/python (found version "3.7.7")
-- Found PythonLibs: /home/.../miniconda3/envs/mmdet_t14cu101p37/lib/libpython3.7m.so
-- pybind11 v2.1.1
-- Found OpenCV: /home/.../miniconda3/envs/mmdet_t14cu101p37 (found version "4.2.0")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- Performing Test HAS_CPP11_FLAG
-- Performing Test HAS_CPP11_FLAG - Success
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/.../Code/matching/pymagsac/build/temp.linux-x86_64-3.7
I meet the same error~ Can you give me some advice? Thanks~
Any advice on this, please?
Hi, I managed to install in a conda env
.
To install create a conda environment with python3.7 and opencv3.4 and follow the steps from the following link.
https://github.com/cognitiveRobot/pymagsac#preparation-for-conda-env
and thanks @amonszpart for the this
Hi, I managed to install in a
conda env
. To install create a conda environment with python3.7 and opencv3.4 and follow the steps from the following link. https://github.com/cognitiveRobot/pymagsac#preparation-for-conda-env and thanks @amonszpart for the this
Thank you your reply~ I will try again~ Best wishes~
same problem,anyone got a solution?
same problem,anyone got a solution?
pip install git+https://github.com/Tobias-Fischer/pymagsac
Hi, I managed to install in a
conda env
. To install create a conda environment with python3.7 and opencv3.4 and follow the steps from the following link. https://github.com/cognitiveRobot/pymagsac#preparation-for-conda-env and thanks @amonszpart for the this
It worked for me. Thanks!
python3 ./setup.py install
After executing the above command, the following error appears
_### gmake[2]: ** [CMakeFiles/pymagsac.dir/src/pymagsac/src/magsac_python.cpp.o] Error 1 gmake[1]: [CMakeFiles/pymagsac.dir/all] Error 2**_
/home/admin/pymagsac/src/pymagsac/graph-cut-ransac/include/sampler.h:70:29: warning: inline function ‘bool gcransac::sampler::Sampler<_DataContainer, _IndexType>::sample(const std::vector&, _IndexType*, size_t) [with _DataContainer = cv::Mat; _IndexType = long unsigned int; size_t = long unsigned int]’ used but never defined [enabled by default]
OLGA_INLINE virtual bool sample(const std::vector<_IndexType> &pool_,
^
gmake[2]: [CMakeFiles/pymagsac.dir/src/pymagsac/src/magsac_python.cpp.o] Error 1
gmake[1]: [CMakeFiles/pymagsac.dir/all] Error 2
gmake: * [all] Error 2
Traceback (most recent call last):
File "./setup.py", line 106, in
zip_safe=False,
File "/usr/local/lib/python3.6/site-packages/setuptools/init.py", line 165, in setup
return distutils.core.setup( attrs)
File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 174, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 160, in call_command
self.run_command(cmdname)
File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/usr/lib64/python3.6/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "./setup.py", line 38, in run
self.build_extension(ext)
File "./setup.py", line 69, in build_extension
cwd=self.build_temp)
File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.