Android studio: undefined reference to cv::Stitcher

asked 2019-07-10 20:10:57 -0500

FanFM gravatar image

I am using opencv library. I want do

#include <jni.h>
#include <string>
#include "opencv2/opencv.hpp"
#include "opencv2/stitching.hpp"

using namespace std;
using namespace cv;
...
Ptr<cv::Stitcher> stitcher = Stitcher::create();

but I have error:

undefined reference to `cv::Stitcher::create(cv::Stitcher::Mode)'
edit retag flag offensive close merge delete