[gradsusr] configure does not work for cairo outside of supplibs
Stephen Woodbridge
stephenwoodbridge37 at gmail.com
Sat Jan 5 14:07:28 EST 2019
Hi Jennifer,
I'm having trouble getting configure to work when cairo is in the system
and not supplibs. It would be great if we could focus a little effort on
getting the build scripts to be a little more generic.
Cairo
-----
looking in ../supplibs
checking cairo.h usability... no
checking cairo.h presence... no
checking for cairo.h... no
looking in other system locations
checking for CAIRO... configure: error: in
`/home/woodbri/work/grads/grads-2.2.1':
configure: error: The pkg-config script could not be found or is too
old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables CAIRO_CFLAGS
and CAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root at u19589217:/home/woodbri/work/grads/grads-2.2.1# pkg-config --version
0.29.1
root at u19589217:/home/woodbri/work/grads/grads-2.2.1# pkg-config --cflags
cairo
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12
root at u19589217:/home/woodbri/work/grads/grads-2.2.1# pkg-config --libs cairo
-lcairo
I have also tried setting CAIRO_CFLAGS and CAIRO_LIBS as described above
but that fails the same. Using:
#!/bin/sh
export CAIRO_CFLAGS=-I/usr/include/cairo
export CAIRO_LIBS="-L/usr/lib/x86_64-linux-gnu -lcairo"
LIB=/usr/lib/x86_64-linux-gnu
SUPPLIBS=../supplibs
./configure \
--with-geotiff-libdir=$LIB \
--with-hdf4-libdir=/usr/lib \
--with-hdf5-include=/usr/include/hdf5/serial/ \
--with-hdf5-libdir=/usr/lib/x86_64-linux-gnu/hdf5/serial/ \
--with-netcdf-include=/usr/include \
--with-netcdf-libdir=$LIB \
My supplibs/ only has udunits in it, everything else is coming from
system packages.
-Steve
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the gradsusr
mailing list