pymagsac
pymagsac copied to clipboard
src/pymagsac/include/estimators.h:83:22: error: ‘Model’ has not been declared
I am able to compile zjhthu's pymagsac: https://github.com/zjhthu/pymagsac, but failed with this version. The title shows one of the errors. I am not sure whether it is due to this version incorporating magsac++, which might cause problems somewhere.
@niatzt I've had the same problem. Have you solved it?
Something like this:
git clone https://github.com/danini/magsac.git
git clone https://github.com/ducha-aiki/pymagsac
cp magsac/include/estimators.h pymagsac/src/pymagsac/include/
sed -i 's@set(CMAKE_CXX_STANDARD 14)@set(CMAKE_CXX_STANDARD 17)@' pymagsac/CMakeLists.txt
cd pymagsac
python setup.py install
+ make sure you have a C++-17 compatible compiler
@amonszpart 's comment worked for me, but I also had to install vtk (manjaro linux)
I merged the python wrapper into the main repo (https://github.com/danini/magsac.git). Hopefully, it solved this problem as well.