fails to build with ImageMagick 7.x

Bug #1653154 reported by Arkadiusz Miśkiewicz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Library | libopenshot
New
Undecided
Unassigned

Bug Description

Feature request - please add support to current ImageMagick version 7.x.

Fails to build due to API changes:

/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp: In member function 'std::tr1::shared_ptr<Magick::Image> openshot::Frame::GetMagickImage()':
/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp:838:16: error: 'class Magick::Image' has no member named 'matte'
  magick_image->matte(true);
                ^
/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp: In member function 'void openshot::Frame::AddMagickImage(std::tr1::shared_ptr<Magick::Image>)':
/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp:860:5: error: 'PixelPacket' is not a member of 'Magick'
     Magick::PixelPacket *pixels = new_image->getPixels(0,0, new_image->columns(), new_image->rows());
     ^
/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp:860:5: note: suggested alternative:
In file included from /usr/include/ImageMagick-7/MagickCore/color.h:21:0,
                 from /usr/include/ImageMagick-7/MagickCore/image.h:21,
                 from /usr/include/ImageMagick-7/MagickCore/draw.h:22,
                 from /usr/include/ImageMagick-7/MagickCore/annotate.h:21,
                 from /usr/include/ImageMagick-7/MagickCore/MagickCore.h:79,
                 from /usr/include/ImageMagick-7/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-7/Magick++.h:10,
                 from /home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/../include/Frame.h:57,
                 from /home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp:28:
/usr/include/ImageMagick-7/MagickCore/pixel.h:204:3: note: 'MagickCore::PixelPacket'
 } PixelPacket;
   ^
/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/src/Frame.cpp:860:26: error: 'pixels' was not declared in this scope
     Magick::PixelPacket *pixels = new_image->getPixels(0,0, new_image->columns(), new_image->rows());
                          ^
make[2]: *** [src/CMakeFiles/openshot.dir/build.make:790: src/CMakeFiles/openshot.dir/Frame.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/users/arekm/rpm/BUILD/libopenshot-0.1.3/build'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.