Re: Nonstandard dependency installation directories

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Sun, 1 Oct 2017, Marvin Gülker wrote:

> Hi,
>
> I'm trying to compile GraphicsMagick where the dependencies are not
> installed into a standard directory that `configure' would find. The
> UNIX README[1] tells me:
>
>> Configure can usually find the X include and library files
>> automatically, but if it doesn't, you can use the 'configure' options
>> '--x-includes=DIR' and '--x-libraries=DIR' to specify their locations.
>
> However, the `configure' script tells me that this is wrong. If I
> replace the placeholder "X" with "png" for example:
>
>    $ ./configure --disable-shared --enable-static \
>      --with-png-libraries=$PWD/../../root/lib \
>      --with-png-includes=$PWD/../../root/include
>    configure: WARNING: unrecognized options: --with-png-libraries,
>    --with-png-includes
>    [...]
>
> As a consequence, it does not find libpng. Note I only use
> libpng as an example, I have all of GraphicsMagick's dependencies in
> that directory.

In the documentation you read, 'X' is not a placeholder variable meant 
to have something else substituted.  The 'X' is a trademark for MIT 
X11, which is still the graphical system supported by most Unix/Linux 
desktops.

> I downloaded the 1.3.26 source tarball of GraphicsMagick, which is the
> current stable release. I run this on MSYS2, but according to the
> installation instructions this means I should follow the UNIX
> installation instructs (which is probably correct, since all projects
> say so for MinGW-based build environments). I expect the same problem to
> happen on any Unix system.
>
> So, the documentation is incorrect. What's the correct way to specify a
> nonstandard library and include directory for GraphicsMagick's
> dependencies?

The documentation is not actually incorrect.  You are just 
mis-understanding it.

In order to find dependency headers and libraries, you should use the 
CPPFLAGS and LDFLAGS arguments to configure.

Search the same documentation file for the documentation on CPPFLAGS 
and LDFLAGS, plus some other options which may be of use to you.

Please make sure that any paths used do not contain any embedded 
spaces.  The Unix-style configure script does not deal with embedded 
spaces since spaces are traditionally used as delimiters.  This is one 
of the main annoyances when building using MinGW and MSYS.

Execute './configure --help' to get some additional help output from 
the configure script.

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

------------------------------------------------------------------------------
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
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.