webp not included - failed tests

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

webp not included - failed tests

Post by gegupta »

HI,

I am trying to build ImageMagick from source --with-webp
ImageMagickVersion : 6.8.3-10
webp version : libwebp-0.2.1.tar.gz
OS: Ubuntu 11.10

Tried as simple as ./configure --with-webp

Text from config.log:

Code: Select all

configure:31887: checking for WEBP
configure:31889: result:
configure:31893: checking webp/decode.h usability
configure:31893: gcc -std=gnu99 -std=gnu99 -c -pthread -I/usr/include/OpenEXR   -I/usr/include/freetype2    -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16  -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12      -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16  conftest.c >&5
configure:31893: $? = 0
configure:31893: result: yes
configure:31893: checking webp/decode.h presence
configure:31893: gcc -E  -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12      -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16  conftest.c
configure:31893: $? = 0
configure:31893: result: yes
configure:31893: checking for webp/decode.h
configure:31893: result: yes
configure:31901: checking for WebPPictureInit in -lwebp
configure:31926: gcc -std=gnu99 -std=gnu99 -o conftest -pthread -I/usr/include/OpenEXR   -I/usr/include/freetype2    -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16  -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12      -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16    conftest.c -lwebp  -ltiff -lpng12 -ljasper -ljpeg -lz -lXext -lXt  -lSM -lICE -lX11  -lbz2 -lgomp -lrt -lm   -lpthread >&5
/tmp/ccBknuNi.o: In function `main':
/home/gg/Downloads/ImageMagick-6.8.3-10/conftest.c:260: undefined reference to `WebPPictureInit'
collect2: ld returned 1 exit status
configure:31926: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.8.3-10"
| #define PACKAGE_STRING "ImageMagick 6.8.3-10"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| #define MAGICK_TARGET_CPU x86_64
| #define MAGICK_TARGET_VENDOR unknown
| #define MAGICK_TARGET_OS linux-gnu
| #define PACKAGE "ImageMagick"
| #define VERSION "6.8.3-10"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE___ATTRIBUTE__ 1
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define THREAD_SUPPORT 1
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define HAVE_FSEEKO 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define INSTALLED_SUPPORT 1
| #define CIPHER_SUPPORT 1
| #define HDRI_ENABLE_OBSOLETE_IN_H 0
| #define QUANTUM_DEPTH_OBSOLETE_IN_H 16
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_COMPLEX_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LINUX_UNISTD_H 1
| #define HAVE_LOCALE_H 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.8.3-10"
| #define PACKAGE_STRING "ImageMagick 6.8.3-10"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| #define MAGICK_TARGET_CPU x86_64
| #define MAGICK_TARGET_VENDOR unknown
| #define MAGICK_TARGET_OS linux-gnu
| #define PACKAGE "ImageMagick"
| #define VERSION "6.8.3-10"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE___ATTRIBUTE__ 1
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define THREAD_SUPPORT 1
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define HAVE_FSEEKO 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define INSTALLED_SUPPORT 1
| #define CIPHER_SUPPORT 1
| #define HDRI_ENABLE_OBSOLETE_IN_H 0
| #define QUANTUM_DEPTH_OBSOLETE_IN_H 16
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_COMPLEX_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LINUX_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_IPC_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_XLOCALE_H 1
| #define HAVE__BOOL 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_STRINGIZE 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_ZONE 1
| #define restrict __restrict
| #define HAVE_LONG_LONG_INT 1
| #define HAVE_INTMAX_T 1
| #define HAVE_INTPTR_T 1
| #define HAVE_LONG_DOUBLE 1
| #define HAVE_LONG_DOUBLE_WIDER 1
| #define HAVE_LONG_LONG_INT 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_UNSIGNED_LONG_LONG_INT 1
| #define HAVE_UINTMAX_T 1
| #define HAVE_UINTPTR_T 1
| #define HAVE_UNSIGNED_LONG_LONG_INT 1
| #define HAVE_FLOAT_T 1
| #define HAVE_DOUBLE_T 1
| #define SIZEOF_FLOAT_T 4
| #define SIZEOF_DOUBLE_T 8
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_LONG_DOUBLE 16
| #define SIZEOF_SIGNED_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_SIGNED_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_SIGNED_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_SIGNED_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_OFF_T 8
| #define SIZEOF_SIZE_T 8
| #define SIZEOF_SSIZE_T 8
| #define SIZEOF_UNSIGNED_INTP 8
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP_FILEIO 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| #define RETSIGTYPE void
| #define HAVE_DECL_STRERROR_R 1
| #define HAVE_STRERROR_R 1
| #define STRERROR_R_CHAR_P 1
| #define HAVE_VPRINTF 1
| #define HAVE_SOCKET 1
| #define HAVE_ACOSH 1
| #define HAVE_ASINH 1
| #define HAVE_ATANH 1
| #define HAVE_ATOLL 1
| #define HAVE_ATEXIT 1
| #define HAVE_CABS 1
| #define HAVE_CARG 1
| #define HAVE_CIMAG 1
| #define HAVE_CREAL 1
| #define HAVE_CLOCK 1
| #define HAVE_CTIME_R 1
| #define HAVE__EXIT 1
| #define HAVE_EXECVP 1
| #define HAVE_FCHMOD 1
| #define HAVE_FLOOR 1
| #define HAVE_FORK 1
| #define HAVE_FTIME 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_GETC_UNLOCKED 1
| #define HAVE_GETCWD 1
| #define HAVE_GETPID 1
| #define HAVE_GETDTABLESIZE 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_GETRLIMIT 1
| #define HAVE_GETRUSAGE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GMTIME_R 1
| #define HAVE_ISNAN 1
| #define HAVE_J0 1
| #define HAVE_J1 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_LSTAT 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MEMSET 1
| #define HAVE_MKSTEMP 1
| #define HAVE_MUNMAP 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_NEWLOCALE 1
| #define HAVE_PCLOSE 1
| #define HAVE_POLL 1
| #define HAVE_POPEN 1
| #define HAVE_POSIX_FADVISE 1
| #define HAVE_POSIX_FALLOCATE 1
| #define HAVE_POSIX_MADVISE 1
| #define HAVE_POSIX_MEMALIGN 1
| #define HAVE_POSIX_SPAWNP 1
| #define HAVE_POW 1
| #define HAVE_PREAD 1
| #define HAVE_PWRITE 1
| #define HAVE_QSORT_R 1
| #define HAVE_RAISE 1
| #define HAVE_RAND_R 1
| #define HAVE_READLINK 1
| #define HAVE_READDIR_R 1
| #define HAVE_REALPATH 1
| #define HAVE_SELECT 1
| #define HAVE_SEEKDIR 1
| #define HAVE_SETLOCALE 1
| #define HAVE_SOCKET 1
| #define HAVE_SQRT 1
| #define HAVE_SETVBUF 1
| #define HAVE_STAT 1
| #define HAVE_STRCHR 1
| #define HAVE_STRERROR_R 1
| #define HAVE_STRRCHR 1
| #define HAVE_STRCSPN 1
| #define HAVE_STRDUP 1
| #define HAVE_STRPBRK 1
| #define HAVE_STRSPN 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOD_L 1
| #define HAVE_STRTOL 1
| #define HAVE_STRTOUL 1
| #define HAVE_SYMLINK 1
| #define HAVE_SYSCONF 1
| #define HAVE_SIGEMPTYSET 1
| #define HAVE_SIGACTION 1
| #define HAVE_STRERROR 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_TELLDIR 1
| #define HAVE_TEMPNAM 1
| #define HAVE_TIMES 1
| #define HAVE_USELOCALE 1
| #define HAVE_USLEEP 1
| #define HAVE_UTIME 1
| #define HAVE_VFPRINTF 1
| #define HAVE_VSPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_WAITPID 1
| #define HAVE_CLOCK_GETTIME 1
| #define HAVE_CLOCK_REALTIME 1
| #define HAVE_DECL_PREAD 1
| #define HAVE_DECL_PWRITE 1
| #define HAVE_DECL_STRLCPY 0
| #define HAVE_DECL_VSNPRINTF 1
| #define HAVE_BOOL /**/
| #define HAVE_NAMESPACES /**/
| #define HAVE_NAMESPACE_STD /**/
| #define HAVE_STD_LIBS /**/
| #define X11_CONFIGURE_PATH ""
| #define BZLIB_DELEGATE 1
| #define X11_DELEGATE 1
| #define HAVE_SHARED_MEMORY 1
| #define HAVE_SHAPE 1
| #define ZLIB_DELEGATE 1
| #define FONTCONFIG_DELEGATE 1
| #define FREETYPE_DELEGATE 1
| #define JPEG_DELEGATE 1
| #define JP2_DELEGATE 1
| #define OPENEXR_DELEGATE 1
| #define PANGO_DELEGATE 1
| #define PANGOCAIRO_DELEGATE 1
| #define PNG_DELEGATE 1
| #define TIFF_DELEGATE 1
| #define HAVE_TIFFCONF_H 1
| #define HAVE_TIFFISCODECCONFIGURED 1
| #define HAVE_TIFFMERGEFIELDINFO 1
| #define HAVE_TIFFISBIGENDIAN 1
| #define HAVE_TIFFREADEXIFDIRECTORY 1
| #define HAVE_TIFFSETERRORHANDLEREXT 1
| #define HAVE_TIFFSETTAGEXTENDER 1
| #define HAVE_TIFFSETWARNINGHANDLEREXT 1
| #define HAVE_SYSCONF 1
| #define HAVE_SIGEMPTYSET 1
| #define HAVE_SIGACTION 1
| #define HAVE_STRERROR 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_TELLDIR 1
| #define HAVE_TEMPNAM 1
| #define HAVE_TIMES 1
| #define HAVE_USELOCALE 1
| #define HAVE_USLEEP 1
| #define HAVE_UTIME 1
| #define HAVE_VFPRINTF 1
| #define HAVE_VSPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_WAITPID 1
| #define HAVE_CLOCK_GETTIME 1
| #define HAVE_CLOCK_REALTIME 1
| #define HAVE_DECL_PREAD 1
| #define HAVE_DECL_PWRITE 1
| #define HAVE_DECL_STRLCPY 0
| #define HAVE_DECL_VSNPRINTF 1
| #define HAVE_BOOL /**/
| #define HAVE_NAMESPACES /**/
| #define HAVE_NAMESPACE_STD /**/
| #define HAVE_STD_LIBS /**/
| #define X11_CONFIGURE_PATH ""
| #define BZLIB_DELEGATE 1
| #define X11_DELEGATE 1
| #define HAVE_SHARED_MEMORY 1
| #define HAVE_SHAPE 1
| #define ZLIB_DELEGATE 1
| #define FONTCONFIG_DELEGATE 1
| #define FREETYPE_DELEGATE 1
| #define JPEG_DELEGATE 1
| #define JP2_DELEGATE 1
| #define OPENEXR_DELEGATE 1
| #define PANGO_DELEGATE 1
| #define PANGOCAIRO_DELEGATE 1
| #define PNG_DELEGATE 1
| #define TIFF_DELEGATE 1
| #define HAVE_TIFFCONF_H 1
| #define HAVE_TIFFISCODECCONFIGURED 1
| #define HAVE_TIFFMERGEFIELDINFO 1
| #define HAVE_TIFFISBIGENDIAN 1
| #define HAVE_TIFFREADEXIFDIRECTORY 1
| #define HAVE_TIFFSETERRORHANDLEREXT 1
| #define HAVE_TIFFSETTAGEXTENDER 1
| #define HAVE_TIFFSETWARNINGHANDLEREXT 1
                           | #define HAVE_TIFFSWABARRAYOFTRIPLES 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char WebPPictureInit ();
