On Sat, 8 Apr 2006, Panagiotis Sidiropoulos wrote:

After sending my first Linux Lazarus application to beta testers for
evaluation and testing, I got complains even from those advanced users
because of alot of application dependencies:

Components on the form:
- TDataSource
- TDBF
- TActionList
- TMainMenu
- TImageList
- TSaveDialog
- TPopupMenu
- TTimer
- TSpeedButton
- TComboBox
- TPanel
- TListBox
- TSplitter
- TIPHtmlPanel
- TStatusBar

ldd against executable report following dependancies:
[cut]

- Is it possible somehow to avoid including all these dependencies?

Yes, several:
1. Rewrite the GTK/X11 units so they load all needed libraries on-demand.
   The problem is that GTK and some X library units are bound statically to all
   libraries.
2. Recompile the GTK/X11/LCL units with smartlinking. This will drastically
   increase compile times, but your app will be smaller and will include
   only those libraries that are actually used.

- Can someone direct me on how statically include libraries to executable?

You'd need all libraries available in static form, and then pass
-k--static to the compiler.

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to