Hi all ; i'm a newbie in open_cv ... i have just installed it and i have download the opencv_extra git to run a sample application so to run for example the tracker3D project i run "make" in command line that's run the makefile ... i get a lot of problems ...:p and here is the listing
g++ -o tracker3D -g object_tracker.cpp tracker3D.cpp tracker_calibration.cpp -lml -lcv -lcxcore -lcvaux -lhighgui
object_tracker.cpp: In function ‘CvMat* CalcRelativePosition(IplImage, CvPoint, CvPoint2D32f, CvMat, float, CvMat)’: object_tracker.cpp:273:73: error: ‘cvFindChessboardCorners’ was not declared in this scope if (cvFindChessboardCorners(workImage,innerCornersCount,corners,&count)==0) ^ object_tracker.cpp:343:101: error: ‘cvFindExtrinsicCameraParams2’ was not declared in this scope cvFindExtrinsicCameraParams2(object_points,image_points,cameraMatrix, distCoeffs,rotation_vector,T); ^ object_tracker.cpp:345:33: error: ‘cvRodrigues2’ was not declared in this scope cvRodrigues2(rotation_vector,R); ^ object_tracker.cpp:384:69: error: ‘cvProjectPoints2’ was not declared in this scope cvProjectPoints2(d3,rotation_vector,T,cameraMatrix,distCoeffs,imP); ^ object_tracker.cpp: In function ‘CvPoint* GetCurrentPointsPosition(IplImage, CvPoint2D32f, CvMat, CvPoint, CvPoint2D32f)’: object_tracker.cpp:428:72: error: ‘cvFindChessboardCorners’ was not declared in this scope if (cvFindChessboardCorners(workImage,innerCornersCount,corners,&count)==0) ^ object_tracker.cpp:452:65: error: ‘cvFindHomography’ was not declared in this scope cvFindHomography(chessboardPoints,chessboardPoints2,homography); ^ object_tracker.cpp: In function ‘IplImage GetSample(const IplImage, CvSize, const CvPoint, CvPoint2D32f)’: object_tracker.cpp:516:67: error: ‘cvFindChessboardCorners’ was not declared in this scope if (cvFindChessboardCorners(src,innerCornersCount,corners,&count)==0) ^ object_tracker.cpp:565:65: error: ‘cvFindHomography’ was not declared in this scope cvFindHomography(chessboardPoints,chessboardPoints2,homography); ^ object_tracker.cpp: In function ‘void createSamples2DObject(int, char)’: object_tracker.cpp:608:26: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[0]=new char[11]; c[0]="calibration"; ^ object_tracker.cpp:609:25: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[1]=new char[2]; c[1]="-w"; ^ object_tracker.cpp:611:25: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[3]=new char[2]; c[3]="-h"; ^ object_tracker.cpp:613:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[5] = new char[2]; c[5]="-d"; ^ object_tracker.cpp:615:25: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[7]=new char[2]; c[7]="-o"; ^ object_tracker.cpp:672:155: error: ‘cvFindChessboardCorners’ was not declared in this scope while ( frame && (((AUTOFIND_CHESSBOARD && IS_VIDEO_CAPTURE)|| (!IS_VIDEO_CAPTURE)) && cvFindChessboardCorners(workImage,innerCornersCount,corners,&count)==0)); ^ object_tracker.cpp:887:128: error: ‘cvDrawChessboardCorners’ was not declared in this scope cvDrawChessboardCorners(workImage,innerCornersCount,ChessboardCorners,innerCornersCount.heightinnerCornersCount.width,1); ^ object_tracker.cpp: In function ‘void createSamples3DObject(int, char)’: object_tracker.cpp:998:28: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[0] = new char[11]; c[0]="calibration"; ^ object_tracker.cpp:999:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[1] = new char[2]; c[1]="-w"; ^ object_tracker.cpp:1001:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[3] = new char[2]; c[3]="-h"; ^ object_tracker.cpp:1003:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[5] = new char[2]; c[5]="-d"; ^ object_tracker.cpp:1005:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[7] = new char[2]; c[7]="-o"; ^ object_tracker.cpp:1364:77: error: ‘cvFindChessboardCorners’ was not declared in this scope cvFindChessboardCorners(workImage,innerCornersCount,ChessboardCorners); ^ object_tracker.cpp:1365:128: error: ‘cvDrawChessboardCorners’ was not declared in this scope cvDrawChessboardCorners(workImage,innerCornersCount,ChessboardCorners,innerCornersCount.heightinnerCornersCount.width,1); ^ object_tracker.cpp: In function ‘void createSamples3DObject2(int, char)’: object_tracker.cpp:1480:26: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[0]=new char[11]; c[0]="calibration"; ^ object_tracker.cpp:1481:25: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[1]=new char[2]; c[1]="-w"; ^ object_tracker.cpp:1483:25: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[3]=new char[2]; c[3]="-h"; ^ object_tracker.cpp:1485:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[5] = new char[2]; c[5]="-d"; ^ object_tracker.cpp:1487:25: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] c[7]=new char[2]; c[7]="-o"; ^ object_tracker.cpp:1550:155: error: ‘cvFindChessboardCorners’ was not declared in this scope while ( frame && (((AUTOFIND_CHESSBOARD && IS_VIDEO_CAPTURE)|| (!IS_VIDEO_CAPTURE)) && cvFindChessboardCorners(workImage,innerCornersCount,corners,&count)==0)); ^ object_tracker.cpp:1882:128: error: ‘cvDrawChessboardCorners’ was not declared in this scope cvDrawChessboardCorners(workImage,innerCornersCount,ChessboardCorners,innerCornersCount.heightinnerCornersCount.width,1); ^ tracker3D.cpp: In function ‘CvPoint3D32f calc3DPoints(const IplImage, const IplImage, CvPoint, CvPoint, CvSize, const CvMat, const CvMat, bool, float, float)’: tracker3D.cpp:57:78: error: ‘cvFindChessboardCorners’ was not declared in this scope int found1 = cvFindChessboardCorners(img1,innerCornersCount,corners1,&count1); ^ tracker3D.cpp:122:114: error: ‘cvFindExtrinsicCameraParams2’ was not declared in this scope cvFindExtrinsicCameraParams2(object_points,image_points1,intrinsic_matrix, distortion_coeffs,rotation_vector,T1); ^ tracker3D.cpp:123:34: error: ‘cvRodrigues2’ was not declared in this scope cvRodrigues2(rotation_vector,R1); ^ tracker3D.cpp:137:25: error: ‘CV_CALIB_ZERO_DISPARITY’ was not declared in this scope R_1, R_2, P1, P2, Q, CV_CALIB_ZERO_DISPARITY); ^ tracker3D.cpp:137:48: error: ‘cvStereoRectify’ was not declared in this scope R_1, R_2, P1, P2, Q, CV_CALIB_ZERO_DISPARITY); ^ tracker3D.cpp: In function ‘CvPoint* Find3DObject(const IplImage, const CvPoint3D32f, CvSize, const CvMat, const CvMat, bool)’: tracker3D.cpp:331:66: error: ‘cvFindChessboardCorners’ was not declared in this scope if (cvFindChessboardCorners(img,innerCornersCount,corners,&count)==0) ^ tracker3D.cpp:378:115: error: ‘cvFindExtrinsicCameraParams2’ was not declared in this scope cvFindExtrinsicCameraParams2(object_points,chessBoardPoints,intrinsic_matrix, distortion_coeffs,rotation_vector,T); ^ tracker3D.cpp:392:101: error: ‘cvProjectPoints2’ was not declared in this scope cvProjectPoints2(image_points3D,rotation_vector,T,intrinsic_matrix,distortion_coeffs,image_points2D); ^ tracker_calibration.cpp: In function ‘double compute_reprojection_error(const CvMat, const CvMat, const CvMat, const CvMat, const CvMat, const CvMat, const CvMat, CvMat)’: tracker_calibration.cpp:60:41: error: ‘cvProjectPoints2’ was not declared in this scope 0, 0, 0, 0, 0 ); ^ tracker_calibration.cpp: In function ‘int run_calibration(CvSeq, CvSize, CvSize, float, float, int, CvMat, CvMat, CvMat, CvMat, double)’: tracker_calibration.cpp:113:17: error: ‘CV_CALIB_FIX_ASPECT_RATIO’ was not declared in this scope if( flags & CV_CALIB_FIX_ASPECT_RATIO ) ^ tracker_calibration.cpp:121:57: error: ‘cvCalibrateCamera2’ was not declared in this scope &rot_vects, &trans_vects, flags ); ^ tracker_calibration.cpp: In function ‘void save_camera_params(const char, int, CvSize, CvSize, float, float, int, const CvMat, CvMat, const CvMat, const CvSeq, const CvMat, double)’: tracker_calibration.cpp:164:17: error: ‘CV_CALIB_FIX_ASPECT_RATIO’ was not declared in this scope if( flags & CV_CALIB_FIX_ASPECT_RATIO ) ^ tracker_calibration.cpp:170:21: error: ‘CV_CALIB_USE_INTRINSIC_GUESS’ was not declared in this scope flags & CV_CALIB_USE_INTRINSIC_GUESS ? "+use_intrinsic_guess" : "", ^ tracker_calibration.cpp:171:21: error: ‘CV_CALIB_FIX_ASPECT_RATIO’ was not declared in this scope flags & CV_CALIB_FIX_ASPECT_RATIO ? "+fix_aspect_ratio" : "", ^ tracker_calibration.cpp:172:21: error: ‘CV_CALIB_FIX_PRINCIPAL_POINT’ was not declared in this scope flags & CV_CALIB_FIX_PRINCIPAL_POINT ? "+fix_principal_point" : "", ^ tracker_calibration.cpp:173:21: error: ‘CV_CALIB_ZERO_TANGENT_DIST’ was not declared in this scope flags & CV_CALIB_ZERO_TANGENT_DIST ? "+zero_tangent_dist" : "" ); ^ tracker_calibration.cpp: In function ‘int calibrate(int, char)’: tracker_calibration.cpp:209:29: error: in C++98 ‘board_size’ must be initialized by constructor, not by ‘{...}’ CvSize board_size = {0,0}; ^ tracker_calibration.cpp:233:27: error: in C++98 ‘img_size’ must be initialized by constructor, not by ‘{...}’ CvSize img_size = {0,0}; ^ tracker_calibration.cpp:313:22: error: ‘CV_CALIB_ZERO_TANGENT_DIST’ was not declared in this scope flags |= CV_CALIB_ZERO_TANGENT_DIST; ^ tracker_calibration.cpp:317:22: error: ‘CV_CALIB_FIX_PRINCIPAL_POINT’ was not declared in this scope flags |= CV_CALIB_FIX_PRINCIPAL_POINT; ^ tracker_calibration.cpp:371:32: error: in C++98 ‘text_size’ must be initialized by constructor, not by ‘{...}’ CvSize text_size = {0,0}; ^ tracker_calibration.cpp:416:39: error: ‘CV_CALIB_CB_ADAPTIVE_THRESH’ was not declared in this scope image_points_buf, &count, CV_CALIB_CB_ADAPTIVE_THRESH ); ^ tracker_calibration.cpp:416:67: error: ‘cvFindChessboardCorners’ was not declared in this scope image_points_buf, &count, CV_CALIB_CB_ADAPTIVE_THRESH ); ^ tracker_calibration.cpp:441:83: error: ‘cvDrawChessboardCorners’ was not declared in this scope cvDrawChessboardCorners( view, board_size, image_points_buf, count, found ); ^ make: * [tracker3D] Error 1
plz if u have any suggestion i will appreciate it alot .... thanks :)