Ask Your Question

Revision history [back]

Opencv GUI with GTK 2

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is now, how to set manually the path for GTK2 ?

Opencv GUI with GTK 2

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is now, how to set manually the path for GTK2 ?

p.p. The 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 cvShowImage, file /home/hristov/workspace/opencv/modules/highgui/src/window.cpp, line 534
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/hristov/workspace/opencv/modules/highgui/src/window.cpp:534: 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 cvShowImage

Aborted

Opencv GUI with GTK 2

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is now, not, how to set manually the path for GTK2 ?

p.p. The 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 cvShowImage, file /home/hristov/workspace/opencv/modules/highgui/src/window.cpp, line 534
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/hristov/workspace/opencv/modules/highgui/src/window.cpp:534: 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 cvShowImage

Aborted

Opencv GUI with GTK 2

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is not, how to set manually the path for GTK2 ?

p.p. The 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 cvShowImage, file /home/hristov/workspace/opencv/modules/highgui/src/window.cpp, line 534
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/hristov/workspace/opencv/modules/highgui/src/window.cpp:534: 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 cvShowImage

Aborted

p.p.p. Any ideas ?

-- checking for module 'gtk+-2.0'
-- package 'gtk+-2.0' not found

Opencv GUI with GTK 2

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is not, how to set manually the path for GTK2 ?

p.p. The 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 cvShowImage, file /home/hristov/workspace/opencv/modules/highgui/src/window.cpp, line 534
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/hristov/workspace/opencv/modules/highgui/src/window.cpp:534: 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 cvShowImage

Aborted

p.p.p. Any ideas ?

-- checking for module 'gtk+-2.0'
-- package 'gtk+-2.0' not found

p.p.p.p. I think that there is problem with the pkg-config. It doesn't find any of the packages. I try to set PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH but it still doesn't find anything.

Opencv GUI with GTK 22 - SOLVED ! ! !

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is not, how to set manually the path for GTK2 ?

p.p. The 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 cvShowImage, file /home/hristov/workspace/opencv/modules/highgui/src/window.cpp, line 534
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/hristov/workspace/opencv/modules/highgui/src/window.cpp:534: 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 cvShowImage

Aborted

p.p.p. Any ideas ?

-- checking for module 'gtk+-2.0'
-- package 'gtk+-2.0' not found

p.p.p.p. I think that there is problem with the pkg-config. It doesn't find any of the packages. I try to set PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH but it still doesn't find anything.

SOLUTION: I found out, that you have to set PKG_CONFIG_PATH to the folder, where are the .pc files. So in my case (for Raspberry Pi with raspbian and cross compilation) is : /you_copy_of_the_root_fs/usr/lib/arm-linux-gnueabihf/pkgconfig/

Opencv GUI with GTK 2 - SOLVED ! ! !

I'm building OpenCV from source for Raspberry PI. Now I'm able to build OpenCV and my own program. Everything is working, except the highgui. And I have set the flag for GTK and GTK2 in cmake but it looks like that during the compilation GTK 2 isn't found and the lib is build without it. So the question:

How I can check if the GTK2 is found and if is not, how to set manually the path for GTK2 ?

p.p. The 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 cvShowImage, file /home/hristov/workspace/opencv/modules/highgui/src/window.cpp, line 534
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/hristov/workspace/opencv/modules/highgui/src/window.cpp:534: 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 cvShowImage

Aborted

p.p.p. Any ideas ?

-- checking for module 'gtk+-2.0'
-- package 'gtk+-2.0' not found

p.p.p.p. I think that there is problem with the pkg-config. It doesn't find any of the packages. I try to set PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH but it still doesn't find anything.

SOLUTION: I found out, that you have to set PKG_CONFIG_PATH to the folder, where are the .pc files. So in my case (for Raspberry Pi with raspbian and cross compilation) is : /you_copy_of_the_root_fs/usr/lib/arm-linux-gnueabihf/pkgconfig/