cross compiling opencv with gtk

asked 2013-10-27 04:07:43 -0600

Aline gravatar image

Hi all, Im trying to cross compile opencv for arm, I followd the instruction in: http://docs.opencv.org/trunk/doc/tutorials/introduction/crosscompilation/arm_crosscompile_with_cmake.html

In the camke output I get:

-- GUI: -- GTK+ 2.x: NO

even though I tried to install gtk any way I know - apt-get install libgtk2.0-dev as requested in: [optional] GTK+2.x or higher, including headers (libgtk2.0-dev) for armeabi(hf); I also tried to compile gtk, downloaded the sources from http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/ and compiled with: https://developer.gnome.org/gtk3/3.4/gtk-building.html

Anyone knows how to install gtk+2.x properly?

when I execute my opencv binary I get: 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-config9 terminate called after throwing an instance of 'cv::Exception' what(): /home/aline/OpenCV/modules/highgui/src/window.cpp:499: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubw

I've installed both libgtk2.0-dev and pkg-config and it doesn't seem to help.

Does anyone knows how to solve it?

Thanks! Aline.

edit retag flag offensive close merge delete