Hello All,
I am encountering an Issue with OpenCV and Wayland Systems. I have succeeded in getting the IMX8QXP Started. Since the display system is Weston Wayland, OpenCV does not render any GUI, and the program simply crashed.
I checked Yocto Reciepes, and the GTK±2.0 is getting built in the process. But OpenCV is not finding the libraries for GTK Framework.
I also checked that the GTK demos and other GTK based softwares work seamlessly.
I am not sure how to get OPENCV GUI with Wayland Display working. Perhaps anyone else has had the same issue ?
What exact hardware (module and carrier board) and software versions of things are you talking about?
@marcel.tx
Hardware Module : Colibri IMX8QXP V1.0B 2GB IT
Hardware Base Board : Aster Board V1.1B
Software Version - Yocto Build - Embedded Linux 4.14.78_1.0.0 with Weston/ Wayland Display Manager.
The Recipe comes with OpenCV and GTK libraries. But the GTK libraries are not included while building OpenCV. I tried adding the Cmake Arguments, but GTK gets built only for the demos and the software, not the development libraries.
And what exact display interface are you actually targeting?
The Recipe comes with OpenCV and GTK libraries.
What recipe?
But the GTK libraries are not included while building OpenCV. I tried adding the Cmake Arguments, but GTK gets built only for the demos and the software, not the development libraries.
Are you talking about building any SDK now?
xwayland with DSI-HDMI display interface is what I have currently working.
The recipe that i am using with bitbake is fsl-image-qt5-validation-imx. I have modified some parameters in the opencv-3.4.2.bb.
With the same recipe fsl-image-qt5-validation-imx i have built an SDK. using -c populate_sdk command.
After I execute the Opencv +QT Application on the Colibri IMX8 I encounter below error
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 cvNamedWindow
I checked if gtk+ was enabled in OpenCV, with the getbuildinformation() function in opencv. The output states that gtk+2.0/3.0 was not found and hence OpenCV was not built with GTK Support.
I also did try executing it as a non-root user, and the application did not crash, and there was no error on the console. But the application failed to render any OpenCV Window on the screen.
Edit : Even though GTK gets installed, the gtk Libraries are not found in pkg-config. I am able to execute the gtk-launch, gtk-play, etc.
You sure you are not mixing Gstreamer aka gst as in gst-launch or gst-play with GTK+? Anyway, that bring-up BSP of yours will soon be deprecated by the upcoming BSP 3.0b2 which might be a better bet for what you are trying to achieve.
Did anyone have a solution to this problem? We are encountering this very problem on the iMX8QXP in 2020 and would be eager to hear if anyone had a solution or workaround.
Hi @Shidle
Welcome to the Toradex Community!
Could you provide the version of the hardware and software of your module?
Regarding your issue, could you share information (used SDK, code/commands, …) to reproduce the issue?
Thanks and best regards,
Jaski