AnsweredAssumed Answered

eIQ sample application error in 4.19.35_1.1.0

Question asked by Massimo Martelli on Feb 5, 2020
Latest reply on Mar 24, 2020 by Vanessa Maegima



I have the following error when using the examples from the SDK binaries and the i.mx8MQ EVK:


root@imx8mqevk:/usr/share/OpenCV/samples/bin# ./example_dnn_object_detection -width=1024 -height=1024 -scale=0.00392 -input=dog416.png -rgb -zoo=models.yml yolo
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.0.1) /usr/src/debug/opencv/4.0.1.imx-r0/git/modules/highgui/src/window.cpp:610: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvNamedWindow'



I flashed the full image "imx-image-full-imx8mqevk.sdcard".

It's a build error, I believe the sample was built without windowing system support.  Am I right?
See:   @line 610 we are really falling in the “#else // No windowing system present at compile time ;-(


How shall I fix it?


Thanks, best regards