Re: GM in one binary
"Artsimovich, Wladislav" <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
> the default "delegates" configuration is essentially empty I guess I noticed that already. I compiled GM with MinGW64, without setting ENV Paths and executing errored out with "Unable to access configuration file (delegates.mgk)." > 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. Easily is a relative term ;D Delving into C code is really intimidating for a C virgin, especially with all the #if defineds. So basically: Step1: Figure out how to prevent GetConfigureBlob() from searching Step2: Figure out how the .mgk files work and populate them to work when statically linked Step3: Link dependencies and GM into one binary And it should work, correct? Vlad 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 _______________________________________________ Graphicsmagick-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot