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: -------------------------------------------------------------
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
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 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!