delmottea / libCMT

c++ port of the python code from https://github.com/gnebehay/CMT
BSD 3-Clause "New" or "Revised" License
67 stars 45 forks source link

Build problem: calcOpticalFlowPyrLK #21

Closed rbfigueira closed 7 years ago

rbfigueira commented 7 years ago

Hi,

When I build (opencv 3.2.0 on mac) I get this error:

cv::calcOpticalFlowPyrLK(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_InputOutputArray const&, cv::_OutputArray const&, cv::OutputArray const&, cv::Size, int, cv::TermCriteria, int, double)" clang: error: linker command failed with exit code 1 (use -v to see invocation)

The Problem is in this lines (CMT.cpp):

//Calculate forward optical flow for prev_location cv::calcOpticalFlowPyrLK(im_prev, im_gray, pts, nextPts, status, err); //Calculate backward optical flow for prev_location cv::calcOpticalFlowPyrLK(im_gray, im_prev, nextPts, pts_back, status_back, err_back);

How to fix it ? Thanks

rbfigueira commented 7 years ago

Forget... problems with duplicate libraries. Closed!