Ask Your Question

Android Studio OpenCV NDK: Unspecified error, The function is not implemented

asked 2016-01-29 05:46:24 -0500

imported_lis gravatar image

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 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".

I found different instructions how to do it in LInux but not any for Windows. Who knows how can I solve this problem?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-01-29 06:14:34 -0500

berak gravatar image

the error means, that you cannot use opencv's gui / windowing functions on android, since window functions work much different there, than on a desktop pc.

this means, that you cannot use imshow() namedWindow() createTrackBar() or waitKey() , but have to use the native android equivalent

(it's neither a windows, not a linux problem, and recompiling won't change it)

edit flag offensive delete link more


Thank you! It really helped me.

imported_lis gravatar imageimported_lis ( 2016-01-29 06:48:00 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-01-29 05:46:24 -0500

Seen: 348 times

Last updated: Jan 29 '16