Bug#869975: [opencv] bug in debian/rules -> it isn't compiled with OPENGL=ON

Mattia Rizzolo mattia at debian.org
Mon Jul 31 08:49:01 UTC 2017


On Fri, Jul 28, 2017 at 05:13:07PM +0200, Mattia Rizzolo wrote:
> On Fri, Jul 28, 2017 at 12:21:32PM +0200, Jean Jacques BRUCKER wrote:
> > There should be missing an "else" in debian/rules which implies
> > WITH_OPENGL is always ON for ubuntu (overriding previous if-else
> > statement) and always undefined for other distributions.

Then, apparently OpenGL is not really feasible with the gtk build we are
doing... from cmake/OpenCVFindLibsGUI.cmake:

|# --- OpenGl ---
|ocv_clear_vars(HAVE_OPENGL HAVE_QT_OPENGL)
|if(WITH_OPENGL)
|  if(WITH_WIN32UI OR (HAVE_QT AND QT_QTOPENGL_FOUND) OR HAVE_GTKGLEXT)
|    find_package (OpenGL QUIET)
|    if(OPENGL_FOUND)

We are not building with Qt (ISTR there were good reason for not do it)
and instead we are building with GTK3.  Now, that HAVE_GTKGLEXT is:

|  if(WITH_OPENGL AND NOT HAVE_GTK3)
|    CHECK_MODULE(gtkglext-1.0 HAVE_GTKGLEXT)
|  endif()

So apparently it can never be set with GTK3…

Also, apparently I can't remember why I added that check last year, but
given the current status I'm going to just drop it, as it's not useful
to anybody.


-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20170731/0dbc4212/attachment.sig>


More information about the debian-science-maintainers mailing list