Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. OpenCV: highgui library not implemented
Forum Updated to NodeBB v4.3 + New Features

OpenCV: highgui library not implemented

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mmerlange
    wrote on last edited by
    #1

    Hi,

    Qt/OpenCV runs OK on my laptop, most features also on my android 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 )

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Cocoa/Carbon are for OS X build of OpenCV, you are using an android build. You should rather ask this question on the OpenCV forums

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mmerlange
        wrote on last edited by
        #3

        OK, thanks Sgaist.
        Done.
        If I get an answer, I'll post it.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved