Android Studio OpenCV NDK:未指定错误,未实现该功能 [英] Android Studio OpenCV NDK: Unspecified error, The function is not implemented
问题描述
我在Windows上的Android Studio中编写.我在本机c ++代码中使用OpenCV.调用该函数时,我在logcat中收到此错误:
I write in Android Studio on Windows. And I use OpenCV in my native c++ code.When calling the function, I get this error in logcat:
"OpenCV错误:未指定的错误(该功能未实现.在Windows,GTK + 2.x或Carbon支持下重建库.如果你在Ubuntu或Debian上,安装libgtk2.0-dev和pkg-config,然后重新运行cmake或配置脚本)在cvShowImage文件中/Volumes/Linux/builds/master_pack-android/opencv/modules/highgui/src/window.cpp,545".
"OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /Volumes/Linux/builds/master_pack-android/opencv/modules/highgui/src/window.cpp, line 545".
我在LInux中找到了如何执行此操作的不同说明,但对于Windows没有找到任何说明.谁知道我该如何解决这个问题?
I found different instructions how to do it in LInux but not any for Windows. Who knows how can I solve this problem?
推荐答案
该错误意味着,我无法在android上使用opencv的gui/windowing函数,因为window函数在此处的工作方式与台式机不同.
The error means, that I cannot use opencv's gui / windowing functions on android, since window functions work much different there, than on a desktop pc.
这意味着,我不能使用imshow()namedWindow()createTrackBar()或waitKey(),而必须使用等效的本机android
This means, that I cannot use imshow() namedWindow() createTrackBar() or waitKey() , but have to use the native android equivalent
(既不是Windows,也不是Linux问题,并且重新编译不会更改它)
(it's neither a windows, not a linux problem, and recompiling won't change it)
这篇关于Android Studio OpenCV NDK:未指定错误,未实现该功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!