Is it feasible to bundle dynamic libraries with dependencies in a Tcl Starkit/Starpack? -


i've written tcl script uses tclmagick extension graphicsmagick.

for graphicsmagick, i've both windows dlls , linux files. want able make 2 starkit/starpack applications bundled libraries: 1 windows (with dlls) , 1 linux (with files).

is reasonable? can done?

edit

i cannot seem use dlls dependencies under windows. in case, want use tclmagick extension, needs graphicsmagick's dlls , starkit cannot find those. should in situation?

you can it, might need windows trickery things work properly.

windows has quite few options load dependent libraries, page explains basics: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx

there 1 part can you:

if dll same module name loaded in memory, system checks redirection , manifest before resolving loaded dll, no matter directory in. system not search dll.

so, dependencies right, dependent libraries loaded memory first (sadly cannot use load this, use twapi, e.g. twapi::load_libary (see http://wiki.tcl.tk/9886) library loaded temporary location).

sadly os's not provide easy or portable way load dynamic library directly memory, need copy dependent libs temporary location first (you can appropriate hacks or using installable filesystem on windows/fuse on linux).

in cases easiest route link dependencies statically extension instead.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -