Ask Your Question

G10DRAS's profile - activity

2020-04-05 16:05:16 -0600 received badge  Notable Question (source)
2018-08-29 11:47:54 -0600 received badge  Popular Question (source)
2017-02-19 07:48:08 -0600 commented answer How to build OpenCV-2.4.13 with GTK3+?

Well, I think it is just an Hack, not a proper solution. I will test all my OpenCV code first and then decide on pull request. So far I got one error with GTK+3.0.

""GTK apps crashing with "Attempt to unlock mutex that was not locked"".

I need to comment out cv2.startWindowThread() in my code. Not sure if there are more.

2017-02-19 03:31:01 -0600 commented answer How to build OpenCV-2.4.13 with GTK3+?

Yo! looks better.

2017-02-19 03:19:53 -0600 received badge  Student (source)
2017-02-19 03:16:39 -0600 answered a question How to build OpenCV-2.4.13 with GTK3+?

I further dig in to cmake and src code of opencv-2.4.13. Did some changes and finally able to compile opencv-2.4.13 with GTK+3.0. Now my application is running with opencv-2.4.13 and GTK+3.0.

To compile code with GTK+3.0 do following changes:

  1. ~/opencv-2.4.13/cmake/OpenCVFindLibsGUI.cmake

change gtk+-2.0 ===> gtk+-3.0

--- GTK ---

ocv_clear_vars(HAVE_GTK HAVE_GTHREAD HAVE_GTKGLEXT)
if(WITH_GTK AND NOT HAVE_QT)
  CHECK_MODULE(gtk+-3.0 HAVE_GTK)
  CHECK_MODULE(gthread-2.0 HAVE_GTHREAD)
  if(WITH_OPENGL)
    CHECK_MODULE(gtkglext-1.0 HAVE_GTKGLEXT)
  endif()
endif()
  1. Use attached opencv-2.4.13/modules/highgui/src/window_gtk.cpphttps://drive.google.com/open?id=0Bzm...

and thats all. follow rest of the steps as usual.

2017-02-18 09:01:20 -0600 commented question How to build OpenCV-2.4.13 with GTK3+?

Seems OpenCV-2.4.13 is not supporting GTK+3.x.

2017-02-16 08:53:54 -0600 asked a question How to build OpenCV-2.4.13 with GTK3+?

I have tried following cmake command :

cmake -D WITH_GTK3=ON -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON ..

but I got following warning :

CMake Warning: Manually-specified variables were not used by the project: WITH_GTK3

Is it possible to build OpenCV-2.4.13 with GTK3+ support ? I am try to build it on Raspbian Jessie on Raspberry Pi 2 B.