Hi, this is a minor issue but pretty visible. In latest fltk from github, every run of fltk-config prints "grep: /nix/store/c20mk84ykvyfzixcxr0yg41sbrxsrfx4-fltk-1.4-c0f5080cb056919e898ac572e72fd62568dc307a/bin/FL/fl_config.h: No such file or directory" which is quite frequent if build files are using it. I tracked this down to 6546814a23,
Oh, yeah that's mine.. was to get the new cairo example in examples/cairo-draw-x.cxx
to build, as we don't currently have a way to detect cairo any
other way. (the old
technique was flawed too, which checked for the presence of
the .lib)
Just pushed b275ff071
which should solve that -- can you try that and follow up?
Yes, the right solution is to tweak 'configure' to set a
variable and have that be
expanded into fltk-config.
I'm afraid I don't know 'configure' at all, so I'm not the one
that could implement
that change -- I think Albrecht mentioned it was something he
was going to adapt.
On 23 Jan 2022, at 13:21, Albrecht Schlosser wrote:The current Cairo support is not really a "backend", i.e. it doesn't turn FLTK into drawing with Cairo. It only enables users to draw into an Fl_Cairo_Window in a callback rather than deriving a subclass or setting up drawing with Cairo manually (which should be possible with the stock FLTK library w/o its limited Cairo support as well.This is what I do (use “stock” fltk, without the Cairo back-end, to draw with Cairo “manually” into my window) when I want to use Cairo.
On 23 Jan 2022, at 17:27, Albrecht Schlosser wrote:Ian, I'd be interested in your "manual" way to setup for Cairo drawing in stock fltk for two reasons: (1) curiosity and maybe using it for simple drawings (2) as another example for drawing with Cairo in FLTK.I’ve attached an old example below. TBH, it wasn’t the example I was looking for, but this seems to be what I have on this Mac... The other “simple” example must be on another machine... somewhere...
That all said, I think I have posted this before,
and have a vague recollection of others complaining it didn’t work for them, or that the origins are weird or some such (I forget what was wrong) but it works OK for me, on this Mac, and on Win10 and some debian box...
On 1/23/22 12:10, Evan Laforge wrote:
I'm interested in cairo because I have scrolling and zooming thing in pure fltk, that tried to do incremental redraw on scrolling, but was slow[..]
Evan: can you verify the fix commit I pushed last night
solved your issue?
My request for follow up may have been buried by the OT
thread, e.g.:
I tracked this down to 6546814a23,
Oh, yeah that's mine.. that was to get the new cairo example in examples/cairo-draw-x.cxx