Skip to content

failed to compile from bin/classify #1

Description

@eric-lee-ltk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions