[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problème de .configure



Le Mercredi 21 Novembre 2001 17:12, Denis Barbier a écrit :
> Il manque des lignes ici, quelles sont-elles ?

InitializeMagick(*argv);
 GetMagickVersion(&version);
 DestroyMagick();
 printf("%x.%x.%x",version/(16*16), (version/16)%16, version%16);
 if (version < 0x538)
 {
    return 1;
 }
 return 0;
}

EOF
if { (eval echo configure:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 
&& test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  echo " (should be OK)"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  echo " (not so good)"
        { echo "configure: error: " You need ImageMagick 5.3.8 or newer."" 
1>&2; exit 1; }
fi
rm -fr conftest*
fi

#AC_MSG_RESULT(">=5.3.8")
echo $ac_n "checking if compilation and linking against ImageMagick 
works""... $ac_c" 1>&6
echo "configure:7152: checking if compilation and linking against ImageMagick 
works" >&5



cat > conftest.$ac_ext <<EOF
/* This little program uses all the ImageMagick function used by Kallery.
It should compile and link (but you cannot run it), otherwise there is 
something
wrong with the ImageMagick installation.
(C) 2001 Andras Mantia*/

#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <magick/api.h>

int main() {
 DrawInfo *drawThis;
 TypeMetric metrics;  /*I think this was introduced in 5.3.8*/
 Image *source;
 Image *thumbnail;
 ImageInfo *source_info;
 ImageInfo *thumbnail_info;
 ExceptionInfo exception;
 MagickInfo *mInfo;
 FILE *null_file;

 InitializeMagick("");
 null_file = fopen("/dev/null","w");
 ListMagickInfo(null_file,&exception);
 fclose(null_file);
 mInfo = GetMagickInfo((char *)NULL,&exception);

 source_info = CloneImageInfo((ImageInfo *) 0);
 SetImageInfo(source_info,1,&exception);
 source  = ReadImage(source_info,&exception);
 drawThis = CloneDrawInfo(source_info,0);
 QueryColorDatabase("white",&drawThis->fill);
 CloneString(&drawThis->text,"Do you have the right ImageMagick?");
 GetTypeMetrics(source,drawThis,&metrics);    /*I think this was introduced 
in 5.3.8*/
 DrawImage(source,drawThis);

 thumbnail = CloneImage(source,0,0,0,&exception);
 thumbnail_info = CloneImageInfo(source_info);
 TransformImage(&thumbnail,"","JPEG");
 WriteImage(thumbnail_info,thumbnail);

 DestroyImageInfo(source_info);
 DestroyImage(source);
 DestroyMagick();
}
EOF


if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 
&& test -s conftest; then
  rm -f conftest*
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -f conftest*

  { echo "configure: error: No, it doesn't work. :(
Wrong or no ImageMagick version found!
You need at least version 5.3.8 of the headers and libraries.
The Magick-config script must be in your path.
Take a look at the end of config.log to see the exact error." 1>&2; exit 1; }
fi
echo "$ac_t""Yes, it does!" 1>&6

> Les sources du soft sont disponibles quelque part ?

http://apps.kde.com/na/2/counter/vid/4567/dld0/kallery-0.3.1.tar.gz


-- 
lrathle@teaser.fr



Reply to: