Re: Compiling GM statically and the magic.mgk config file

Bob Friesenhahn <[email protected]> Thu, 1 Mar 2007 17:54:25 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.tools
Message-ID <[email protected]>
On Thu, 1 Mar 2007, simon wrote:

> I compiled GM 1.1.6 the regular way (./configure and make, but no "make
> install") and the commands I need work, but I get the following error
> when I use the gm executable from the "utilities" folder:
>
> ./gm identify: Unable to access configuration file (magic.mgk) [No such
> file or directory].
>
>
> How can I fix this? Is there a config-option I have missed?

Edit the header file magick/magick_config.h to tailor the settings. 
Most important is the setting for "UseInstalledMagick".  When this one 
is defined then either the Windows registery or hard-coded paths are 
consulted (i.e. requires a formal installation).  Otherwise the .mgk 
files are searched for in the same directory as the executable.

Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV