danini / clustering-in-consensus-space

MIT License
11 stars 4 forks source link

Build error on GraphCutRANSAC sub-module #2

Open fb82 opened 1 month ago

fb82 commented 1 month ago

Hi! Got this error when trying to compile:

/home/bellavista/git/clustering-in-consensus-space/graph-cut-ransac/src/pygcransac/include/relative_pose/bundle.cpp:77:18: error: reference to non-static member function must be called; did you mean to call it with no arguments?
        pose_new.R = R + R * (a * sw + (1 - b) * sw * sw);
        ~~~~~~~~~^
                  ()
/home/bellavista/git/clustering-in-consensus-space/graph-cut-ransac/src/pygcransac/include/relative_pose/bundle.cpp:152:18: error: reference to non-static member function must be called; did you mean to call it with no arguments?
        pose_new.R = R + R * (a * sw + (1 - b) * sw * sw);
        ~~~~~~~~~^
                  ()
2 errors generated.
make[2]: *** [CMakeFiles/GraphCutRANSAC.dir/build.make:128: CMakeFiles/GraphCutRANSAC.dir/graph-cut-ransac/src/pygcransac/include/relative_pose/bundle.cpp.o] Errore 1
make[1]: *** [CMakeFiles/Makefile2:210: CMakeFiles/GraphCutRANSAC.dir/all] Errore 2

Could you help? Thanks!

fb82 commented 1 month ago

Solved, l I had to change CMAKE_CXX_COMPILER flag from /usr/bin/c++ to /usr/bin/g++ .