Opened 5 weeks ago

Closed 5 weeks ago

#19570 closed defect (fixed)

Fix building Inkscape with poppler-24.03.0

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 12.2
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

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

Change History (2)

comment:1 by Douglas R. Reno, 5 weeks ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:2 by Douglas R. Reno, 5 weeks ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.