| int
| main ()
| {
| return WebPPictureInit ();
|   ;
|   return 0;
| }
configure:31935: result: no
configure:31943: checking if WEBP package is complete
configure:31947: result: no -- some components failed test
configure:32184: result: -------------------------------------------------------------
Console output :

Code: Select all

                          OPTIONS             VALUE 
JBIG              --with-jbig=yes                 no
JPEG v1           --with-jpeg=yes                             yes
JPEG-2000         --with-jp2=yes                             no
LCMS v1           --with-lcms=yes                           no
LCMS v2           --with-lcms2=yes                         no
LQR               --with-lqr=yes                  no
LTDL              --with-ltdl=yes                                no
LZMA              --with-lzma=yes                             no
Magick++          --with-magick-plus-plus=yes       yes
OpenEXR           --with-openexr=yes                     no
PANGO             --with-pango=yes                        no
PERL              --with-perl=no                 no
PNG               --with-png=yes                                yes
RSVG              --with-rsvg=no                               no
TIFF              --with-tiff=yes                  no
WEBP              --with-webp=yes                            no (failed tests)
Windows fonts     --with-windows-font-dir=         none
WMF               --with-wmf=no                               no
X11               --with-x=                                           yes


checking for WEBP...
checking webp/decode.h usability... yes
checking webp/decode.h presence... yes
checking for webp/decode.h... yes
checking for WebPPictureInit in -lwebp... no
checking if WEBP package is complete... no -- some components failed test

