Re: flattening: two ways, two different results

Bob Friesenhahn <[email protected]> Wed, 27 Sep 2023 14:53:18 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Wed, 27 Sep 2023, frechefuchs via Graphicsmagick-help wrote:
>
>  $ ./configure --with-quantum-depth=16
>  $ make
>  $ make check
>
> (the last command with 0 failed tests) and working through
> <URL:http://www.graphicsmagick.org/INSTALL-unix.html#verifying-the-build>,
> the following two commands don't show the expected output:

Are you saying that 'make check' failed, or that you looked at the 
test log file and the output was not there?

>> $ ./utilities/gm convert -list fonts
>> Path: type.mgk
>>
>> Name                             Family                  Style   Stretch  Weight
>> --------------------------------------------------------------------------------
>> ./utilities/gm convert: Unable to access configuration file (type.mgk).
>>
>> $ ./utilities/gm convert -list delegates
>> Path: delegates.mgk
>>
>> Delegate             Command
>> -------------------------------------------------------------------------------
>> ./utilities/gm convert: Unable to access configuration file (delegates.mgk).
>
> Is that to be expected when leaving out 'make install'?  (There's no
> pressing need for me to compile and install GM.  Just testing.)  Calling
> ./gm directly from within utilities/ doesn't change anything.

Try this from within the build directory:

   ./rungm.sh ./utilities/gm convert -list fonts

The rungm.sh script produces environment variables necessary to 
find/use uninstalled files.

If you were to run it like:

   ./rungm.sh env

then the output of 'env' should show an updated LD_LIBRARY_PATH, and 
also include these environment variables:

   MAGICK_CODER_MODULE_PATH
   MAGICK_CONFIGURE_PATH
   MAGICK_FILTER_MODULE_PATH

You could do something like this to produce a sub-shell with all of 
the variables set:

   ./rungm.sh sh
   ./utilities/gm convert -list fonts
   [ font list appears ]
   exit
   [ sub-shell exits ]

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