Compiling error

David Gutman dagutman at
Fri May 29 18:04:20 EDT 2015

I'm having a similar issue on ubuntu 14.04

It's not finding the openjpeg2/openjpeg libraries... but I installed the
system versions

libopenjpeg-dev - development files for libopenjpeg2, a JPEG 2000 image
libopenjpeg2 - JPEG 2000 image compression/decompression library
libopenjpeg2-dbg - debug symbols for libopenjpeg2, a JPEG 2000 image library
openjpeg-tools - command-line tools using the JPEG 2000 library

and I can locate them as well.

How do I force ./configure to look in the /usr/lib/x86_64-linux-gnu
directories for these packages?

ecking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ZLIB... yes
checking for OPENJPEG2... no
checking for OPENJPEG... no
checking for OpenJPEG (fallback)... yes
checking for LIBTIFF... yes
checking for GLIB2... yes
checking for CAIRO... yes
checking for LIBPNG... yes
checking for GDKPIXBUF... yes
checking for LIBXML2... yes
checking for SQLITE3... yes
checking for VALGRIND... no

On Fri, May 29, 2015 at 4:57 PM Benjamin Gilbert <bgilbert at>

> On 2015-05-29 11:19, Justin JEONG wrote:
> > OPENJPEG2_LIBS=-L/home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib
> This fails because you have not included -lopenjp2.  If you add it, you
> will get the error below.
> > /usr/bin/ld: skipping incompatible
> > /home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib/
> > when searching for -lopenjp2
> It appears that you are trying to build a 64-bit OpenSlide and link it
> to a 32-bit OpenJPEG.
> --Benjamin Gilbert
> _______________________________________________
> openslide-users mailing list
> openslide-users at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the openslide-users mailing list