Compiling error

Benjamin Gilbert bgilbert at
Thu May 28 16:55:23 EDT 2015

On 05/28/2015 01:07 PM, Justin JEONG wrote:
> PKG_CONFIG_PATH=/home/justin/local/bin/openjpeg/usr/local/lib/pkgconfig
> PKG_CONFIG_PATH=/home/justin/local/bin/tiff/lib/pkgconfig

Please double-check that these paths are correct.  If you need to 
specify more than one pkg-config path, pass them in a single variable 
separated by colons, like this:


> OPENJPEG_LIBS=/home/justin/local/bin/jpeg/lib
> OPENJPEG_CFLAGS=-I/home/justin/local/bin/jpeg/include
> OPENJPEG2_LIBS=/home/justin/local/bin/openjpeg/usr/local/lib
> OPENJPEG2_CFLAGS=-I/home/justin/local/bin/openjpeg/usr/local/include/openjpeg-2.1
> LIBTIFF_CFLAGS=-I/home/justin/local/bin/tiff/include
> LIBTIFF_LIBS=/home/justin/local/bin/tiff/lib

These shouldn't be necessary if PKG_CONFIG_PATH is set correctly.  If 
you do need to use them, note that the CFLAGS/LIBS variables are passed 
directly to the compiler, so they need to contain proper command-line 
options.  -I options go in CFLAGS, -L and -l in LIBS.

--Benjamin Gilbert

More information about the openslide-users mailing list