You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

serega

Beginner

  • "serega" started this thread

Posts: 3

Occupation: Student

  • Send private message

1

Wednesday, July 13th 2005, 6:18pm

Krita and ImageMagick

I am trying to compile krita but ./configure gives me
"You're missing ImageMagick (>=5.5.2). krita will not be compiled. You can download ImageMagick from http://www.imagemagick.org/". :(

I know that I have ImageMagick installed:

[root@localhost koffice-1.4.0a]# convert -version
Version: ImageMagick 6.2.0 03/30/05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC


What do I do? ?(

jacek

Trainee

Posts: 105

Location: Warsaw, Poland

Occupation: Student

  • Send private message

2

Wednesday, July 13th 2005, 6:25pm

RE: Krita and ImageMagick

Probably you need development package for ImageMagick (on my system that package is called ImageMagick-devel).

serega

Beginner

  • "serega" started this thread

Posts: 3

Occupation: Student

  • Send private message

3

Wednesday, July 13th 2005, 6:44pm

RE: Krita and ImageMagick

Where can I find that package Jacek?

Below is the part of "configure" that checks for ImageMagick.
As I understand it checks for $MAGICK_CONFIG and if it is not defined it searches for
Magick-config? Am I right?
All ImageMagick commands ("convert" etc) are installed in /usr/bin in my system.
I have /usr/lib/ImageMagick-6.2.0/config with some xml configuration files.
How do I make configure see my installation?


echo "$as_me:$LINENO: checking for Magick-config" >&5
echo $ECHO_N "checking for Magick-config... $ECHO_C" >&6
if test -n "$MAGICK_CONFIG"; then
kde_cv_path="$MAGICK_CONFIG";
else
kde_cache=`echo Magick-config | sed 'y%./+-%__p_%'`

if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else

kde_cv_path="NONE"
kde_save_IFS=$IFS
IFS=':'
dirs=""
for dir in $PATH; do
dirs="$dirs $dir"
done
if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin $dirs"
else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin"
fi
IFS=$kde_save_IFS

for dir in $dirs; do
if test -x "$dir/Magick-config"; then
if test -n ""
then
evalstr="$dir/Magick-config 2>&1 "
if eval $evalstr; then
kde_cv_path="$dir/Magick-config"
break
fi
else
kde_cv_path="$dir/Magick-config"
break
fi
fi
done

eval "kde_cv_path_$kde_cache=$kde_cv_path"


fi


eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""

fi

if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6

{ echo "$as_me:$LINENO: WARNING: Could not find ImageMagick anywhere, check http://www.imagemagick.org/ for ImageMagick >= 5.5.2." >&5
echo "$as_me: WARNING: Could not find ImageMagick anywhere, check http://www.imagemagick.org/ for ImageMagick >= 5.5.2." >&2;}

else
echo "$as_me:$LINENO: result: $kde_cv_path" >&5
echo "${ECHO_T}$kde_cv_path" >&6
MAGICK_CONFIG=$kde_cv_path

fi


if test -n "$MAGICK_CONFIG"; then
vers=`$MAGICK_CONFIG --version 2>/dev/null | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test -n "$vers" && test "$vers" -ge 5005002
then
if test "$vers" -ge 6000003
then

cat >>confdefs.h <<\_ACEOF
#define HAVE_MAGICK6 1
_ACEOF

fi
LIBMAGICK_LIBS="`$MAGICK_CONFIG --libs`"
LIBMAGICK_LDFLAGS="`$MAGICK_CONFIG --ldflags`"
LIBMAGICK_RPATH=
for args in $LIBMAGICK_LIBS; do
case $args in
-L*)
LIBMAGICK_RPATH="$LIBMAGICK_RPATH $args"
;;
esac
done
LIBMAGICK_RPATH=`echo $LIBMAGICK_RPATH | $SED -e "s/-L/-R/g"`
LIBMAGICK_CPPFLAGS="`$MAGICK_CONFIG --cppflags`"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MAGICK 1
_ACEOF

else
{ echo "$as_me:$LINENO: WARNING: You need at least ImageMagick 5.5.2" >&5
echo "$as_me: WARNING: You need at least ImageMagick 5.5.2" >&2;}
fi
fi

if test ! "$USE_RPATH" = "yes"; then
LIBMAGICK_RPATH=
fi

jacek

Trainee

Posts: 105

Location: Warsaw, Poland

Occupation: Student

  • Send private message

4

Wednesday, July 13th 2005, 7:45pm

RE: Krita and ImageMagick

Quoted

Originally posted by serega
Where can I find that package Jacek?

What system do you use?

Quoted

Below is the part of "configure" that checks for ImageMagick.
As I understand it checks for $MAGICK_CONFIG and if it is not defined it searches for Magick-config? Am I right?

Yes, this program should tell the configure script where ImageMagick libraries are located.

It looks like that krita program uses ImageMagick libraries, not the tools.

This post has been edited 1 times, last edit by "jacek" (Jul 13th 2005, 7:45pm)


serega

Beginner

  • "serega" started this thread

Posts: 3

Occupation: Student

  • Send private message

5

Thursday, July 14th 2005, 9:48pm

RE: Krita and ImageMagick

I use Mandrake10.2 and ImageMagick was installed by default.

I compiled ImageMagick from source and installed it, now krita compiled succesfully too.