﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
19570	Fix building Inkscape with poppler-24.03.0	Douglas R. Reno	Douglas R. Reno	"I was trying to build Inkscape earlier so I could use it to put the finishing touches on a project, and I got the following build error:


{{{
/sources/inkscape-1.3.2/inkscape-1.3.2_2023-11-25_091e20ef0f
/src/extension/internal/pdfinput/svg-builder.cpp: In member function 
‘bool 
Inkscape::Extension::Internal::SvgBuilder::_addGradientStops(Inkscape::X
ML::Node*, GfxShading*, const Function*)’:
/sources/inkscape-1.3.2/inkscape-1.3.2_2023-11-25_091e20ef0f
/src/extension/internal/pdfinput/svg-builder.cpp:1161:29: error: cannot 
convert ‘Function::Type’ to ‘int’ in initialization
 1161 |     int type = func->getType();
      |                ~~~~~~~~~~~~~^~
      |                             |
      |                             Function::Type

/sources/inkscape-1.3.2/inkscape-1.3.2_2023-11-25_091e20ef0f
/src/extension/internal/pdfinput/svg-builder.cpp:1186:54: error: no 
match for ‘operator==’ (operand types are ‘Function::Type’ and ‘int’)
 1186 |             if (stitchingFunc->getFunc(i)->getType() == 2) {    
// process exponential fxn
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
      |                                                   |     |
      |                                                   |     int
      |                                                   Function::Type

make[2]: *** [src/CMakeFiles/inkscape_base.dir/build.make:1917: src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/svg-builder.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

make[1]: *** [CMakeFiles/Makefile2:1867: src/CMakeFiles/inkscape_base.dir/all] Error 2

make: *** [Makefile:156: all] Error 2

154.2 Elasped Time - inkscape-1.3.2
}}}

It looks like [https://gitlab.com/inkscape/inkscape/-/commit/f7e944575ea5247952d23f85dfa905cfa13f7b28] has the fix, will try it and submit it into the book if it works"	defect	closed	normal	12.2	BOOK	git	medium	fixed		
