---------- Forwarded message ----------
From: Ricardo Fabbri <rf...@gm...>
Date: Aug 24, 2006 12:03 PM
Subject: Re: SIP compilation problems (and a long overdue Hello!)
To: "Dean S. Messing" <de...@sh...>
Hi Dean,
thanks for your message. I am in Brazil right now taking a vacation. I
finished my 2nd year of PhD, which is about midway towards the degree.
The load is still going to be tough, but I am willing to work on SIP
more substantially from now on. I've been able to sparkle interest in
some important people who are able to support my activities with SIP,
so that will probably work.
I unfortunately am short on time here, since it is my first visit to
my family in 2 years, but I will fully answer your email as soon as I
get back to my lab. I will also provide patches to Animal and SIP in
order for them to work with recent versions of ImageMagick and Scilab.
The problems you reported are very easy to fix, once I am sitting in
my own machine and can compile somethings. Just hang on for a little
bit, if you can.
best regards,
On 8/23/06, Dean S. Messing <de...@sh...> wrote:
> Hello Ricardo.
>
> It's been over a year since we last spoke by e-mail. I hope this is
> still a working e-mail address.
>
> I trust all is well with you and yours. (If you wd. reply to this
> then I'll know it made it. Thanks!)
>
> I take it from the message you left on
> <ttp://siptoolbox.sourceforge.net/> that you've completed your
> Ph.D. or, at least, can see the proverbial light at the end of the
> tunnel. Congratulations! I left you a short note on sourceforge but
> I'm not sure you saw it.
>
> Anyway, I've just recently installed Fedora Core 5 on a new machine
> and decided to upgrade Scilab (to 4.0 CVS) as well as SIP.
> It is running gcc-4.1.1 and ImageMagick-6.2.5
>
> I had some problems compiling animal due to static nested function
> declarations in animal/img.c but I see from the CVS that that has
> been detected and fixed. I wish I had known about the CVS of this stuff.
> Would have saved me half a day of work!
>
> But now I'm up against a harder issue. The call sequence for several
> Magick library routines has changed somewhere between 6.2.2 and 6.2.5
> and so SIP won't compile. The failure I'm seeing is:
>
> .
> .
> .
> make[2]: Entering directory `/usr/local/scilab_contribs/sip-0.4.0-rc1/src'
> .
> .
> .
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/lib/scilab-4.0-b4-20060515/routines -g -O2 -W -Wall -Wno-implicit-int -I/usr/local/include -I/usr/include -I/usr/include -MT mogrify_int.lo -MD -MP -MF .deps/mogrify_int.Tpo -c mogrify_int.c -fPIC -DPIC -o .libs/mogrify_int.o
> .
> .
> .
> mogrify_int.c:146: error: too few arguments to function 'MogrifyImage'
> .
> .
> .
> make[2]: *** [mogrify_int.lo] Error 1
> make[2]: Leaving directory `/usr/local/scilab_contribs/sip-0.4.0-rc1/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/scilab_contribs/sip-0.4.0-rc1/src'
> make: *** [all-recursive] Error 1
>
>
> The failure code is here, in src/mogrify_int.c:
>
> stat = MogrifyImage(image_info, argc, argv, &image);
> GetImageException(image,&exception);
> if(!stat || exception.severity != UndefinedException)
> SIP_MAGICK_ERROR;
>
>
> The current call sequence for MogrifyImage() is
> (from /usr/include/magick/mogrify.h):
>
> extern MagickExport MagickBooleanType
> MogrifyImage(ImageInfo *,const int,const char **,Image **,ExceptionInfo *),
> MogrifyImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *),
> MogrifyImageInfo(ImageInfo *,const int,const char **,ExceptionInfo *),
> MogrifyImageList(ImageInfo *,const int,const char **,Image **,
> ExceptionInfo *),
> MogrifyImages(ImageInfo *,const int,const char **,Image **,ExceptionInfo *);
>
> Note the new 5th argument. I have no idea how to modify your code
> to be correct since I really know nothing about the ImageMagick library
> routines.
>
> Any quick fixes possible? I think the additional argument has
> been added to a number of Magick's library routines. Hopefully
> the solution to this will carry over to the rest.
>
> I'd hate to have to install an older IM just for this one problem
> (but I will if I have to).
>
> Any help will be appreciated greatly.
>
> Oh. Let me add one more problem (which I fixed):
> Somewhere down the line, IM has dropped the
> definition of the integer variable "UndefinedCompressionQuality" so
> compiling SIP will fail, even on versions of IM back about 6.0.
> I fixed this problem by adding the following line
> in /usr/include/magick/image.h
>
> #define TransparentOpacity QuantumRange
> ---> #define UndefinedCompressionQuality 0UL
>
> where I believe it used to be in old version of IM.
>
> The problem code is here, in sip_config.h, on line 93:
>
> /* The name of the default compression quality in this particular ImageMagick
> setup */
> #ifndef SIP_MAGICK_DEFAULT_COMPRESSION_QUALITY
> #define SIP_MAGICK_DEFAULT_COMPRESSION_QUALITY UndefinedCompressionQuality
> #endif
>
> which generates an undefined variable error on line 299 of src/mogrify_int.c
>
> That's all for now.
>
> Best regards,
> Dean
>
--
Ricardo Fabbri
PhD Student in Computer Engineering / Computer Vision
LEMS - Laboratory for Engineering Man-Machine Systems
Brown University, USA
--
Ricardo Fabbri
PhD Student in Computer Engineering / Computer Vision
LEMS - Laboratory for Engineering Man-Machine Systems
Brown University, USA
|