Re: SVG to PNG

Bob Friesenhahn <[email protected]> Thu, 19 Nov 2020 08:22:49 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Thu, 19 Nov 2020, Pro Turm wrote:
>
> However, I was expecting to have something like
> #define MagickLibConfigPath "./config/"
> ?!?

It may be that some unneeded pre-processor definitions remain.

All of the configuration work is done in the InitializeMagickEx() 
function, which includes this hunk of code:

   /*
     Establish the path, filename, and display name of the client app
   */
   InitializeMagickClientPathAndName(path);
   /*
     If the client name did not get setup for any reason, we take one
     last shot at it using the data the caller passed us.
   */
   if (GetClientName() == (const char *) NULL)
     DefineClientName(path);

If you execute the program with the environment variable 
MAGICK_DEBUG=configure as suggested before, then all the steps being 
done will be made clear.  The most important thing is to discover 
where the program's files are installed.  Then the paths to other 
installation components are computed based on that location.

After building the software under Linux, you do need to install it 
somewhere for testing.  You can use the DESTDIR environment variable 
to influcence where the files are installed to.

For example

   mkdir $HOME/install

   DESTDIR=$HOME/install make install

and now the GraphicsMagick installation should be located under 
$HOME/install, and when using --disable-installed, it should still 
work, even if you later move that directory.

After installation, we can successfully do this:

   $HOME/install/usr/local/bin/gm -version

The "/usr/local" part is just an artifact caused by the default prefix 
and you can remove it.  The configure option --prefix='/' makes the 
installation footprint look nicer:

   $HOME/install/bin/gm -version

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt