I am using object detection application on Renesas -Rcar H3 board. Below are the details.
openCV version -2.4.13
Poky version -2.1.3
Yocto Version - v2.23.1.
Host OS for yocto build - Ubuntu 16.04
While running the application on Renesas board, below GTK related error were shown
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or [ 1976.641753] audit: type=1706
Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvWaitKey, fil7
terminate called after throwing an instance of 'cv::Exception'
what(): /media/188.8.131.52_pckage/modules/highgui/src/window.cpp:567: error: (-2) The function is not implemented. Rebuild the library with Wiy
Note: Same error occurred while executing the application on Host system (Ubuntu_16.04) , after installing libgtk2.0-dev_2.24.31-2_arm64.deb package error was resolved.
Tried below options to solve the error
As mentioned in error, we downloaded the libgtk2.0-dev_2.24.31-2_arm64.deb package and copied it to the Renesas board to install manually.
But the board does not have dpkg package manager ,which is required to install .deb. We tried to install this with opkg package manager which is available in Renesas board .
So we have converted libgtk2.0-dev_2.24.31-2_arm64.deb package to libgtk2.0-dev_2.24.31-2_arm64.ipk package which is opkg compatable format.By installing this package , error was not solved.
Tried to add GTK as part of Yocto build. There is a separate layer called meta-gnome in openembedded layer which supports gtk. We cloned that layer, included in yocto build and generated SDK with gnome layer.But there is no package of GTK or related to GTK in rootfs of the Renesas Board.
Please help me to solve GTK related error.
In reply to KhiemN:
In reply to ASTHA:
Regarding to GTK support for OpenCV, we can enable related GTK package(s) by adding two lines into local.conf ($WORK/build/conf/local.conf).
You may append to the end of the file.
PACKAGECONFIG_append_pn-opencv = " gtk"
PACKAGECONFIG_append_pn-nativesdk-opencv = " gtk"
Please rebuild your rootfs, SDK and re-build your OpenCV application after that.
In reply to Herald: