Actions
Bug #2576
openBaut nicht mit ImageMagick 7
Start date:
04/10/2019
Due date:
% Done:
0%
Estimated time:
Description
Beim Versuch das Plugin zu bauen bekomme ich olgenden Fehler:
vdr01 ~ # cd /usr/local/src/VDR/PLUGINS/src/skinflatplus vdr01 skinflatplus # make c++ -Wall -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -g -ggdb -O0 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++11 -c -DUSE_ZAPCOCKPIT -DUSE_MENUSELECTION -DUSE_MENUORG -DUSE_RESUMERESET -DUSE_NETWORKNAME -DPLUGIN_NAME_I18N='"skinflatplus"' -DVDRLOGO=\"vdrlogo_gen2vdr\" -DWIDGETFOLDER='"/usr/local/lib/vdr/skinflatplus"' -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-7 -I/usr/include/uuid -I/usr/include/freetype2 -o imagecache.o imagecache.c c++ -Wall -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -g -ggdb -O0 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++11 -c -DUSE_ZAPCOCKPIT -DUSE_MENUSELECTION -DUSE_MENUORG -DUSE_RESUMERESET -DUSE_NETWORKNAME -DPLUGIN_NAME_I18N='"skinflatplus"' -DVDRLOGO=\"vdrlogo_gen2vdr\" -DWIDGETFOLDER='"/usr/local/lib/vdr/skinflatplus"' -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-7 -I/usr/include/uuid -I/usr/include/freetype2 -o imagescaler.o imagescaler.c c++ -Wall -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -g -ggdb -O0 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++11 -c -DUSE_ZAPCOCKPIT -DUSE_MENUSELECTION -DUSE_MENUORG -DUSE_RESUMERESET -DUSE_NETWORKNAME -DPLUGIN_NAME_I18N='"skinflatplus"' -DVDRLOGO=\"vdrlogo_gen2vdr\" -DWIDGETFOLDER='"/usr/local/lib/vdr/skinflatplus"' -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-7 -I/usr/include/uuid -I/usr/include/freetype2 -o imagemagickwrapper.o imagemagickwrapper.c imagemagickwrapper.c: In member function ‘cImage* cImageMagickWrapper::CreateImage(int, int, bool)’: imagemagickwrapper.c:29:11: error: ‘PixelPacket’ does not name a type const PixelPacket *pixels = buffer.getConstPixels(0, 0, w, h); ^~~~~~~~~~~ imagemagickwrapper.c:35:40: error: ‘pixels’ was not declared in this scope for (const void *pixels_end = &pixels[w*h]; pixels < pixels_end; ++pixels) ^~~~~~ imagemagickwrapper.c:35:40: note: suggested alternative: ‘pipe2’ for (const void *pixels_end = &pixels[w*h]; pixels < pixels_end; ++pixels) ^~~~~~ pipe2 imagemagickwrapper.c:36:52: error: ‘MaxRGB’ was not declared in this scope scaler.PutSourcePixel(pixels->blue / ((MaxRGB + 1) / 256), ^~~~~~ imagemagickwrapper.c:36:52: note: suggested alternative: ‘MaxMap’ scaler.PutSourcePixel(pixels->blue / ((MaxRGB + 1) / 256), ^~~~~~ MaxMap imagemagickwrapper.c:42:36: error: ‘pixels’ was not declared in this scope for (const void *pixels_end = &pixels[width*height]; pixels < pixels_end; ++pixels) ^~~~~~ imagemagickwrapper.c:42:36: note: suggested alternative: ‘pipe2’ for (const void *pixels_end = &pixels[width*height]; pixels < pixels_end; ++pixels) ^~~~~~ pipe2 imagemagickwrapper.c:43:49: error: ‘MaxRGB’ was not declared in this scope *imgData++ = ((~int(pixels->opacity / ((MaxRGB + 1) / 256)) << 24) | ^~~~~~ imagemagickwrapper.c:43:49: note: suggested alternative: ‘MaxMap’ *imgData++ = ((~int(pixels->opacity / ((MaxRGB + 1) / 256)) << 24) | ^~~~~~ MaxMap imagemagickwrapper.c: In member function ‘cImage cImageMagickWrapper::CreateImageCopy()’: imagemagickwrapper.c:55:11: error: ‘PixelPacket’ does not name a type const PixelPacket *pixels = buffer.getConstPixels(0, 0, w, h); ^~~~~~~~~~~ imagemagickwrapper.c:58:32: error: ‘pixels’ was not declared in this scope tColor col = (~int(pixels->opacity * 255 / MaxRGB) << 24) ^~~~~~ imagemagickwrapper.c:58:32: note: suggested alternative: ‘pipe2’ tColor col = (~int(pixels->opacity * 255 / MaxRGB) << 24) ^~~~~~ pipe2 imagemagickwrapper.c:58:56: error: ‘MaxRGB’ was not declared in this scope tColor col = (~int(pixels->opacity * 255 / MaxRGB) << 24) ^~~~~~ imagemagickwrapper.c:58:56: note: suggested alternative: ‘MaxMap’ tColor col = (~int(pixels->opacity * 255 / MaxRGB) << 24) ^~~~~~ MaxMap imagemagickwrapper.c: In member function ‘Magick::Color cImageMagickWrapper::Argb2Color(tColor)’: imagemagickwrapper.c:85:17: error: ‘MaxRGB’ was not declared in this scope Color color(MaxRGB*red/255, MaxRGB*green/255, MaxRGB*blue/255, MaxRGB*(0xFF-alpha)/255); ^~~~~~ imagemagickwrapper.c:85:17: note: suggested alternative: ‘MaxMap’ Color color(MaxRGB*red/255, MaxRGB*green/255, MaxRGB*blue/255, MaxRGB*(0xFF-alpha)/255); ^~~~~~ MaxMap make: *** [Makefile:90: imagemagickwrapper.o] Error 1
Updated by Martin1234 over 5 years ago
- Subject changed from Baut nicht mit VDR 2.4.0 to Baut nicht mit ImageMagick 7
Hallo,
das hat nix mit VDR 2.4 zu tun sondern mit ImageMagick 7. ImageMagick 6 funktioniert aber es hat sich einiges zu ImageMagick 7 geändert. Ich hatte leider keine Zeit das mal anzupassen. Ich hatte gehofft das ich das mal aus einem anderen Plugin mir abschauen kann welches Support für ImageMagick 7 hat.
Updated by MegaV0lt over 5 years ago
Ich habe es jetzt mit der Version 6 von ImageMagick zum laufen bekommen
Actions