Building OpenCV project on Mac - unknown type error [closed]

asked 2014-07-31 04:17:42 -0600

ubisum gravatar image

updated 2014-07-31 04:29:49 -0600

Hello everyone. I designed an Opencv project and then performed a pull request onto OpenCV?s repositories. When visualizing the errors returned by compilation on Mac, I get a series of errors in the form In file included from /builds/precommit-contrib_macosx/opencv/modules/python/src2/cv2.cpp:1195: /builds/precommit-contrib_macosx/build/modules/python/pyopencv_generated_types.h:8196:5:error: unknown type name 'vector_KeyLine'; did you mean 'vector_KeyPoint'? vector_KeyLine keylines; ^~~~~~~~~~~~~~ vector_KeyPoint /builds/precommit-contrib_macosx/opencv/modules/python/src2/cv2.cpp:101:31: note: 'vector_KeyPoint' declared here typedef std::vector<keypoint> vector_KeyPoint;

It seems that compiler confuses my newly defined class KeyLine with module Feature2d's KeyPoint; anyway, my class is defined in a header that is correctly included:

/*M///////////////////////////////////////////////////////////////////////////////////////
 //
 //  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
 //
 //  By downloading, copying, installing or using the software you agree to this license.
 //  If you do not agree to this license, do not download, install,
 //  copy or use the software.
 //
 //
 //                           License Agreement
 //                For Open Source Computer Vision Library
 //
 // Copyright (C) 2014, Biagio Montesano, all rights reserved.
 // Third party copyrights are property of their respective owners.
 //
 // Redistribution and use in source and binary forms, with or without modification,
 // are permitted provided that the following conditions are met:
 //
 //   * Redistribution's of source code must retain the above copyright notice,
 //     this list of conditions and the following disclaimer.
 //
 //   * Redistribution's in binary form must reproduce the above copyright notice,
 //     this list of conditions and the following disclaimer in the documentation
 //     and/or other materials provided with the distribution.
 //
 //   * The name of the copyright holders may not be used to endorse or promote products
 //     derived from this software without specific prior written permission.
 //
 // This software is provided by the copyright holders and contributors "as is" and
 // any express or implied warranties, including, but not limited to, the implied
 // warranties of merchantability and fitness for a particular purpose are disclaimed.
 // In no event shall the Intel Corporation or contributors be liable for any direct,
 // indirect, incidental, special, exemplary, or consequential damages
 // (including, but not limited to, procurement of substitute goods or services;
 // loss of use, data, or profits; or business interruption) however caused
 // and on any theory of liability, whether in contract, strict liability,
 // or tort (including negligence or otherwise) arising in any way out of
 // the use of this software, even if advised of the possibility of such damage.
 //
 //M*/

#ifndef __OPENCV_DESCRIPTOR_HPP__
#define __OPENCV_DESCRIPTOR_HPP__

#include "line_structure.hpp"
#include "array32.hpp"
#include "bitarray.hpp"
#include "bitops.hpp"
#include "bucket_group.hpp"
#include "mihasher.hpp"
#include "sparse_hashtable.hpp"
#include "types.hpp"
#include "ed_line_detector.hpp"
#include <map>

namespace cv
{

CV_EXPORTS bool initModule_line_descriptor();

class CV_EXPORTS_W KeyLine
{
 public:
  /* orientation of the line */
  CV_PROP_RW
  float angle;

  /* object ID, that can be used to cluster keylines by the line they represent */
  CV_PROP_RW
  int class_id;

  /* octave (pyramid layer), from which the keyline has been extracted */
  CV_PROP_RW
  int octave;

  /* coordinates of the middlepoint */
  CV_PROP_RW
  Point pt;

  /* the response, by which the strongest keylines have been selected.
   It's represented by the ratio between line's length and maximum between
   image ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-06 23:56:55.232532

Comments

can't find your pr. a link might be helpful ;)

berak gravatar imageberak ( 2014-08-01 01:44:05 -0600 )edit