1 | initial version |
OK I struggled with the same problem and finally got it resolved for OpenCV library version 2.4.9.0 rev 1. I first added "OPENCV_LIB_TYPE:=STATIC" in Android.mk to try linking the library statically. The linker gave a bunch of error about - what else - std::string. Then I happened to notice that there was this line "APP_STL := stlport_static" in Application.mk. I don't know how it got there but I changed it to "APP_STL := gnustl_static" and everything worked. I hope this helps someone else having the same issue.