Solved update failed for ffmpeg and ImageMagic6 on the web server which require cairo due to no OpenGL

Hello,

Today I have tried to update my web server and stuck with cario port. Previously cario wasn't required for ImageMagick6-nox11, ffmpeg, php73-pecl-imagick and harfbuzz. here my output:

Code:
checking for GL/gl.h... no
checking whether cairo's OpenGL surface backend feature could be enabled... no (gl.pc nor OpenGL headers not found)
configure: error:  OpenGL surface backend feature could not be enabled
===>  Script "configure" failed unexpectedly.
Please report the problem to desktop@FreeBSD.org [maintainer] and attach the
"/usr/ports/graphics/cairo/work/cairo-1.16.0/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/cairo
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/cairo

===>>> make build failed for graphics/cairo
===>>> Aborting update


I don't have X11, no need.
I didn't found any relative options to switch off...

thanks
 
I didn't found any relative options to switch off...

Do you need the SVG option? It's that option that pulls in Cairo.

Code:
SVG_DESC=               SVG vector image format support (via librsvg, implies the x11 option)
SVG_CONFIGURE_WITH=     rsvg
SVG_USE=                gnome=cairo,gdkpixbuf2,librsvg2
SVG_IMPLIES=            X11
 
SirDice, Thanks for reply. The solution is more trivial. :) In graphics/cairo/ it is possible to disable both OPENGL and GLESV2 while it is radio option and OPENGL was marked by default. Which is a bit confusing ...
here is actual config of the port which worked to me
Code:
~~~ cat /var/db/ports/graphics_cairo/options ~~~
_OPTIONS_READ=cairo-1.16.0_1,3
_FILE_COMPLETE_OPTIONS_LIST=DOCS GLIB X11 XCB OPENGL GLESV2
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=GLIB
OPTIONS_FILE_UNSET+=X11
OPTIONS_FILE_SET+=XCB
OPTIONS_FILE_UNSET+=OPENGL  # <<<<<
OPTIONS_FILE_UNSET+=GLESV2  # <<<<<
~~~ end cat /var/db/ports/graphics_cairo/options ~~~
And magic happened :)

someone may find this post useful ...
Thanks !
 
Last edited:
I've been fighting this problem for a few days now, not realizing that option is un-checkable as I assumed it was one or the other.
Unchecking the radio option gets me past the configure phase. Thanks!
 
Back
Top