FLTK logo

Re: [fltk/fltk] Fl_Cairo_Window docs should describe the default coordinate system (Issue #358)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Fl_Cairo_Window docs should describe the default coordinate system (Issue #358) Albrecht Schlosser Jan 16, 2022  
 

Will follow up with a CMakeLists.txt patch once I get some time to test it.

@erco77 I took a stab at this (because it's CMake related) and it works well both with and without Cairo enabled. Here's my patch:
issue-358_cmake.diff.txt

I tried your patch (cd examples; make) and noticed that it works with a Cairo-enabled lib but fails if FLTK is not built with Cairo. AFAICT the issue is in fltk-config --use-cairo ... which doesn't work correctly if Cairo is disabled (should it?).

Unfortunately I don't know of a simple way to "know" (in the Makefile) if FLTK has been configured with or w/o Cairo and fltk-config does a very questionable check (does lib/libfltk_cairo.a exist?) which is (a) error prone and (b) will not work in the future because I'm going to remove libfltk_cairo completely.

I believe the better way to go in examples/Makefile would be to use the variables defined in ../makeinclude which is included in examples/Makefile anyway but that's something I'd like to leave to you.

That said, feel free to use my CMake patch...


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/358/1013948122@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.