Final configuration :

Code: Select all

Name           Value
-------------------------------------------------------------------------------
CC             gcc -std=gnu99 -std=gnu99
CFLAGS         -fopenmp -g -O2 -Wall -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH     /usr/local/lib/ImageMagick-6.8.3/modules-Q16/coders
CONFIGURE      ./configure  '--with-webp'
CONFIGURE_PATH /usr/local/etc/ImageMagick-6/
COPYRIGHT      Copyright (C) 1999-2013 ImageMagick Studio LLC
CPPFLAGS       -I/usr/local/include/ImageMagick-6
CXX            g++
CXXFLAGS       -g -O2 -D_THREAD_SAFE -pthread
DEFS           -DHAVE_CONFIG_H
DELEGATES      bzlib jng jpeg png x xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-gvc=no --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6
EXEC-PREFIX    /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES       DPC OpenMP
FILTER_PATH    /usr/local/lib/ImageMagick-6.8.3/modules-Q16/filters
HOST           x86_64-apple-darwin12.2.0
INCLUDE_PATH   /usr/local/include/ImageMagick-6
LDFLAGS        -L/usr/local/lib -L/usr/X11/lib -R/usr/X11/lib
LIB_VERSION    0x683
LIB_VERSION_NUMBER 6,8,3,10
LIBRARY_PATH   /usr/local/lib/ImageMagick-6.8.3
LIBS           -lMagickCore -ljpeg -lpng15 -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread
NAME           ImageMagick
PCFLAGS        -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX         /usr/local
QuantumDepth   16
RELEASE_DATE   2013-03-21
SHARE_PATH     /usr/local/share/ImageMagick-6
SHAREARCH_PATH /usr/local/lib/ImageMagick-6.8.3/config-Q16
SVN_REVISION   11412
TARGET_CPU     x86_64
TARGET_OS      darwin12.2.0
TARGET_VENDOR  apple
VERSION        6.8.3
WEBSITE        http://www.imagemagick.org

