Discussion:
Dynamic linking with fltk 1.3 ?
Nikita Zlobin
2013-04-09 16:34:46 UTC
Permalink
Hello. I determined, that fltk 1.1 by default proposes shared versions of its libraries, when 1.3 - static. I noticed, that fltk has own cmake files in /usr/lib/fltk directory.

Tried to look into them, but probably i need to learn cmake better. All i could understand is that in 1.3 FLTKLibraries.cmake adds (not sure, what is destination, may be some priority list?) first static, than dynamic libraries.

Is it complete at all?
Ian MacArthur
2013-04-09 20:57:48 UTC
Permalink
Post by Nikita Zlobin
Hello. I determined, that fltk 1.1 by default proposes shared versions of its libraries, when 1.3 - static.
All fltk variants will support either dynamic or static linking. The default in the configure scripts is static linking, but if you configure the fltk libs with the --enable-shared option set, then the dynamic libs will be generated (and used in preference to the static libs, though they will also be created of course.)
Post by Nikita Zlobin
I noticed, that fltk has own cmake files in /usr/lib/fltk directory.
The Cmake files are not actively maintained - I do not think any of the core dev team actually uses Cmake much, if at all.

That said, I am led to believe that others have used them with success, so if you want ot go ahaed with them they can probably work for you.
Post by Nikita Zlobin
Tried to look into them, but probably i need to learn cmake better.
Yes, probably - and if you get them working, we accept patches...!
Post by Nikita Zlobin
All i could understand is that in 1.3 FLTKLibraries.cmake adds (not sure, what is destination, may be some priority list?) first static, than dynamic libraries.
Is it complete at all?
Loading...