graphics/ImageMagick build error

Marcus Alves Grando mnag at FreeBSD.org
Thu May 25 14:45:06 PDT 2006


B Briggs wrote:
> Randy Pratt wrote:
>> On Thu, 25 May 2006 11:13:15 -0300
>> Marcus Alves Grando <mnag at FreeBSD.org> wrote:
>>
>>> Eric wrote:
>>>> Jonathan Noack wrote:
>>>>> On 05/25/06 00:49, Jonathan Noack wrote:
>>>>>> After the latest ImageMagick port update to 6.2.7.7, I get the
>>>>>> following
>>>>>> build error on several 6.1-RELEASE and 6.1-STABLE machines (all other
>>>>>> ports are up-to-date).  It appears to be looking for freetype2 in
>>>>>> /usr/local/include whereas it is actually installed in
>>>>>> /usr/X11R6/include.
>>>>> Oops... I confused freetype2 and fontconfig.  It can't find
>>>>> fontconfig/fontconfig.h which is located in /usr/X11R6/include.
>>>>>
>>>>>> ...
>>>> <snip>
>>>>
>>>> i got the same error too, so i did a 'locate fontconfig.h' and copied
>>>> its full path, then edited magick/type.c to point to the location of my
>>>> file (which you mentioned above).  it got the port to compile and
>>>> install, but i agree with you, something is wonky with the latest
>>>> ImageMagick
>>
>> The above didn't work for me on 6-STABLE nor did the patch suggested
>> by PR97889.
>>
>>> Please, try this patch:
>>>
>>> http://marcus.grupos.com.br:8080/patch/ImageMagick.patch
>>
>> This patch worked fine for me.  Thanks for looking into this and
>> fixing it!
>>
>> Randy
> 
> I'm not sure that I got as far as the fontconfig problem. My problem is
> with svg support.
> 
> Here's relevant output from the compile (6.1 R):
> 
> if /bin/sh ./libtool --silent --tag=CC --mode=compile ccache cc
> -DHAVE_CONFIG_H -I. -I. -I./magick -I./wand  -I./ltdl -I./ltdl
> -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include
> -I/usr/X11R6/include -I/X11 -I/usr/local/include/libxml2  -O -pipe -Wall
> -MT coders/magick_libMagick_la-svg.lo -MD -MP -MF
> "coders/.deps/magick_libMagick_la-svg.Tpo" -c -o
> coders/magick_libMagick_la-svg.lo `test -f 'coders/svg.c' || echo
> './'`coders/svg.c; \
> then mv -f "coders/.deps/magick_libMagick_la-svg.Tpo"
> "coders/.deps/magick_libMagick_la-svg.Plo"; else rm -f
> "coders/.deps/magick_libMagick_la-svg.Tpo"; exit 1; fi
> coders/svg.c:94:26: librsvg/rsvg.h: No such file or directory
> coders/svg.c:2587: error: syntax error before "gpointer"
> .
> .
> .
> many more errors from svg.c because it couldn't find rsvg.h
> 
> The include path (which should be /usr/X11R6/include/librsvg-2) is not
> on that failed command - here is my .pc contents:
> 
> /usr/X11R6/libdata/pkgconfig$ cat librsvg-2.0.pc
> prefix=/usr/X11R6
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
> 
> Name: librsvg
> Description: library that renders svg files
> Version: 2.14.4
> Requires: glib-2.0 gdk-pixbuf-2.0
> Libs: -L${libdir} -lrsvg-2
> Cflags: -I${includedir}/librsvg-2
> 

Now i think that's fixed. Please test:

http://marcus.grupos.com.br:8080/patch/ImageMagick.patch

Regards

-- 
Marcus Alves Grando
marcus(at)corp.grupos.com.br  |  Grupos Internet S/A
  mnag(at)FreeBSD.org         |  FreeBSD.org


More information about the freebsd-ports mailing list