wxsvg build failure
by kgha from LinuxQuestions.org on (#6CSRS)
Trying to build wxsvg-1.5.24 using ponce's buildscript for -current, but build process stops with
Code:SVGCanvasCairo.cpp: In function 'void convertMaskRGB2Alpha(cairo_surface_t*)':
SVGCanvasCairo.cpp:454:9: error: 'uint32_t' was not declared in this scope
454 | uint32_t *row = (uint32_t*) current_row;
| ^~~~~~~~
SVGCanvasCairo.cpp:17:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
16 | #include <wx/file.h>
+++ |+#include <cstdint>
17 |
SVGCanvasCairo.cpp:454:19: error: 'row' was not declared in this scope; did you mean 'pow'?
454 | uint32_t *row = (uint32_t*) current_row;
| ^~~
| pow
SVGCanvasCairo.cpp:454:35: error: expected primary-expression before ')' token
454 | uint32_t *row = (uint32_t*) current_row;
| ^
SVGCanvasCairo.cpp:462:21: error: expected ';' before 'a2'
462 | uint32_t a2 = a * 255;
| ^~~
| ;
SVGCanvasCairo.cpp:463:23: error: 'a2' was not declared in this scope; did you mean 'a1'?
463 | row[x] = (a2 << 24) + 0xffffff;
| ^~
| a1
make[2]: *** [Makefile:415: SVGCanvasCairo.lo] Error 1
make[2]: Leaving directory '/tmp/SBo/wxsvg-1.5.24/src/cairo'
make[1]: *** [Makefile:689: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/wxsvg-1.5.24/src'
make: *** [Makefile:470: all-recursive] Error 1Grateful for suggestions how to fix.
Code:SVGCanvasCairo.cpp: In function 'void convertMaskRGB2Alpha(cairo_surface_t*)':
SVGCanvasCairo.cpp:454:9: error: 'uint32_t' was not declared in this scope
454 | uint32_t *row = (uint32_t*) current_row;
| ^~~~~~~~
SVGCanvasCairo.cpp:17:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
16 | #include <wx/file.h>
+++ |+#include <cstdint>
17 |
SVGCanvasCairo.cpp:454:19: error: 'row' was not declared in this scope; did you mean 'pow'?
454 | uint32_t *row = (uint32_t*) current_row;
| ^~~
| pow
SVGCanvasCairo.cpp:454:35: error: expected primary-expression before ')' token
454 | uint32_t *row = (uint32_t*) current_row;
| ^
SVGCanvasCairo.cpp:462:21: error: expected ';' before 'a2'
462 | uint32_t a2 = a * 255;
| ^~~
| ;
SVGCanvasCairo.cpp:463:23: error: 'a2' was not declared in this scope; did you mean 'a1'?
463 | row[x] = (a2 << 24) + 0xffffff;
| ^~
| a1
make[2]: *** [Makefile:415: SVGCanvasCairo.lo] Error 1
make[2]: Leaving directory '/tmp/SBo/wxsvg-1.5.24/src/cairo'
make[1]: *** [Makefile:689: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/wxsvg-1.5.24/src'
make: *** [Makefile:470: all-recursive] Error 1Grateful for suggestions how to fix.