Path: [built-in]

Name           Value
-------------------------------------------------------------------------------
FEATURES       OpenMP 
NAME           ImageMagick
QuantumDepth   16
I have tried several different option through LDFLAGS,CPPFLAGS etc.I have installed libwebp-dev as well Can you please share what you think as an appropriate configure command to include webp.

I was able to build webp with 6.7.5 which I had earlier in my development environment. It was able too convert to webp format as well. But I went through the forums which were posted back(viewtopic.php?f=2&t=22809&p=95574&hilit=webp#p95574) which said the earlier version have memory leak issues.

Thanks for your help!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: webp not included - failed tests

Post by magick »

ImageMagick requires libwebp-0.2.1 or greater.
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

Re: webp not included - failed tests

Post by gegupta »

Yes, I am using https://code.google.com/p/webp/download ... z&can=2&q=
This worked for me with ImageMagick version 6.7.5 but not 6.8.3. Let me know if you need any log related to 6.7.5

Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: webp not included - failed tests

Post by magick »

Edit the configure script and change WebPPictureInit to WebPPictureInitInternal. We'll get the patch into the next point release of ImageMagick. Thanks.
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

Re: webp not included - failed tests

Post by gegupta »

I replaced 4 such occurences. Can you confirm?
Now I am able to convert to webp.

Thanks!
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

Re: webp not included - failed tests

Post by gegupta »

Hi,

This solution worked for me in Mac version of the library but threw an error while making on Ubuntu. Here is the error:

Code: Select all

magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPInitDecoderConfigInternal'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPDecode'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPFreeDecBuffer'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPGetFeaturesInternal'
It configures fine :

Code: Select all

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes		yes
Static libraries  --enable-static=yes		yes
Module support    --with-modules=no		no
GNU ld            --with-gnu-ld=yes		yes
Quantum depth     --with-quantum-depth=16	16
High Dynamic Range Imagery
                  --enable-hdri=no		no

Delegate Configuration:
BZLIB             --with-bzlib=yes		yes
Autotrace         --with-autotrace=no		no
Dejavu fonts      --with-dejavu-font-dir=default	none
DJVU              --with-djvu=yes		no
DPS               --with-dps=yes		no
FFTW              --with-fftw=yes		no
FlashPIX          --with-fpx=yes		no
FontConfig        --with-fontconfig=yes		yes
FreeType          --with-freetype=yes		yes
GhostPCL          None				pcl6 (unknown)
GhostXPS          None				gxps (unknown)
Ghostscript       None				gs (9.04)
Ghostscript fonts --with-gs-font-dir=default	/usr/share/fonts/type1/gsfonts/
Ghostscript lib   --with-gslib=no		no
Graphviz          --with-gvc=no		
JBIG              --with-jbig=yes		no
JPEG v1           --with-jpeg=yes		yes
JPEG-2000         --with-jp2=yes		yes
LCMS v1           --with-lcms=yes		no
LCMS v2           --with-lcms2=yes		no
LQR               --with-lqr=yes		no
LTDL              --with-ltdl=yes		no
LZMA              --with-lzma=yes		no
Magick++          --with-magick-plus-plus=yes	yes
OpenEXR           --with-openexr=yes		yes
PANGO             --with-pango=yes		yes
PERL              --with-perl=no		no
PNG               --with-png=yes		yes
RSVG              --with-rsvg=no		no
TIFF              --with-tiff=yes		yes
WEBP              --with-webp=yes		yes
Windows fonts     --with-windows-font-dir=	none
WMF               --with-wmf=no		no
X11               --with-x=			yes
XML               --with-xml=yes		yes
ZLIB              --with-zlib=yes		yes

X11 Configuration:
      X_CFLAGS        = 
      X_PRE_LIBS      = -lSM -lICE
      X_LIBS          = 
      X_EXTRA_LIBS    = 

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.8.3
  CC              = gcc -std=gnu99 -std=gnu99
  CFLAGS          = -pthread -I/usr/include/OpenEXR -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
  CPPFLAGS        = -I/usr/local/include/ImageMagick-6
  PCFLAGS         = -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = 
  MAGICK_LDFLAGS  = -L/usr/local/lib 
  LIBS            = -lMagickCore -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lfontconfig -lwebp -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -pthread -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread
  CXX             = g++
  CXXFLAGS        = -g -O2 -pthread
  FEATURES        = DPC OpenMP
  DELEGATES       = bzlib fontconfig freetype jng jp2 jpeg openexr pango png ps tiff x xml zlib
Appreciate your help!

Thanks
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

Re: webp not included - failed tests

Post by gegupta »

Hi,

Please help!

Thanks
Geetanjali
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

Re: webp not included - failed tests

Post by gegupta »

I tried the latest version 6.7.4-2 , which i think contains a patch you were talking about. It throws the same error while making :

Code: Select all

magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPInitDecoderConfigInternal'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPDecode'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPFreeDecBuffer'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `WebPGetFeaturesInternal'
collect2: ld returned 1 exit status

User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: webp not included - failed tests

Post by magick »

We cannot reproduce the problem. Try
  • nm libwebp.so.4.0.1 | grep WebPDecode
we get
  • 0000000000012000 T WebPDecode
which confirms WebPDecode is defined in libwebp-0.2.1.
gegupta
Posts: 30
Joined: 2010-12-03T12:14:09-07:00
Authentication code: 8675308

Re: webp not included - failed tests

Post by gegupta »

HI,

I solved the problem by :

Code: Select all

./configure --with-webp LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include
where by web related stuff was.

Thanks for help!
Post Reply