berryconda icon indicating copy to clipboard operation
berryconda copied to clipboard

OPencv3 with libgtk2 bindings

Open Esiravegna opened this issue 7 years ago • 7 comments

Do you tink it is possible to have this package with these bindings available? I tried to compile opencv on my own to no avail. Thanks for all your hard work!

Esiravegna avatar Dec 31 '17 00:12 Esiravegna

More data:

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 cvWaitKey, file /home/jhelmus/conda/conda-bld/opencv_1512148862464/work/modules/highgui/src/window.cpp, line 676
2017-12-31 15:00:31,351 - wand.detector - ERROR - Error detecting a wand: /home/jhelmus/conda/conda-bld/opencv_1512148862464/work/modules/highgui/src/window.cpp:676: error: (-2) 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 function cvWaitKey

Esiravegna avatar Dec 31 '17 18:12 Esiravegna

:thumbsup:

lodagro avatar Jan 03 '18 23:01 lodagro

I have not been able to determine how to build OpenCV with GTK support in a manner that is consistent with how conda packages should be distributed. Namely, GTK and its dependency should be distributed as conda package rather than relying on the system to provide these libraries. The OpenCV recipe in conda-forge has GUI support via Qt but this would be very challenging to replicate on the Raspberry Pi.

I will not be working on a OpenCV build with GTK but would be happy to review a recipe that support it.

jjhelmus avatar Jan 16 '18 14:01 jjhelmus

Hey @jjhelmus , thanks for your reply! Would this help?

Esiravegna avatar Jan 16 '18 15:01 Esiravegna

@Esiravegna Not really. This problem is not getting OpenCV to build with GTK, rather it is getting GTK and its dependencies compiled as a conda package.

jjhelmus avatar Jan 16 '18 15:01 jjhelmus

Right, thanks again. As per the creators, this recipe builds against libgtk2, and it appears that it only requires to have it installed.

Esiravegna avatar Jan 16 '18 15:01 Esiravegna

That recipe uses QT for the GUI not GTK.

jjhelmus avatar Jan 16 '18 15:01 jjhelmus