我可以使用android sdk 4.4(kitkat)在模拟器中使用opencv运行应用程序。 但是在设备软糖4.2.2中运行时遇到问题。
我正在关注此http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/链接
日志: -
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r4.3.0.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r4.0.3.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r4.4.0.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r2.3.3.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r4.2.0.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r2.2.0.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r4.0.0.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r4.1.1.so
06-02 15:04:23.843: E/OpenCV::camera(12207): ||libnative_camera_r3.0.1.so
06-02 15:04:23.844: E/linker(12207): soinfo_relocate(linker.cpp:987): cannot locate symbol "_ZN7android17IConsumerListenerD2Ev" referenced by "libnative_camera_r4.4.0.so"...
06-02 15:04:23.846: E/linker(12207): soinfo_relocate(linker.cpp:987): cannot locate symbol "_ZN7android6Camera17setPreviewTextureERKNS_2spINS_22IGraphicBufferProducerEEE" referenced by "libnative_camera_r4.3.0.so"...
06-02 15:04:25.216: A/libc(12207): Fatal signal 11 (SIGSEGV) at 0x00000003 (code=1), thread 12207 (encv.samples.fd)
如果有人有想法。请回复。谢谢。
答案 0 :(得分:0)
你没有很好地实现你的课程。
您在标题上遗漏了某些内容,或者您错过了将共享库添加到您的NDK中。