STR #3347

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features ]

STR #3347

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Image Support
Summary:prefixing embedded jpeg/png/zlib symbols
Created By:djcj
Assigned To:AlbrechtS
Fix Version:1.4.0
Fix Commit:796a9bf23e63dfc6834b9fd04c10c8c27f894941
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Name/Time/Date Filename/Size top right image
#1 djcj
23:54 Nov 01, 2016
#2 djcj
08:53 Mar 21, 2017
#3 djcj
08:53 Mar 21, 2017
#4 djcj
08:53 Mar 21, 2017
bottom left image   bottom right image

Trouble Report Comments:

Name/Time/Date Text top right image
#1 djcj
23:54 Nov 01, 2016
Is it possible to prefix the symbols of the jpeg/png/zlib libraries when the build was configured to not use the system libraries?
Because I had some issues with the native file chooser, because the png library version used by the system Gtk libraries differed.
And linking against shared png library might be problematic too, if I want a program to be portable.

You can prefix the libpng symbols with "cmake -DPNG_PREFIX=yourprefixhere_"

Patches for jpeg and zlib are attached.
#2 djcj
08:56 Mar 21, 2017
I've added new patches for libpng, jpeg and zlib (for newer versions).
Use `nm --extern-only --defined-only libfltk_<jpeg/png/z>.a` to check if the prefixes were set correctly.
#3 AlbrechtS
10:30 Mar 02, 2019
Closed on request by the OP after some discussions in fltk.general.

See thread "Fl_Native_File_Chooser() crash with FLTK 1.4" and particularly this post:
#4 AlbrechtS
04:28 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.
bottom left image   bottom right image

Return to Bugs & Features ]


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