| [ Return to Bugs & Features | SVN ⇄ GIT ]
STR #3514
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 4 - High, e.g. key functionality not working |
Scope: | 2 - Specific to an operating system |
Subsystem: | Image Support |
Summary: | Bundled image libs on Linux are incompatible with Xft |
Version: | 1.4-current |
Created By: | AlbrechtS |
Assigned To: | AlbrechtS |
Fix Version: | 1.4.0 |
Fix Commit: | 796a9bf23e63dfc6834b9fd04c10c8c27f894941 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | AlbrechtS 03:00 Feb 28, 2019 |
| Under Linux it is not possible to build any application with the bundled image libs with Xft because libXft.so is linked to a shared version of libpng and indirectly to libz.
From my Ubuntu 18.04 system (edited to remove unnecessary details):
$ ldd /usr/lib/x86_64-linux-gnu/libXft.so.2 | egrep 'jpeg|png|libz' libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00..) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00..)
One possible solution would be to disable --enable-localpng and --enable-localzlib configure switches and corresponding CMake options if FLTK is configured to use Xft (which is the default). | |
|
#2 | AlbrechtS 03:04 Feb 28, 2019 |
| For further information see the thread "Fl_Native_File_Chooser() crash with FLTK 1.4" in fltk.general: https://groups.google.com/d/msg/fltkgeneral/zYbxVV7IOY0/v1A0dVJABQAJ
and particularly Manolo's reply: "OK. I can replicate what you report under Ubuntu with test/native-filechooser." https://groups.google.com/d/msg/fltkgeneral/zYbxVV7IOY0/WiOJ-pYoBgAJ
and follow-up's. | |
|
#3 | djcj 12:00 Feb 28, 2019 |
| Giving at least a warning in such a case would be nice. | |
|
#4 | AlbrechtS 02:25 Mar 03, 2019 |
| Sure, that's the intention. | |
|
#5 | AlbrechtS 04:05 May 27, 2021 |
| Related GitHub Issue #232: https://github.com/fltk/fltk/issues/232
[fltk 1.4.x/Linux] application invoking native filechooser crashes under linux if fltk built with --enable-localpng | |
|
#6 | AlbrechtS 04:31 Nov 16, 2021 |
| Fixed in Git repository.
FTR: After recent issues caused by incompatible Xft and image libraries we decided to prefix the bundled image libs with 'fltk_' to avoid conflicts. References:
- STR 3347: prefixing embedded jpeg/png/zlib symbols
- STR 3514: Bundled image libs on Linux are incompatible with Xft
- GitHub Issue #232: [fltk 1.4.x/Linux] application invoking native filechooser crashes under linux if fltk built with --enable-localpng
- GitHub Issue #289: Printing without and with GTK
- GitHub PR #292: Prefix bundled libs
- Git merge commit: 796a9bf23e63dfc6834b9fd04c10c8c27f894941
@djcj/darealshinji: Thanks for the patches, particularly jpeg-9b.patch. I used it in a modified form. | |
[ Return to Bugs & Features ]
|
| |