[Poppler-bugs] [Bug 59186] New: configure in poppler 0.22.0 fails to find jpeglib.h

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 9 15:49:48 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=59186

          Priority: medium
            Bug ID: 59186
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: configure in poppler 0.22.0 fails to find jpeglib.h
          Severity: normal
    Classification: Unclassified
                OS: Mac OS X (All)
          Reporter: Peter_Dyballa at Freenet.DE
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: poppler

Configuration was:


env LANG=C
PATH=${HOME}/Softwaren64/bin:/usr/bin:/opt/local/x86_64-apple-darwin10.8.0/bin:/opt/local/bin:$PATH
./configure --prefix="${HOME}/Softwaren64" --with-pic --enable-static
--enable-cms=none --enable-introspection=no --disable-utils
--disable-poppler-qt4 --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib
CPPFLAGS="-H -I${HOME}/Softwaren64/include" CFLAGS="-pipe -fPIC -fno-common -Os
-march=core2 -mtune=core2 -m64 -fomit-frame-pointer -msse4.2" LDFLAGS="-m64
-Wl,-t -Wl,-dead_strip_dylibs -L${HOME}/Softwaren64/lib"
PKG_CONFIG_PATH=${HOME}/Softwaren64/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/X11/lib/pkgconfig

In ${HOME}/Softwaren64 I am preparing shared and static libraries etc. to build
FontForge. There is also jpeg8d installed. No particle of libjpeg6b can be
found.

The configure goes:

    checking for libjpeg6b... no
    checking for libjpeg... -ljpeg
    checking jpeglib.h usability... no
    checking jpeglib.h presence... no
    checking for jpeglib.h... no
    configure: WARNING:
    There is an installation error in jpeg support. You seem to have only one
    of either the headers _or_ the libraries installed. You may need to either
    provide correct --with-extra-... options, or the development package of
    libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
    Disabling JPEG support.

    checking libjpeg.h works correctly... ok
    checking for LIBPNG... yes
    checking for FREETYPE... yes


config.log shows that the script initially works OK:

    configure:20271: checking for libjpeg
    configure:20300: gcc -std=gnu99 -o conftest -pipe -fPIC -fno-common -Os
-march=core2 -mtune=core2 -m64 -fomit-frame-pointer -msse4.2    -H
-I/Users/pete/Softwaren64/include -m64 -Wl,-t -Wl,-dead_strip_dylibs
-L/Users/pete/Softwaren64/lib conftest.c    -ljpeg -lm >&5
    /usr/lib/crt1.10.6.o
    /var/folders/PR/PR9ZvjydEAmPxO7U5PFnBk+++TI/-Tmp-//cc7EIUOt.o
    /Users/pete/Softwaren64/lib/libjpeg.dylib
    /usr/lib/libm.dylib
    /usr/lib/libSystem.dylib
    /usr/lib/system/libmathCommon.A.dylib
    configure:20300: $? = 0
    configure:20316: result: -ljpeg

Therefore it finds the library. But for the C header file it forgets the
"-I/Users/pete/Softwaren64/include" (complete CPPFLAGS) so it can't it:

    configure:20335: checking jpeglib.h usability
    configure:20335: gcc -std=gnu99 -c -pipe -fPIC -fno-common -Os -march=core2
-mtune=core2 -m64 -fomit-frame-pointer -msse4.2    -pipe -fPIC -fno-common -Os
-march=core2 -mtune=core2 -m64 -fomit-frame-pointer -msse4.2    conftest.c >&5
    conftest.c:77:21: error: jpeglib.h: No such file or directory
    configure:20335: $? = 1


Mac OS X 10.5.8, Snow Leopard

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130109/6d3689d7/attachment.html>


More information about the Poppler-bugs mailing list