Just forwarding this solution so it becomes searchable.
Ricardo
---------- Forwarded message ----------
From: Ricardo Fabbri <rf...@gm...>
Date: Thu, Jun 4, 2009 at 12:18 PM
Subject: Re: animal Problem with the « make » command
To: Thierry HARDY <thi...@ho...>
Hi,
there seems to be some problem with configure, since CFLAGS in the
imagemagick detection line seem to point to the right place, but the
final CPPFLAGS doesn't have it.
A quick fix for you is to do :
CPPFLAGS="-I/usr/include/ImageMagick" ./configure
let me know how that works.
Ricardo
On Thu, Jun 4, 2009 at 11:51 AM, Thierry HARDY <thi...@ho...> wrote:
> Dear M. Fabbri,
>
> thank you for your help.
>
> I have installed all the libmagick devel libraries
>
> the result of ./configure seems to be ok.
>
> I just found this 2 lines that seems to be mistaken:
>
> ./configure: line 20781: test: too many arguments
>
> ./configure: line 20788: test: too many arguments
>
> but the result of ./configure seems to be ok.
>
> But Now I have a problem with the « make » command.
>
> The error is the file « api.h » is missing in the repertory magick
>
> here is the error message
>
> « img.c:30:59: erreur: magick/api.h : Aucun fichier ou dossier de ce type »
>
> But there is this file in my system:
>
> « usr/include/GraphicsMagick/magick/api.h »
>
> « usr/include/ImageMagick/magick/api.h »
>
> how can I do to sucess to compile animal?
>
> Best regards
>
> T Hardy
>
> the result of "make":
>
> Making all in animal
>
> make[1]: entrant dans le répertoire «
> /home/th/echange_linux/matlab_octave_scilab/sip/animal-0.15.2/animal »
>
> make all-am
>
> make[2]: entrant dans le répertoire «
> /home/th/echange_linux/matlab_octave_scilab/sip/animal-0.15.2/animal »
>
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I. -I.. -I.. -I/usr/include/cairo -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
> -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/include/graphviz -I/usr/include/freetype2
> -I/usr/include -I/usr/include/libxml2 -g -O2 -W -Wall -Wno-implicit-int -MT
> img.lo -MD -MP -MF ".deps/img.Tpo" -c -o img.lo img.c; \
>
> then mv -f ".deps/img.Tpo" ".deps/img.Plo"; else rm -f ".deps/img.Tpo"; exit
> 1; fi
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/graphviz
> -I/usr/include/freetype2 -I/usr/include -I/usr/include/libxml2 -g -O2 -W
> -Wall -Wno-implicit-int -MT img.lo -MD -MP -MF .deps/img.Tpo -c img.c -fPIC
> -DPIC -o .libs/img.o
>
> img.c:30:59: erreur: magick/api.h : Aucun fichier ou dossier de ce type
>
> In file included from img.c:41:
>
> img_g.c_incl: In function ‘imshow’:
>
> img_g.c_incl:279: erreur: ‘Image’ undeclared (first use in this function)
>
> img_g.c_incl:279: erreur: (Each undeclared identifier is reported only once
>
> img_g.c_incl:279: erreur: for each function it appears in.)
>
> and the result of "./configure":
>
> [root@localhost animal-0.15.2]# ./configure
>
> configuring AnImaL 0.15.2
>
> checking build system type... i686-pc-linux-gnu
>
> checking host system type... i686-pc-linux-gnu
>
> checking for a BSD-compatible install... /usr/bin/install -c
>
> checking whether build environment is sane... yes
>
> checking for gawk... gawk
>
> checking whether make sets $(MAKE)... yes
>
> checking for gcc... gcc
>
> checking for C compiler default output file name... a.out
>
> checking whether the C compiler works... yes
>
> checking whether we are cross compiling... no
>
> checking for suffix of executables...
>
> checking for suffix of object files... o
>
> checking whether we are using the GNU C compiler... yes
>
> checking whether gcc accepts -g... yes
>
> checking for gcc option to accept ISO C89... none needed
>
> checking for style of include used by make... GNU
>
> checking dependency style of gcc... gcc3
>
> checking for a sed that does not truncate output... /bin/sed
>
> checking for grep that handles long lines and -e... /bin/grep
>
> checking for egrep... /bin/grep -E
>
> checking for ld used by gcc... /usr/bin/ld
>
> checking if the linker (/usr/bin/ld) is GNU ld... yes
>
> checking for /usr/bin/ld option to reload object files... -r
>
> checking for BSD-compatible nm... /usr/bin/nm -B
>
> checking whether ln -s works... yes
>
> checking how to recognize dependent libraries... pass_all
>
> checking how to run the C preprocessor... gcc -E
>
> checking for ANSI C header files... yes
>
> checking for sys/types.h... yes
>
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
>
> checking for string.h... yes
>
> checking for memory.h... yes
>
> checking for strings.h... yes
>
> checking for inttypes.h... yes
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> checking dlfcn.h usability... yes
>
> checking dlfcn.h presence... yes
>
> checking for dlfcn.h... yes
>
> checking for g++... g++
>
> checking whether we are using the GNU C++ compiler... yes
>
> checking whether g++ accepts -g... yes
>
> checking dependency style of g++... gcc3
>
> checking how to run the C++ preprocessor... g++ -E
>
> checking for g77... g77
>
> checking whether we are using the GNU Fortran 77 compiler... yes
>
> checking whether g77 accepts -g... yes
>
> checking the maximum length of command line arguments... 1572864
>
> checking command to parse /usr/bin/nm -B output from gcc object... ok
>
> checking for objdir... .libs
>
> checking for ar... ar
>
> checking for ranlib... ranlib
>
> checking for strip... strip
>
> checking for correct ltmain.sh version... yes
>
> checking if gcc supports -fno-rtti -fno-exceptions... no
>
> checking for gcc option to produce PIC... -fPIC
>
> checking if gcc PIC flag -fPIC works... yes
>
> checking if gcc static flag -static works... no
>
> checking if gcc supports -c -o file.o... yes
>
> checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
> yes
>
> checking whether -lc should be explicitly linked in... no
>
> checking dynamic linker characteristics... GNU/Linux ld.so
>
> checking how to hardcode library paths into programs... immediate
>
> checking whether stripping libraries is possible... yes
>
> checking if libtool supports shared libraries... yes
>
> checking whether to build shared libraries... yes
>
> checking whether to build static libraries... yes
>
> configure: creating libtool
>
> appending configuration tag "CXX" to libtool
>
> checking for ld used by g++... /usr/bin/ld
>
> checking if the linker (/usr/bin/ld) is GNU ld... yes
>
> checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
> yes
>
> checking for g++ option to produce PIC... -fPIC
>
> checking if g++ PIC flag -fPIC works... yes
>
> checking if g++ static flag -static works... no
>
> checking if g++ supports -c -o file.o... yes
>
> checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
> yes
>
> checking dynamic linker characteristics... GNU/Linux ld.so
>
> (cached) (cached) checking how to hardcode library paths into programs...
> immediate
>
> appending configuration tag "F77" to libtool
>
> checking if libtool supports shared libraries... yes
>
> checking whether to build shared libraries... yes
>
> checking whether to build static libraries... yes
>
> checking for g77 option to produce PIC... -fPIC
>
> checking if g77 PIC flag -fPIC works... yes
>
> checking if g77 static flag -static works... no
>
> checking if g77 supports -c -o file.o... yes
>
> checking whether the g77 linker (/usr/bin/ld) supports shared libraries...
> yes
>
> checking dynamic linker characteristics... GNU/Linux ld.so
>
> (cached) (cached) checking how to hardcode library paths into programs...
> immediate
>
> checking for sqrt in -lm... yes
>
> checking for Magick-config... /usr/bin/Magick-config
>
> checking for ImageMagick CFLAGS... -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/graphviz
> -I/usr/include/freetype2 -I/usr/include -I/usr/include/libxml2
> -I/usr/include/ImageMagick
>
> checking for ImageMagick LIBS... -L/usr/lib -Wl,--as-needed
> -Wl,--no-undefined -Wl,-z,relro -L/usr/lib -lfreetype -lz -L/usr/lib
> -lMagickCore -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -llqr-1
> -lglib-2.0 -lpng -ldjvulibre -lfontconfig -lwmflite -lXext -lXt -lSM -lICE
> -lX11 -lbz2 -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0
> -lglib-2.0 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lpthread -lltdl
>
> checking for ImageMagick VERSION... 6.5.0 Q16
>
> checking for ImageMagick - version >= 5.4.2... ./configure: line 20688:
> test: 6 Q16 : integer expression expected
>
> yes
>
> ./configure: line 20781: test: too many arguments
>
> ./configure: line 20788: test: too many arguments
>
> checking for GetLocaleExceptionMessage in -lMagick... no
>
> checking for GetLocaleExceptionMessage in -lMagickCore... yes
>
> checking for ANSI C header files... (cached) yes
>
> checking for an ANSI C-conforming const... yes
>
> checking for inline... inline
>
> checking for stdbool.h that conforms to C99... yes
>
> checking for _Bool... yes
>
> checking for char... yes
>
> checking size of char... 1
>
> checking for short... yes
>
> checking size of short... 2
>
> checking for int... yes
>
> checking size of int... 4
>
> checking for long... yes
>
> checking size of long... 4
>
> checking for long long... yes
>
> checking size of long long... 8
>
> checking for float... yes
>
> checking size of float... 4
>
> checking for double... yes
>
> checking size of double... 8
>
> checking for long double... yes
>
> checking size of long double... 12
>
> checking for hypot... yes
>
> configure: creating ./config.status
>
> config.status: creating Makefile
>
> config.status: creating animal/Makefile
>
> config.status: creating src/Makefile
>
> config.status: creating config/Makefile
>
> config.status: creating config/animal.pc
>
> config.status: creating config/animal-config
>
> config.status: creating animal/config.h
>
> config.status: animal/config.h is unchanged
>
> config.status: executing animal/animal-config.h commands
>
> config.status: creating animal/animal-config.h - prefix ANIMAL for
> animal/config.h defines
>
> config.status: animal/animal-config.h is unchanged
>
> config.status: executing depfiles commands
>
> Final Compilation Flags:
>
> CC = gcc
>
> CFLAGS = -g -O2 -W -Wall -Wno-implicit-int
>
> CPPFLAGS = -I/usr/include/cairo -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
> -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/include/graphviz -I/usr/include/freetype2
> -I/usr/include -I/usr/include/libxml2
>
> LDFLAGS = -L/usr/lib -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro
> -L/usr/lib -lfreetype -lz
>
> LIBS = -L/usr/lib -lMagickCore -ljbig -llcms -ltiff -lfreetype -ljasper
> -ljpeg -llqr-1 -lglib-2.0 -lpng -ldjvulibre -lfontconfig -lwmflite -lXext
> -lXt -lSM -lICE -lX11 -lbz2 -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lpthread -lltdl
> -lm
>
> ________________________________
> Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ?
> Lancez-vous !
|