- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm running the object_detection_demo in my SoC to process an image, but I get the following error:
[ ERROR ] 0opencv(4.8.0)/home/coredla_work/runtime/hps packages/opencv/modules/highgui/src/window.cpp:1272: 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 the script in function 'cvshowImage'
So I ran the sudo apt install libgtk2.0-dev command on Ubuntu and set the CMAKE_FLAGS="${CMAKE_FLAGS}" in build_hpspackages.sh. -DWITH_GTK:BOOL=ON"
CMAKE_FLAGS="${CMAKE_FLAGS} -DWITH_GTK_2_X:BOOL=ON" and re-ran ./create_hps_image.sh, but the generated executable still reports the above error.
In runtime/embedded_arm_sdk, I found that after running source environment-setup-linux, the GTK version number cannot be returned using pkg-config --modversion gtk+-2.0. Therefore, I would like to know how to install the libgtk2.0 library when cross-compiling for embedded_arm_sdk.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi STATEABC,
How you install or build OpenCV?
Below is the common solution for the encountered OpenCV error:
https://bobbyhadz.com/blog/python-error-unspecified-error-the-function-is-not-implemented
Try this command to install target-specific GTK2 Development libraries:
sudo apt-get install libgtk2.0-dev:armhf
Regards,
Peh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thanks so much for your solution, but it doesn't work for me.
I installed OpenCV according to the instructions at https://www.intel.com/content/www/us/en/docs/programmable/768970/2024-3/installing-toolkit.html
I tried installing it using sudo apt-get install libgtk2.0-dev:armhf, but I get the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgtk2.0-dev:armhf
E: Couldn't find any package by glob 'libgtk2.0-dev'
E: Couldn't find any package by regex 'libgtk2.0-dev'

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page