gp1313 / aam-opencv

Automatically exported from code.google.com/p/aam-opencv
0 stars 0 forks source link

comile error -missing functions #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
When I type make for building I get some errors

What is the expected output? What do you see instead?

aam-opencv compiled
when I type :
cmake ..  OK
make   : I got the following messages 

aam-opencv/src/delaunay.cpp: In member function ‘void 
delaunay::draw_subdiv_facet(IplImage*, CvSubdiv2DEdge, int)’:
/home/yasser/development/aam-opencv/src/delaunay.cpp:82:49: error: 
‘cvSubdiv2DEdgeDst’ was not declared in this scope
         CvSubdiv2DPoint* a = cvSubdiv2DEdgeDst(t);
                                                 ^
aam-opencv/src/delaunay.cpp:83:49: error: ‘cvSubdiv2DEdgeOrg’ was not 
declared in this scope
         CvSubdiv2DPoint* b = cvSubdiv2DEdgeOrg(t);
                                                 ^
aam-opencv/src/delaunay.cpp:94:55: error: ‘cvSubdiv2DGetEdge’ was not 
declared in this scope
         t = cvSubdiv2DGetEdge( t, CV_NEXT_AROUND_LEFT );
                                                       ^
aam-opencv/src/delaunay.cpp:121:52: error: ‘cvSubdiv2DEdgeOrg’ was not 
declared in this scope
         CvSubdiv2DPoint* pt = cvSubdiv2DEdgeOrg( t );
                                                    ^
/aam-opencv/src/delaunay.cpp:124:55: error: ‘cvSubdiv2DGetEdge’ was not 
declared in this scope
         t = cvSubdiv2DGetEdge( t, CV_NEXT_AROUND_LEFT );
                                                       ^
aam-opencv/src/delaunay.cpp: In member function ‘CvSubdiv2D* 
delaunay::init_delaunay(CvMemStorage*, CvRect)’:
/home/yasser/development/aam-opencv/src/delaunay.cpp:144:40: error: 
‘cvCreateSubdiv2D’ was not declared in this scope
                                storage );
                                        ^
aam-opencv/src/delaunay.cpp:145:42: error: ‘cvInitSubdivDelaunay2D’ was not 
declared in this scope
     cvInitSubdivDelaunay2D( subdiv, rect );
                                          ^
aam-opencv/src/delaunay.cpp: In constructor ‘delaunay::delaunay(CvMat*)’:
aam-opencv/src/delaunay.cpp:217:43: error: ‘cvSubdivDelaunay2DInsert’ was 
not declared in this scope
         cvSubdivDelaunay2DInsert(subdiv,fp);
                                           ^
aam-opencv/src/delaunay.cpp:240:72: error: ‘cvSubdiv2DRotateEdge’ was not 
declared in this scope
             draw_subdiv_facet( rasterImage, cvSubdiv2DRotateEdge( e, 0 ),k);

What version of the product are you using? On what operating system?
    aam-opencv.tar.gz   
        opencv 2.6
        Ubuntu  12

I tried to search for one of these missing functions, I could find it in any 
files of project!!!!

any suggestion ?

Original issue reported on code.google.com by yasser.a...@rizze.com on 21 May 2014 at 1:10

GoogleCodeExporter commented 8 years ago
I found the solution :

I just added the following line to delaunay.h:
#include <opencv2/legacy/legacy.hpp>

because those funstions are in this header for opencv 2.6

Original comment by yasser.a...@rizze.com on 21 May 2014 at 1:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am having the same problem now with opencv 3.0, although we don't have 
"legacy.hpp" anymore it is deprecated. I am not sure where it is now, any ideas 
on how to fix this?

My guess is to use 
http://docs.opencv.org/doc/tutorials/features2d/detection_of_planar_objects/dete
ction_of_planar_objects.html?highlight=planar

Is that correct?

Original comment by andressa...@gmail.com on 23 Jun 2015 at 10:19