android-jni does not link (Bug #780)


Added by Cosmin Humeniuc about 14 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Ethan Rublee % Done:

0%

Category:android
Target version:2.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Running "make" in android-jni fails with the following errors:

/home/cosmin/projects/opencv/android/build/obj/local/armeabi-v7a/libopencv_calib3d.a(calibinit.o): In function @cv::findCirclesGrid(cv::Mat const&, cv::Size_<int>, std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > >&, int)':
/home/cosmin/projects/opencv/modules/calib3d/src/calibinit.cpp:1940: undefined reference to @cv::SimpleBlobDetector::Params::Params()'
/home/cosmin/projects/opencv/modules/calib3d/src/calibinit.cpp:1940: undefined reference to @cv::SimpleBlobDetector::SimpleBlobDetector(cv::SimpleBlobDetector::Params const&)'
/home/cosmin/projects/opencv/modules/calib3d/src/calibinit.cpp:1943: undefined reference to @cv::FeatureDetector::detect(cv::Mat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::Mat const&) const'
collect2: ld returned 1 exit status

This can be fixed by linking opencv_calib3d before opencv_features2d (because opencv_features2d defines SimpleBlobDetector).


Associated revisions

Revision 5cfb6a84
Added by Andrey Kamaev almost 12 years ago

Merge pull request #780 from sivapvarma:2.4

History

Updated by Ethan Rublee about 14 years ago

Thanks, fixed in r4450

Rerun cmake from you opencv android build directory to update the android-opencv.mk file.

Updated by Ethan Rublee about 14 years ago

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Updated by Kirill Kornyakov almost 13 years ago

  • Target version set to 2.3

Also available in: Atom PDF