[Webkit-unassigned] [Bug 136576] can not find cairo-gl.h when build webkit with gtk on ubuntu 14.04

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 3 07:07:52 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=136576

--- Comment #21 from Alberto Garcia <berto at igalia.com> ---
Ok, so the problem here doesn't seem to have anything to do with the
plugin process, but with what I said in comment #17:

We have this code to detect cairo-gl:

     if (CAIRO_GL_FOUND)
         WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS ON)
     else ()
         WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS OFF)
     endif ()

If cairo-gl is found then ENABLE_ACCELERATED_2D_CANVAS is ON and
everything builds fine.

If cairo-gl is not found then ENABLE_ACCELERATED_2D_CANVAS is OFF and
everything builds fine as well.

However, the build-webkit script sets ENABLE_ACCELERATED_2D_CANVAS to
ON unconditionally in the GTK port (see FeatureList.pm), and the cmake
code above does not override that setting if cairo-gl is not found.

Hence, WebKit expects to find cairo-gl, which is not present, and the
build fails.

Debian does not ship cairo-gl lately (I don't know about other
distros), that's why this error has popped up recently in my system.

The workaround here is to invoke cmake directly or to pass
--cmakeargs=-DENABLE_ACCELERATED_2D_CANVAS=OFF to build-webkit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141203/b9dca301/attachment-0002.html>


More information about the webkit-unassigned mailing list