#20 ImageMagick header not found during wv-0.7.1 install

closed
None
5
2006-03-11
2002-02-14
christophe
No

Hi folks,
Actually trying to install libwmf.
By running ./configure error when looking for
libpng; error message is:

[...]
checking for xml2-config...
/user/cschmid/local/bin/xml2-config
checking for freetype-config...
/user/cschmid/local/bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking for freetype/freetype.h... yes
checking whether it's freetype 2... yes
checking for zlib.h... yes
checking for gzputs in -lz... yes
checking for png.h... yes
checking for png_write_image in -lpng... no
configure: error: * * * unable to find libpng which is
required by libwmf * * *

But the path to the libpng (include/ and lib/) is
correct. Seems that ./configure's unable to find the
function png_write_image...
Another question: what does mean the switch -lpng? Does
configure look into the lib in order to find the
function png_write_image?

Thank you very much for your support

Chris

Discussion

  • Francis James Franklin

    Logged In: YES
    user_id=146639

    can you please check in config.log to see what the error
    message is. possibly it's not linking against libz, but I
    thought that had been fixed... maybe not.

    Frank

     
  • christophe

    christophe - 2002-02-14

    Logged In: YES
    user_id=458244

    Hi franklin,

    Thanks for your very fast answer :)))
    here is the concerned part of my config.log file, hope can
    help you; I will try to study it.

    [...]
    configure:10481: checking for png.h
    configure:10491: gcc -E -I/user/cschmid/local/include
    -I/home/tools/gnu/zlib/1.1.3/include conftest.c
    configure:10497: $? = 0
    configure:10516: result: yes
    configure:10520: checking for png_write_image in -lpng
    configure:10547: gcc -o conftest -g -O2
    -I/user/cschmid/local/include
    -I/home/tools/gnu/zlib/1.1.3/include
    -L/user/cschmid/local/lib co
    nftest.c -lpng -lz -lm >&5
    ld: fatal: library -lz: not found
    ld: fatal: File processing errors. No output written to
    conftest
    collect2: ld returned 1 exit status
    configure:10550: $? = 1
    configure: failed program was:
    #line 10528 "configure"
    #include "confdefs.h"

    /* Override any gcc2 internal prototype to avoid an error.
    */
    #ifdef __cplusplus
    extern "C"
    #endif
    /* We use char because int might match the return type of a
    gcc2
    builtin and then its argument prototype would still
    apply. */
    char png_write_image ();
    int
    main ()
    {
    png_write_image ();
    ;
    return 0;
    }
    configure:10567: result: no
    configure:10579: error: * * * unable to find libpng which is
    required by libwmf * * *
    [...]

    Regards

    Chris

     
  • Francis James Franklin

    Logged In: YES
    user_id=146639

    Hi, looks like you've added

    --with-zlib=/home/tools/gnu/zlib/1.1.3

    so this is a real bug in libwmf! What fun. Possible
    solution: re-run configure with

    LDFLAGS="-L/home/tools/gnu/zlib/1.1.3/lib" ./configure
    --with-zlib=/home/tools/gnu/zlib/1.1.3 [OTHER OPTIONS]

    Regards, Frank

     
  • christophe

    christophe - 2002-02-14

    Logged In: YES
    user_id=458244

    You are the best, it worked the first time!!
    So, next step is installing wv-0.7.1. But I receive the
    message:

    [...]
    checking for Cygwin environment... no
    checking for mingw32 environment... no
    checking for executable suffix... configure: error:
    installation or configuration problem: compiler cannot
    create executables.
    [...]

    The config.log file looks like this:

    [...]
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a
    mistake.

    configure:554: checking for Cygwin environment
    configure:570: cc -c conftest.c 1>&5
    /usr/ucb/cc: language optional software package not
    installed
    configure: failed program was:
    #line 559 "configure"
    #include "confdefs.h"

    int main() {

    #ifndef __CYGWIN__
    #define __CYGWIN__ __CYGWIN32__
    #endif
    return __CYGWIN__;
    ; return 0; }
    configure:587: checking for mingw32 environment
    configure:599: cc -c conftest.c 1>&5
    /usr/ucb/cc: language optional software package not
    installed
    configure: failed program was:
    #line 592 "configure"
    #include "confdefs.h"

    int main() {
    return __MINGW32__;
    ; return 0; }
    configure:618: checking for executable suffix
    configure:628: cc -o conftest conftest.c 1>&5
    /usr/ucb/cc: language optional software package not
    installed
    [...]

    Thank you for your precious support!

    Rgds

    Chris

     
  • Francis James Franklin

    Logged In: YES
    user_id=146639

    /usr/ucb/cc? have you changed machines?
    Sun's bundled compiler cc is notoriously incompatible with
    wv. Try adding CC="gcc" on the configure line. Best to have
    GNU libiconv installed as well since Sun's iconv sucks.

    Frank

     
  • christophe

    christophe - 2002-02-15

    Logged In: YES
    user_id=458244

    Morning' (I didn't have my coffee yet...)
    Concerning the compiler, it's ok now, I set the variable
    CC=[path of gcc executable]. Now (hope would be the last
    problem ;)) ) ./configure works fine except that it isn't
    able to find zlib, even if I indicate the right path namely:
    1) LDFLAGS=-L/home/tools/gnu/zlib/1.1.3/lib
    2) --with-zlib=/home/tools/gnu/zlib/current

    The final message of ./configure is:

    configure: warning: Could not find zlib library or some of
    its components: libwv *will* build but will not be able to
    decompress most wmf files: see README

    I read README but there is nothing about it...

    Have you got any idea?

    Rgds

    Chris

     
  • christophe

    christophe - 2002-02-15
    • assigned_to: nobody --> fjfranklin
     
  • Francis James Franklin

    Logged In: YES
    user_id=146639

    Not sure what's happening here. Can you check the config log
    for statements about zlib?

    Frank

     
  • christophe

    christophe - 2002-02-15

    Logged In: YES
    user_id=458244

    Hi,

    I tried to compile and to install, it works and binaries
    works too. So, I should hear on your comments, because
    looking at the log file iconv makes some troubles...
    On the other side, based on the log file it seems that
    ./configure was able to find zlib isn't it?

    Must I really install libiconv as you suggest, because I
    found the .*t (tables) and .*so (libs); if yes wher can I
    find this lib (wasn't able to find it on this site...)

    To summarize, wv works fine except the charset troubles, and
    the zlib...

    I added follwing vars:
    1) CC=/home/tools/gnu/gcc/bin/gcc
    2) LDFLAGS=-L/home/tools/gnu/zlib/1.1.3/lib
    3) LC_CTYPE=iso_8859_1

    And here is the conf.log file:
    [...]
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a
    mistake.

    configure:554: checking for Cygwin environment
    configure:587: checking for mingw32 environment
    configure:618: checking for executable suffix
    configure:649: checking for object suffix
    configure:673: checking for mingw32 environment
    configure:707: checking for gcc
    configure:820: checking whether the C compiler
    (/home/tools/gnu/gcc/bin/gcc
    -L/home/tools/gnu/zlib/1.1.3/lib) works
    configure:836: /home/tools/gnu/gcc/bin/gcc -o conftest
    -L/home/tools/gnu/zlib/1.1.3/lib conftest.c 1>&5
    configure:862: checking whether the C compiler
    (/home/tools/gnu/gcc/bin/gcc
    -L/home/tools/gnu/zlib/1.1.3/lib) is a cross-compiler
    configure:867: checking whether we are using GNU C
    configure:895: checking whether /home/tools/gnu/gcc/bin/gcc
    accepts -g
    configure:934: checking whether make sets ${MAKE}
    configure:991: checking for a BSD compatible install
    configure:1046: checking for ranlib
    configure:1076: checking how to run the C preprocessor
    configure:1156: checking for ANSI C header files
    configure:1264: checking for fcntl.h
    configure:1264: checking for io.h
    configure:1264: checking for malloc.h
    configure:1264: checking for sys/file.h
    configure:1264: checking for sys/ioctl.h
    configure:1264: checking for unistd.h
    configure:1303: checking for working const
    configure:1424: checking for zlib.h
    configure:1604: checking for png.h
    configure:1898: checking for xml2-config
    configure:1980: checking for libxml/parser.h
    configure:2008: checking for xmlParseDocument in -lxml2
    configure:2105: checking for glib12-config
    configure:2179: checking for glib-config
    configure:2280: checking for gnome-config
    configure:2379: checking for libwmf-config
    configure:2461: checking for libwmf/api.h
    configure:2489: checking for wmf_stream_create in -lwmf
    configure:2533: checking for libwmf/foreign.h
    configure:2637: checking for iconv
    configure:2682: checking for iconv.h
    configure:2915: checking need for const in iconv
    configure:2933: g++ -c conftest.C 1>&5
    configure: In function `int main()':
    configure:2928: passing `char **' as argument 2 of
    `iconv(_iconv_info *, const char **, size_t *, char **,
    size_t *)' adds cv-quals witho
    ut intervening `const'
    configure: failed program was:
    #line 2917 "configure"
    #include "confdefs.h"

    #include <iconv.h>

    int main() {

    iconv_t handle;
    size_t ib;
    size_t ob;
    const char* in = 0;
    char* out = 0;
    iconv (handle,const_cast<char **>(&in),&ib,&out,&ob);

    ; return 0; }
    configure:3022: checking for Magick-config
    configure:3158: checking size of char
    configure:3197: checking size of short
    configure:3236: checking size of int
    configure:3275: checking size of long
    configure:3327: checking whether byte ordering is bigendian
    configure:3441: checking for getopt_long
    configure:3490: checking for strerror
    configure:3539: checking for strcasecmp
    configure:3607: checking for memcpy
    configure:3663: checking for unistd.h
    configure:3702: checking for getpagesize
    configure:3755: checking for working mmap

    [...]

    Hope helps you and thanks a lot for your help!

    Rgds

    Chris

     
  • Francis James Franklin

    Logged In: YES
    user_id=146639

    [..]
    configure:1303: checking for working const
    configure:1424: checking for zlib.h
    configure:1604: checking for png.h
    [..]

    Your config.log is missing the actual tests - which makes me
    think you have an old "config.cache" file confusing matters.
    Please delete this file and try again.

    As for libiconv, that's up to you but I recommend you get
    it. GNU libiconv can be downloaded from
    ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.7.tar.gz or
    your local mirror.

    Regards, Frank

     
  • christophe

    christophe - 2002-02-19
    • summary: libwmf0.2.2 installation problems --> libwmf0.2.2 installation problems
     
  • christophe

    christophe - 2002-02-19

    Logged In: YES
    user_id=458244

    Hi,

    Thank you for your precious support.The converters work
    fine even if the formatting between images and text isn't
    still perfect, but it's a great work really!

    So, now I' m trying to recompile wv by including glib and
    ImageMagick. Both of them were installed, glib was
    recognized (header and config file) but ImageMagick (source
    is as like
    ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-sparc-sun-solaris2.7.tar.gz)
    gives me some headaches i.e. unpacking is ok (creates /bin,
    /include, /lib, /man and /share folders in say /user/xxx),
    nothing to compile and then linking simply to /user/xxx
    during ./configure of wvWare isn't it?
    I tried to remove config.cache and config.log and to rerun
    but...nada :

    1) checking for Magick-config...
    /user/xxx/ImageMagick/bin/Magick-config
    2) checking for magick/magick.h... no

    So it seems that the config file was found but not the
    header file...strange or not?
    Finally trying to compile with gmake I obtain following
    message concerning ImageMagick:

    [...]

    making magick in magick
    gmake[1]: Entering directory
    `/user/xxx/Temp/wv-0.7.1/magick'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `/user/xxx/Temp/wv-0.7.1/magick'

    [...]

    remark : I unpaked wv-0.7.1 in /user/xxx/Temp/

    What's the hint?

    Thank you in advance !

    Rgs

    Chris

     
  • christophe

    christophe - 2002-02-19
    • summary: libwmf0.2.2 installation problems --> ImageMagick header not found during wv-0.7.1 install
     
  • christophe

    christophe - 2002-02-19

    Logged In: YES
    user_id=458244

    Hi,

    Thank you for your precious support.The converters work
    fine even if the formatting between images and text isn't
    still perfect, but it's a great work really!

    So, now I' m trying to recompile wv by including glib and
    ImageMagick. Both of them were installed, glib was
    recognized (header and config file) but ImageMagick (source
    is as like
    ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-sparc-sun-solaris2.7.tar.gz)
    gives me some headaches i.e. unpacking is ok (creates /bin,
    /include, /lib, /man and /share folders in say /user/xxx),
    nothing to compile and then linking simply to /user/xxx
    during ./configure of wvWare isn't it?
    I tried to remove config.cache and config.log and to rerun
    but...nada :

    1) checking for Magick-config...
    /user/xxx/ImageMagick/bin/Magick-config
    2) checking for magick/magick.h... no

    So it seems that the config file was found but not the
    header file...strange or not?
    Finally trying to compile with gmake I obtain following
    message concerning ImageMagick:

    [...]

    making magick in magick
    gmake[1]: Entering directory
    `/user/xxx/Temp/wv-0.7.1/magick'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `/user/xxx/Temp/wv-0.7.1/magick'

    [...]

    remark : I unpaked wv-0.7.1 in /user/xxx/Temp/

    What's the hint?

    Thank you in advance !

    Rgs

    Chris

     
  • christophe

    christophe - 2002-02-19

    Logged In: YES
    user_id=458244

    Hi,

    Thank you for your precious support.The converters work
    fine even if the formatting between images and text isn't
    still perfect, but it's a great work really!

    So, now I' m trying to recompile wv by including glib and
    ImageMagick. Both of them were installed, glib was
    recognized (header and config file) but ImageMagick (source
    is as like
    ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-sparc-sun-solaris2.7.tar.gz)
    gives me some headaches i.e. unpacking is ok (creates /bin,
    /include, /lib, /man and /share folders in say /user/xxx),
    nothing to compile and then linking simply to /user/xxx
    during ./configure of wvWare isn't it?
    I tried to remove config.cache and config.log and to rerun
    but...nada :

    1) checking for Magick-config...
    /user/xxx/ImageMagick/bin/Magick-config
    2) checking for magick/magick.h... no

    So it seems that the config file was found but not the
    header file...strange or not?
    Finally trying to compile with gmake I obtain following
    message concerning ImageMagick:

    [...]

    making magick in magick
    gmake[1]: Entering directory
    `/user/xxx/Temp/wv-0.7.1/magick'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `/user/xxx/Temp/wv-0.7.1/magick'

    [...]

    remark : I unpaked wv-0.7.1 in /user/xxx/Temp/

    What's the hint?

    Thank you in advance !

    Rgs

    Chris

     
  • Francis James Franklin

    Logged In: YES
    user_id=146639

    Oddly enough, this was one of the first things I tried to
    fix, but there's not much point. wv doesn't support
    ImageMagick, so even if you do find the headers it won't
    help.

    However, by default the scripts use "convert", which I
    believe is IM's command-line interface - but maybe I'm
    wrong. Make sure you have a recent ImageMagick.

    Regards, Frank

     
  • christophe

    christophe - 2002-02-19

    Logged In: YES
    user_id=458244

    Ok, it doesn't matter, wv is a fine tool! I will keep on
    touch for infos or questions :)

    Regards
    Chris

     
  • Dom Lachowicz

    Dom Lachowicz - 2006-03-11

    Logged In: YES
    user_id=69417

    Please upgrade to 1.2.x. Thanks.

     
  • Dom Lachowicz

    Dom Lachowicz - 2006-03-11
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks