FLTK logo

Re: [fltk.general] mention how to compile FLTK 1.5 on Linux as shared library with debug and optimization

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

Re: mention how to compile FLTK 1.5 on Linux as shared library with debug and optimization "'Albrecht Schlosser' via fltk.general" 05:43 Sep 09  
 
On 9/9/25 11:03 Basile Starynkevitch wrote:
Please mention on the FLTK website in an easily readable way how to compile FLTK 1.5 on Linux/Debian with both debug information and optimizations as a shared (not static) library

This is not something we would mention "on the FLTK website", this would rather be in the documentation, and we can't publish special advice for a particular system like "Linux/Debian".

Since many recent GCC compilers accept all of `-fPIC -shared -O -g`

FLTK 1.5 uses CMake exclusively, and CMake adds appropriate compiler switches (not only for gcc) automatically. What you want seems to be done if you enable the build of shared libraries in "Debug" mode, i.e.

  $ cmake -D CMAKE_BUILD_TYPE=Debug -D FLTK_BUILD_SHARED_LIBS=ON # ... more options

This is all documented in README.CMake.txt which every user building the library should consult anyway.

Or did I miss anything?

I don't think that it is appropriate to explicitly mention what you proposed above. Other users would need to know which other compiler flags *they* want to set. This is up to the user to decide.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/d241a759-f62b-4bae-b5dd-12d132075b32%40aljus.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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'.