Opened 11 years ago

#2344 new defect

configure does not find libjpeg

Reported by: warmerdam Owned by: mlucas
Priority: normal Milestone: OMAR Dec 2012
Component: Packaging Version:
Severity: normal Keywords:
Cc:

Description

On my Ubuntu 13.04 system, configure failures due to libjpeg.so not being found. It lives in /usr/lib/./x86_64-linux-gnu/libjpeg.so but the various libjpeg rules do not find this even though it is in the default path.

I modified things to check for default paths like the following and this worked for me:

warmerdam@gdal:~/pkg/ossim-trunk/ossim$ svn diff aclocal.m4 
Index: aclocal.m4
===================================================================
--- aclocal.m4	(revision 22392)
+++ aclocal.m4	(working copy)
@@ -111,9 +111,13 @@
     elif test -f "$JPEG_TOP/lib64/libjpeg.so" ; then
 	JPEG_LIB_PATH="-L$JPEG_TOP/lib64" 
     else
-      dnl Required support.
-      echo "ERROR: libjpeg not found!"
-      AC_MSG_ERROR([jpeg support required!])
+      AC_CHECK_LIB(jpeg,jpeg_read_scanlines,FOUND_LIBJPEG=yes,FOUND_LIBJPEG=no,)
+
+      if test $FOUND_LIBJPEG == "no" ; then
+         dnl Required support.
+         echo "ERROR: libjpeg not found!"
+         AC_MSG_ERROR([jpeg support required!])
+      fi
     fi
     JPEG_LIBS=-ljpeg

Change History (0)

Note: See TracTickets for help on using tickets.