> 1/ that means that can I embed the GUI without installing the 
> fltk library on the device?

Yes.
That's how static linking works - the bits of the library that your app
uses are compiled into the app at build time.
It then has no need for the fltk lib at runtime, as it carries with it
all the bits it needs...

This can make your app footprint quite a lot smaller - you only need the
bits of the lib that you actually use, whereas if you provide the libs
dynamically you need to provide the whole lib even if you only use a
little bit of it.

The downside of static linking, if you have many apps, is that they all
carry their own private copy of the bits of the lib that they use, and
this can be redundant.

However, on small-footprint devices this is rarely an issue and the
simplicity that static linking provides is usually a win.

> 2/ what is the memory footprint of the library if I will have 
> to install it on the device?

That depends on your target, but the easy way to find out is to find
your lib files and then run "ls -l" to find out how big they are.

Note that there is never any need to install the static libs (the *.a on
*nix or the *.obj on winxx) on a runtime-only system, they are only
useful to a developer.

If you are using dynamic linking you will need to provide the *.so or
*.dll files, again you can find the size easily enough.

Note that dynamic libs are often bigger than static libs, because they
contain additional information to aid the linker at runtime, that the
build-time static linker does not need (it gets additional clues from
the build environment and so does not need to resolve that information
dynamically.)


> 3/ how can we statically compile the library 

The default build of fltk is static so you will only be using the
dynamic linking if you have selected it deliberately. (See the
--enable-shared option to configure.)

This is all pretty basic stuff about building code and tool use, and not
really appropriate for this forum, so I'm a bit surprised you are asking
it. If you don't really grok the differences between basic choices such
as static or dynamic linking, you may find working on embedded targets
rather complicated...





SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to