Page 1 of 1
Magick++
Posted: 2014-07-04T01:40:28-07:00
by VanGog
Hi, I have read many developers use IM to load images in C/C++. For example, very favourite is CImg but it uses IM, so there is dependency. I originally wanted to find some simple library to load basic images like jpg, png, tiff or bmp. I searched internet and found reference to Magick++ which is in the source codes of IM.
Now it is not clear to me, is Magick++ depended on IM? Or is it possible to copy the folder out of IM? I just tried to copy it and found dependency to Magick folder. I copied the Magick folder to Magick++ and again found that I am missing initiation and stopped in magick-config.h - fatal error C1021: invalid preprocessor command 'warning'
Code: Select all
# warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
So what are basic steps to use Magick++? Do I need to include IM directory or any other directories?
Re: Magick++
Posted: 2014-07-04T14:56:36-07:00
by VanGog
I have fixed first problem (I added the recommended command line options to compiler
viewtopic.php?f=23&t=22528), but here are new problems:
Code: Select all
c:\imagemagick-windows\imagemagick-6.8.6\magick\magick-type.h(87): error C2146: syntax error : missing ';' before identifier 'SignedQuantum'
c:\imagemagick-windows\imagemagick-6.8.6\magick\magick-type.h(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\imagemagick-windows\imagemagick-6.8.6\magick\magick-type.h(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(157): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(157): error C2065: '__printf__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(157): error C3861: '__format__': identifier not found
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(157): error C2072: 'MagickCore::ThrowMagickException' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(160): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(160): error C2065: '__printf__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(160): error C3861: '__format__': identifier not found
c:\imagemagick-windows\imagemagick-6.8.6\magick\exception.h(160): error C2072: 'MagickCore::ThrowMagickExceptionList' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(68): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(68): error C2065: '__printf__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(68): error C3861: '__format__': identifier not found
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(68): error C2072: 'MagickCore::FormatLocaleFile' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(70): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(70): error C2065: '__printf__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(70): error C3861: '__format__': identifier not found
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(70): error C2072: 'MagickCore::FormatLocaleFileList' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(72): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(72): error C2065: '__printf__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(72): error C3861: '__format__': identifier not found
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(72): error C2072: 'MagickCore::FormatLocaleString' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(74): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(74): error C2065: '__printf__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(74): error C3861: '__format__': identifier not found
c:\imagemagick-windows\imagemagick-6.8.6\magick\locale_.h(74): error C2072: 'MagickCore::FormatLocaleStringList' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(77): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(77): error C2065: '__nonnull__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(77): error C2072: 'MagickCore::ConcatenateMagickString' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(79): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(79): error C2065: '__nonnull__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(79): error C2072: 'MagickCore::CopyMagickString' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(101): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(101): error C2065: '__nonnull__' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\string_.h(101): error C2072: 'MagickCore::ConcatenateStringInfo' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(94): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(94): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(94): error C2072: 'MagickCore::CloseCacheView' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(95): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(95): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(95): error C2072: 'MagickCore::OpenCacheView' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(98): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(98): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(98): error C2072: 'MagickCore::AllocateString' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(100): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(100): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(100): error C2072: 'MagickCore::InterpretImageAttributes' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(101): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(101): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(101): error C2072: 'MagickCore::PostscriptGeometry' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(103): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(103): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(103): error C2072: 'MagickCore::TranslateText' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(107): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(107): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(107): error C2072: 'MagickCore::GetImageClippingPathAttribute' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(108): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(108): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(108): error C2072: 'MagickCore::GetNextImageAttribute' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(111): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(111): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(111): error C2072: 'MagickCore::AcquireCacheViewIndexes' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(112): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(112): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(112): error C2072: 'MagickCore::AcquireIndexes' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(115): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(115): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(115): error C2072: 'MagickCore::AcquirePixels' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(118): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(118): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(118): error C2072: 'MagickCore::AcquireCacheViewPixels' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(120): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(120): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(120): error C2072: 'MagickCore::AcquireImagePixels' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(126): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(126): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(126): error C2072: 'MagickCore::AllocateImage' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(129): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(129): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(129): error C2072: 'MagickCore::ExtractSubimageFromImage' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(131): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(131): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(131): error C2072: 'MagickCore::GetImageFromMagickRegistry' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(133): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(133): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(133): error C2072: 'MagickCore::GetImageList' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(134): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(134): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(134): error C2072: 'MagickCore::GetNextImage' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(135): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(135): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(135): error C2072: 'MagickCore::GetPreviousImage' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(136): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(136): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(136): error C2072: 'MagickCore::FlattenImages' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(141): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(141): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(141): error C2072: 'MagickCore::MosaicImages' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(142): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(142): error C2065: 'deprecated' : undeclared identifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(142): error C2072: 'MagickCore::PopImageList' : initialization of a function
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(144): error C3646: '__attribute__' : unknown override specifier
c:\imagemagick-windows\imagemagick-6.8.6\magick\deprecate.h(144): fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
what am I missing?
Re: Magick++
Posted: 2014-07-05T01:03:54-07:00
by VanGog
I found that I need to install cygwin X11 release 6 however it"s not clear to me whether should I download sources or binary release?