-
Notifications
You must be signed in to change notification settings - Fork 14
Description
when compiling this project, I encountered the following error:
Linking CXX executable bin/classify
/tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference to cv::FeatureDetector::~FeatureDetector()' /tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference tocv::FeatureDetector::~FeatureDetector()'
/tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference to cv::FeatureDetector::~FeatureDetector()' /tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference toCvRTrees::CvRTrees()'
/tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference to CvMLData::get_values() const' /tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference tocv::FeatureDetector::empty() const'
/tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference to CvMLData::read_csv(char const*)' /tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference toCvMLData::~CvMLData()'
/tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference to CvMLData::set_delimiter(char)' /tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference toCvMLData::CvMLData()'
/tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference to cv::HOGDescriptor::computeGradient(cv::Mat const&, cv::Mat&, cv::Mat&, cv::Size_<int>, cv::Size_<int>) const' /tmp/LTPTextDetector/3rdparty/.././libtext_detect.so: undefined reference totypeinfo for cv::FeatureDetector'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/classify] Error 1
make[1]: *** [CMakeFiles/bin/classify.dir/all] Error 2
make: *** [all] Error 2
And I have tried all version of OpenCV from 2.4.0 to 2.4.10, but it turned out the same result.