Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#50 libpng test fails falsely

closed-out-of-date
nobody
None
5
2004-07-02
2004-01-22
Norman Jonas
No

The configure test of libpng / png_start_read_image
fails even though everything builds fine when I disable
the test manually. I use a vanilla libpng 1.2.5 and gcc
3.3.2.

Discussion

  • Logged In: NO

    Please explain your problem in more detail.

     
  • Zach Crowell
    Zach Crowell
    2004-03-18

    Logged In: YES
    user_id=150424

    I use a shared Mac OS X lab, and as such I cannot use the
    distributed frameworks (require admin privs). I have built
    DevIL from source using GCC, GNU tools, and a custom
    location for includes and libraries ($HOME/usr/local).

    In order for this to work, I had to make changes to the
    configure.in file and re-run autoconf (diff output is below).

    The first changes prevents the configure script from
    clobbering my supplied CPPFLAGS; the last change ensures
    configure links against libpng properly (my libpng is built
    against a shared zlib -- typically it is not). (the middle
    change is only there because I didn't first thing to just
    symlink it...)

    I believe the last change here may solve this bug.

    configure.in:

    247,248d246
    < CPPFLAGS=$X_CFLAGS
    < AC_SUBST(X_CFLAGS)
    252c250
    < AC_CHECK_HEADER(lcms/lcms.h, ,no_lcms="yes")
    ---
    > AC_CHECK_HEADER(lcms.h, ,no_lcms="yes")
    288c286
    < AC_CHECK_LIB(png, png_start_read_image, LIBPNG="-lpng",
    LIBPNG="", )
    ---
    > AC_CHECK_LIB(png, png_start_read_image, LIBPNG="-lpng",
    LIBPNG="", -lz)

     
  • Zach Crowell
    Zach Crowell
    2004-03-18

    Logged In: YES
    user_id=150424

    I should add that my previous comment (if all changes are
    used) will break configure's ability to detect OpenGL unless
    the location of GL headers and libraries is included in
    CPPFLAGS and LDFLAGS.

    Obviously, this may not be desireable. An additional
    modification to configure.in would likely fix it.

     
  • Dario Meloni
    Dario Meloni
    2004-07-02

    • status: open --> closed-out-of-date