2.4.6 opencv2.framework - iOS linker error cv::FeatureDetector::detect

asked 2013-07-29 02:21:56 -0600

Opelfahrer gravatar image

hey,

I tried to compile some code snippets with the most recent opencv 2.4.6, downloading and including the IOS opencv2.framework. Unfortunately I'm stuck with the following error message during linking:

  #include <opencv2/features2d/features2d.hpp>
  ...
  cv::Mat descriptorsA, descriptorsB;
  std::vector<cv::KeyPoint> keypointsA, keypointsB;
  //set brisk parameters            
  int Threshl=60;
  int Octaves=4; // (pyramid layer) from which the keypoint has been extracted
  float PatternScales=1.0f;
  //declare a variable BRISKD of the type cv::BRISK
  cv::BRISK  BRISKD(Threshl,Octaves,PatternScales);//initialize algoritm
  BRISKD.create("Feature2D.BRISK");
  BRISKD.detect(curIm, keypointsA);
  BRISKD.compute(curIm, keypointsA,descriptorsA);

The errors are:

  Undefined symbols for architecture armv7:
  "cv::FeatureDetector::detect(cv::Mat const&, std::vector<cv::KeyPoint, 
  std::allocator<cv::KeyPoint> >&, cv::Mat const&) const", referenced from:
      detect(char const*, cv::Mat&, float, float) in 
  libDetector.a(ObjectDetector.o)
  "cv::Feature2D::create(std::string const&)", referenced from:
      detect(char const*, cv::Mat&, float, float) in   l
  libDetector.a(ObjectDetector.o)
  "cv::DescriptorExtractor::compute(cv::Mat const&, std::vector<cv::KeyPoint,  
  std::allocator<cv::KeyPoint> >&, cv::Mat&) const", referenced from:
      detect(char const*, cv::Mat&, float, float) in 
  libDetector.a(ObjectDetector.o)
  ld: symbol(s) not found for architecture armv7

I can't actually find any error with this code, nor with my configuration. Any ideas?

edit retag flag offensive close merge delete

Comments

BUMP.... NOONE?

Opelfahrer gravatar imageOpelfahrer ( 2013-07-30 06:06:38 -0600 )edit

Same here when using the opencv iOS pod. Seems to have Feature2D symbols in it, but I'm getting: "Undefined symbol 'cv::FeatureDetector::detect(cv::Mat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::Mat const&) const' referenced from:"

metatation gravatar imagemetatation ( 2013-10-16 15:56:05 -0600 )edit