danini / graph-cut-ransac

The Graph-Cut RANSAC algorithm proposed in paper: Daniel Barath and Jiri Matas; Graph-Cut RANSAC, Conference on Computer Vision and Pattern Recognition, 2018. It is available at http://openaccess.thecvf.com/content_cvpr_2018/papers/Barath_Graph-Cut_RANSAC_CVPR_2018_paper.pdf
Other
431 stars 93 forks source link

Build Issue #16

Closed rshah240 closed 4 years ago

rshah240 commented 4 years ago

/home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h: In function ‘void gcransac::utils::detectFeatures(std::cxx11::string, cv::Mat, cv::Mat, cv::Mat&)’: /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:13: error: expected unqualified-id before ‘[’ token for (auto[distance_ratio, point_1, point_2] : correspondences) ^ /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:13: error: expected ‘;’ before ‘[’ token /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:14: error: ‘distance_ratio’ was not declared in this scope for (auto[distance_ratio, point_1, point_2] : correspondences) ^ /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:30: error: ‘point_1’ was not declared in this scope for (auto[distance_ratio, point_1, point_2] : correspondences) ^ /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:39: error: ‘point_2’ was not declared in this scope for (auto[distance_ratio, point_1, point_2] : correspondences) ^ /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h: In lambda function: /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:48: error: expected ‘{’ before ‘:’ token for (auto[distance_ratio, point_1, point_2] : correspondences) ^ /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h: In function ‘void gcransac::utils::detectFeatures(std::cxx11::string, cv::Mat, cv::Mat, cv::Mat&)’: /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:48: error: expected ‘;’ before ‘:’ token /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:48: error: expected primary-expression before ‘:’ token /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:48: error: expected ‘)’ before ‘:’ token /home/meditab/graph-cut-ransac/src/pygcransac/include/utils.h:232:48: error: expected primary-expression before ‘:’ token

This error occurs during building of the library. Please help

danini commented 4 years ago

Are you using C++ 17?

rshah240 commented 4 years ago

Yes

rshah240 commented 4 years ago

During building It is showing this kind of error ^CCMakeFiles/pygcransac.dir/build.make:75: recipe for target 'CMakeFiles/pygcransac.dir/src/pygcransac/src/gcransac_python.cpp.o' failed

rshah240 commented 4 years ago

It was solved when I updated my g++ version. Thank you.