Android Studio OpenCV NDK:未指定的错误,函数未实现
Android Studio OpenCV NDK: Unspecified error, The function is not implemented
我在 Windows 的 Android Studio 中写作。我在我的原生 c++ code.When 中使用 OpenCV 调用函数,我在 logcat 中得到这个错误:
"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 中没有找到。谁知道我该如何解决这个问题?
很可能是您的库(从 NDK-Build 构建)构建错误或不存在。因此,您访问的任何OpenCV C++库都不存在。
您将需要 JAVAH 您的 java 文件(以具有本机 C++ 的文件为准)代码,然后是 NDK-Build 生成的 CPP 文件。
当然,您需要自定义 Android.MK 和 Application.MK,OpenCV 在其官方网站 here!
上对其进行了记录
错误意味着,我无法在 android 上使用 opencv 的 gui / windowing 函数,因为 window 函数在那里的工作方式与在台式机上大不相同。
这意味着我不能使用 imshow() namedWindow() createTrackBar() 或 waitKey() ,但必须使用本机 android 等价物
(既不是windows,也不是linux的问题,重新编译也改不了)
我在 Windows 的 Android Studio 中写作。我在我的原生 c++ code.When 中使用 OpenCV 调用函数,我在 logcat 中得到这个错误:
"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 中没有找到。谁知道我该如何解决这个问题?
很可能是您的库(从 NDK-Build 构建)构建错误或不存在。因此,您访问的任何OpenCV C++库都不存在。
您将需要 JAVAH 您的 java 文件(以具有本机 C++ 的文件为准)代码,然后是 NDK-Build 生成的 CPP 文件。
当然,您需要自定义 Android.MK 和 Application.MK,OpenCV 在其官方网站 here!
上对其进行了记录错误意味着,我无法在 android 上使用 opencv 的 gui / windowing 函数,因为 window 函数在那里的工作方式与在台式机上大不相同。
这意味着我不能使用 imshow() namedWindow() createTrackBar() 或 waitKey() ,但必须使用本机 android 等价物
(既不是windows,也不是linux的问题,重新编译也改不了)