FLTK logo

[fltk.general] Re: 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 Manolo 03:43 Sep 10  
 

Le mardi 9 septembre 2025 à 11:03:54 UTC+2, bas...@starynkevitch.net a écrit :
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

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

I believe what you are looking for is CMake's option CMAKE_CXX_FLAGS.

These commands will build the FLTK shared libraries with "-fPIC -O -g":

 cmake -B -your-build-dir -S your-source-dir/ -DCMAKE_CXX_FLAGS="-fPIC -O" -DCMAKE_BUILD_TYPE=Debug -DFLTK_BUILD_SHARED_LIBS=1
 make -j6 fltk_images-shared 

--
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/cd2b5311-406e-430b-87e8-0f95b7e9f624n%40googlegroups.com.
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'.