Menu

#10 tool_triangulaton.cpp compile error

v1.0 (example)
open
nobody
None
5
2014-03-16
2014-03-16
No

tool_triangulation.cpp: In function ‘void tool_triangulate_surface_reconstruction()’:
tool_triangulation.cpp:44:148: error: ‘cvCreateSubdiv2D’ was not declared in this scope
CvSubdiv2D * subdivision = cvCreateSubdiv2D(CV_SEQ_KIND_SUBDIV2D, sizeof(subdivision), sizeof(CvSubdiv2DPoint), sizeof(CvQuadEdge2D), mem_storage);
^
tool_triangulation.cpp:53:2: error: ‘cvInitSubdivDelaunay2D’ was not declared in this scope
);
^
tool_triangulation.cpp:73:3: error: ‘cvSubdivDelaunay2DInsert’ was not declared in this scope
);
^
tool_triangulation.cpp:93:52: error: ‘cvSubdiv2DEdgeOrg’ was not declared in this scope
* org = cvSubdiv2DEdgeOrg((CvSubdiv2DEdge)edge),
^
tool_triangulation.cpp:118:18: error: ‘dst’ was not declared in this scope
sqr_value(dst->pt.x - point->x * shot->width) +
^
make:
** [tool_triangulation.o] Error 1

Discussion

  • Afan Ottenheimer

    Note:

    $pkg-config --modversion opencv
    2.4.5

     
  • Afan Ottenheimer

    FIxed by adding the following

    #include "/usr/include/opencv2/legacy/legacy.hpp"
    
     

    Last edit: Afan Ottenheimer 2014-03-16

Log in to post a comment.