Ask Your Question

mmerlange's profile - activity

2014-08-15 16:28:17 -0600 asked a question OpenCV4Android: highgui library not implemented?

Hi,

Qt/OpenCV runs OK on my laptop, most features also on my android (youhou) but… I’m stuck when exporting on Android with highgui functions. I have OSX 10.7,Qt 5.3.1 and openCV4Android 2.4.9 (already compiled version)

When I try to use the highgui library, I get a nice “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, …” In OpenCV source, it says I need Cocoa or Carbon. Since I’m using OSX, both should be there.

Someone has a clue please? Thanks a lot, Michaël

if defined(HAVE_WIN32UI) // see window_w32.cpp

elif defined (HAVE_GTK) // see window_gtk.cpp

elif defined (HAVE_COCOA) // see window_carbon.cpp

elif defined (HAVE_CARBON)

elif defined (HAVE_QT) //YV see window_QT.cpp

else

// No windowing system present at compile time ;-( // // We will build place holders that don’t break the API but give an error // at runtime. This way people can choose to replace an installed HighGUI // version with a more capable one without a need to recompile dependent // applications or libraries. #define CV_NO_GUI_ERROR(funcname) \ cvError( CV_StsError, funcname, \ “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”, \ FILE, LINE )