Re: Fedora 39 Native File Chooser issues when compiled on RH8.9.1
"'Albrecht Schlosser' via fltk.coredev"
Apr 09, 2024
On 4/9/24 20:49 'Albrecht Schlosser' via fltk.coredev wrote:
FLTK
loads the GTK filechooser dynamically if it is found on the system
and if it is not disabled by the user or system option
Fl::option(OPTION_PRINTER_USES_GTK). That's why it doesn't show up
in
linked dependencies. Look for 'libgtk' in the FLTK sources, e.g.
`git
grep libgtk`. Looks like the library is either "libgtk-3" or
"libgtk-x11-2.0" but this may not help you.
While I wrote about "symbol prefixing" in another post I remembered
that the dynamic loading of libgtk was one of the
reasons why we introduced "symbol prefixing" in our bundled image
libs. It turned out that libgtk depends on a lot of stuff, but
particularly on libjpeg and libpng and indirectly on zlib. W/o going
into details: this caused crashes when different ABI's were present
because symbols (function entry points) were incorrectly resolved.
Since the GTK filechooser can show previews of images and some
icons...
TL;DR: if there's a chance that your user has any library both FLTK
(your image) *and* libgtk depend on and if there may be different
versions on your build system and the user's system, then ... see
above: ABI mismatch can cause unforeseeable effects.
FYI, on my system we have this very long list of dependencies:
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.