Depth-Guided-Inpainting icon indicating copy to clipboard operation
Depth-Guided-Inpainting copied to clipboard

Cannot build the OpenGM

Open Sugar-Coder opened this issue 3 years ago • 0 comments

Hi, I have problem when make the opengm library. Could you please tell me which version of opengm you were using? The opengm downloaded from github or the website both were built failed.

(base) sugar@sugar-virtual-machine:~/project/inpainting/opengm-2.3.5/build$ make
Scanning dependencies of target example-segmentation
[  1%] Building CXX object src/examples/image-processing-examples/CMakeFiles/example-segmentation.dir/interpixel_boundary_segmentation.cxx.o
In file included from /home/sugar/project/inpainting/opengm-2.3.5/include/opengm/functions/function_properties_base.hxx:10,
                 from /home/sugar/project/inpainting/opengm-2.3.5/include/opengm/functions/explicit_function.hxx:7,
                 from /home/sugar/project/inpainting/opengm-2.3.5/include/opengm/graphicalmodel/graphicalmodel.hxx:12,
                 from /home/sugar/project/inpainting/opengm-2.3.5/src/examples/image-processing-examples/interpixel_boundary_segmentation.cxx:11:
/home/sugar/project/inpainting/opengm-2.3.5/include/opengm/utilities/accumulation.hxx: In member function ‘opengm::Accumulation<Value, State, Accumulator>::LabelType opengm::Accumulation<Value, State, Accumulator>::state(size_t) const’:
/home/sugar/project/inpainting/opengm-2.3.5/include/opengm/utilities/accumulation.hxx:95:23: error: no match for call to ‘(const
opengm::FastSequence<long unsigned int>) (size_t&)’
   95 |    return state_(index);
      |                       ^
make[2]: *** [src/examples/image-processing-examples/CMakeFiles/example-segmentation.dir/build.make:63: src/examples/image-processing-examples/CMakeFiles/example-segmentation.dir/interpixel_boundary_segmentation.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1281: src/examples/image-processing-examples/CMakeFiles/example-segmentation.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Sugar-Coder avatar Jul 17 '21 03:07 Sugar-Coder