when installing Imagemagick-6.4.4 from source, error occurs
Posted: 2008-10-13T07:24:18-07:00
when installing Imagemagick-6.4.4 for Windows from source, the procedure is like that:
(1) Firstly with Visual Studio 6, I build the configure.dsw workspace in ImageMagick-6.4.4\VisualMagick\configure (use release), and then run it;
(2) Secondly, I open the VisualDynamicMT.dsw or VisualStaticMT.dsw (generated by step 1), set All project as active project, then clean and rebuild all. At this time, I got one error "..\ImageMagick-6.4.4\magick\string.c(1016) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64"
As someone said, I modified the ..\ImageMagick-6.4.4\magick\string.c 1106 line as "length=(double) ((MagickOffsetType) size);", redo above procedures, but I got three errors "
..\ImageMagick-6.4.4\Magick++\lib\Image.cpp(1528) : error C2065: 'RandomThresholdImageChannel' : undeclared identifier
..\ImageMagick-6.4.4\Magick++\lib\Image.cpp(1906) : error C2065: 'SparseColorImage' : undeclared identifier
..\ImageMagick-6.4.4\Magick++\lib\Image.cpp(1907) : error C2440: 'initializing' : cannot convert from 'int' to 'struct MagickCore::_Image *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
ImageRef.cpp"
How should I do to solve this problem? And need I change the Visual Studio 6.0 to Visual Studio 2005 or other version? Pls help me , thx.
(1) Firstly with Visual Studio 6, I build the configure.dsw workspace in ImageMagick-6.4.4\VisualMagick\configure (use release), and then run it;
(2) Secondly, I open the VisualDynamicMT.dsw or VisualStaticMT.dsw (generated by step 1), set All project as active project, then clean and rebuild all. At this time, I got one error "..\ImageMagick-6.4.4\magick\string.c(1016) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64"
As someone said, I modified the ..\ImageMagick-6.4.4\magick\string.c 1106 line as "length=(double) ((MagickOffsetType) size);", redo above procedures, but I got three errors "
..\ImageMagick-6.4.4\Magick++\lib\Image.cpp(1528) : error C2065: 'RandomThresholdImageChannel' : undeclared identifier
..\ImageMagick-6.4.4\Magick++\lib\Image.cpp(1906) : error C2065: 'SparseColorImage' : undeclared identifier
..\ImageMagick-6.4.4\Magick++\lib\Image.cpp(1907) : error C2440: 'initializing' : cannot convert from 'int' to 'struct MagickCore::_Image *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
ImageRef.cpp"
How should I do to solve this problem? And need I change the Visual Studio 6.0 to Visual Studio 2005 or other version? Pls help me , thx.