Skip to content

Add Cairo include directories for FLTK 1.4 widget opcodes - #33

Merged
vlazzarini merged 1 commit into
csound:developfrom
Xeonacid:fix-fltk-cairo-includes
Sep 1, 2026
Merged

Add Cairo include directories for FLTK 1.4 widget opcodes#33
vlazzarini merged 1 commit into
csound:developfrom
Xeonacid:fix-fltk-cairo-includes

Conversation

@Xeonacid

@Xeonacid Xeonacid commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

FLTK 1.4 built with Cairo support (FLTK_HAVE_CAIRO) includes <cairo.h> from <FL/Fl.H> via Fl_Cairo.H. cairo.h lives under a subdirectory such as /usr/include/cairo, which CMake's module-mode FindFLTK does not add to the include path.

Without those directories, building the widgets and virtual keyboard plugins fails with:

fatal error: cairo.h: No such file or directory

Look up cairo.h (PATH_SUFFIXES cairo) and, when found, add its include directory to both FLTK plugin targets. This is a no-op for FLTK 1.3 builds that do not pull in Cairo headers.

FLTK 1.4 built with Cairo support (FLTK_HAVE_CAIRO) includes <cairo.h>
from <FL/Fl.H> via Fl_Cairo.H. cairo.h lives under a subdirectory such
as /usr/include/cairo, which CMake's module-mode FindFLTK does not add
to the include path.

Without those directories, building the widgets and virtual keyboard
plugins fails with:

  fatal error: cairo.h: No such file or directory

Look up cairo.h (PATH_SUFFIXES cairo) and, when found, add its include
directory to both FLTK plugin targets. This is a no-op for FLTK 1.3
builds that do not pull in Cairo headers.
@vlazzarini
vlazzarini merged commit bb4bb83 into csound:develop Sep 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants