Galapix / galapix

Galapix moved to https://gitlab.com/galapix/galapix
GNU General Public License v3.0
31 stars 4 forks source link

Magick::Image' has no member named 'matte' #12

Open 5shekel opened 6 years ago

5shekel commented 6 years ago

when building with scons i get 'const class Magick::Image' has no member named 'matte'

Build type: release
Using C++ compiler... g++
Checking for C++ library spnav... (cached) no
Checking for C++ header file boost/signals2/signal.hpp... (cached) yes
Checking for C++ library exif... (cached) yes
Checking for C++ library sqlite3... (cached) yes
Checking for C library jpeg... (cached) yes
Checking for C++ library GL... (cached) yes
Checking for C++ library GLEW... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
g++ -o build/src/plugins/imagemagick.o -c -std=c++11 -O3 -s -isystem/usr/include/libpng16 -isystem/usr/include/SDL2 -pthread -fopenmp -isystem/usr/include/ImageMagick-7 -D_REENTRANT -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -Ibuild/src -Isrc src/plugins/imagemagick.cpp
src/plugins/imagemagick.cpp: In function 'SoftwareSurfacePtr MagickImage2SoftwareSurface(const Magick::Image&)':
src/plugins/imagemagick.cpp:106:13: error: 'const class Magick::Image' has no member named 'matte'
   if (image.matte())
             ^~~~~
src/plugins/imagemagick.cpp:113:21: error: 'PixelPacket' in namespace 'Magick' does not name a type
       const Magick::PixelPacket* src_pixels = image.getConstPixels(0, y, width, 1);
                     ^~~~~~~~~~~
src/plugins/imagemagick.cpp:118:52: error: 'src_pixels' was not declared in this scope
         dst_pixels[4*x + 0] = static_cast<uint8_t>(src_pixels[x].red   >> shift);
                                                    ^~~~~~~~~~
src/plugins/imagemagick.cpp:118:52: note: suggested alternative: 'dst_pixels'
         dst_pixels[4*x + 0] = static_cast<uint8_t>(src_pixels[x].red   >> shift);
                                                    ^~~~~~~~~~
                                                    dst_pixels
src/plugins/imagemagick.cpp:132:21: error: 'PixelPacket' in namespace 'Magick' does not name a type
       const Magick::PixelPacket* src_pixels = image.getConstPixels(0, y, width, 1);
                     ^~~~~~~~~~~
src/plugins/imagemagick.cpp:136:52: error: 'src_pixels' was not declared in this scope
         dst_pixels[3*x + 0] = static_cast<uint8_t>(src_pixels[x].red   >> shift);
                                                    ^~~~~~~~~~
src/plugins/imagemagick.cpp:136:52: note: suggested alternative: 'dst_pixels'
         dst_pixels[3*x + 0] = static_cast<uint8_t>(src_pixels[x].red   >> shift);
                                                    ^~~~~~~~~~
                                                    dst_pixels
scons: *** [build/src/plugins/imagemagick.o] Error 1
scons: building terminated because of errors.
jose1711 commented 6 years ago

galapix is not compatible with imagemagick 7. you need to revert back to version 6 to be able to compile