Re: GM in one binary

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Wed, 13 Jun 2018, Artsimovich, Wladislav wrote:

> Hey,
>
> I have built programs in C# with GM and IM before, using the provided DLLs and packing them into one .exe. Now I'd like to do so with GM in C++, but am new to this and a bit confused.
> Can I statically link GM and it's dependencies into one binary and not require outside dependencies, like delegates file and coders?

The answer to this is 'yes'.  GM can definitely be statically linked 
and there are default versions of the XML ".mgk" files baked in. 
Some adjustments may need to be made for total satisfaction.  For 
example, the default "delegates" configuration is essentially empty 
whereas the list of colors is fully populated.

I don't think that there is a compile option which keeps the software 
from looking for the external ".mgk" files.  The external ".mgk" files 
are loaded via a function called GetConfigureBlob() in magick/blob.c 
so it is easily modified if need be.

Bob

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.