Compiling error

David Gutman dagutman at gmail.com
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

<<<THESE ARE ALL INSTALLED >>
libopenjpeg-dev - development files for libopenjpeg2, a JPEG 2000 image
library
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.
/usr/lib/debug/usr/lib/x86_64-linux-gnu/libopenjpeg-2.1.3.0.so
/usr/lib/x86_64-linux-gnu/libopenjpeg-2.1.3.0.so
/usr/lib/x86_64-linux-gnu/libopenjpeg.a
/usr/lib/x86_64-linux-gnu/libopenjpeg.so
/usr/lib/x86_64-linux-gnu/libopenjpeg.so.2


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 cs.cmu.edu>
wrote:

> 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/libopenjp2.so
> > 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 lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20150529/63f55d12/attachment.html 


More information about the openslide-users mailing list