Bug 334900

Summary: wdg2odg import filter fails to build with certain cmake params
Product: [Applications] calligracommon Reporter: Heiko Becker <heiko.becker>
Component: filtersAssignee: Calligra Bugs <calligra-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.8.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Heiko Becker 2014-05-16 18:30:05 UTC
When building with -DWITH_LibWpd=ON -DWITH_LibWpg -DWITH_LibOdfGen (amongst other options)
I get the following error

/calligra-2.8.3/filters/sheets/excel/import -I/var/tmp/paludis/build/app-office-calligra-2.8.3
/work/calligra-2.8.3 -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/build -I/var/tmp/
paludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3/interfaces -I/var/tmp/paludis/buil
d/app-office-calligra-2.8.3/work/calligra-2.8.3/filters/sheets/excel/import/../sidewinder -I/v
ar/tmp/paludis/build/app-office-calligra-2.8.3/work/build/filters -I/var/tmp/paludis/build/app
-office-calligra-2.8.3/work/calligra-2.8.3/libs/kotext -I/var/tmp/paludis/build/app-office-cal
ligra-2.8.3/work/build/libs/kotext -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/cal
ligra-2.8.3/libs/kotext/changetracker -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/
calligra-2.8.3/libs/kotext/styles -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/call
igra-2.8.3/libs/kotext/opendocument -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/ca
lligra-2.8.3/libs/flake -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3
/libs/odf -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/build/libs/odf -I/var/tmp/pa
ludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3/libs/koplugin -I/var/tmp/paludis/bui
ld/app-office-calligra-2.8.3/work/calligra-2.8.3/libs/pigment -I/var/tmp/paludis/build/app-off
ice-calligra-2.8.3/work/calligra-2.8.3/libs/pigment/compositeops -I/var/tmp/paludis/build/app-
office-calligra-2.8.3/work/calligra-2.8.3/libs/pigment/resources -I/var/tmp/paludis/build/app-
office-calligra-2.8.3/work/calligra-2.8.3/libs/kundo2 -I/var/tmp/paludis/build/app-office-call
igra-2.8.3/work/calligra-2.8.3/libs/widgetutils -I/var/tmp/paludis/build/app-office-calligra-2
.8.3/work/calligra-2.8.3/libs/flake/commands -I/var/tmp/paludis/build/app-office-calligra-2.8.
3/work/calligra-2.8.3/libs/flake/tools -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work
/calligra-2.8.3/libs/flake/svg -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/build/l
ibs/flake -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3/libs/main -I/
var/tmp/paludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3/libs/textlayout -I/var/tmp
/paludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3/libs/widgets -I/var/tmp/paludis/b
uild/app-office-calligra-2.8.3/work/build/libs/main -I/var/tmp/paludis/build/app-office-callig
ra-2.8.3/work/calligra-2.8.3/libs/main/config -I/var/tmp/paludis/build/app-office-calligra-2.8
.3/work/calligra-2.8.3/filters/sheets/xlsx -I/var/tmp/paludis/build/app-office-calligra-2.8.3/
work/calligra-2.8.3/filters/libmso -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/cal
ligra-2.8.3/filters/libmsooxml -I/var/tmp/paludis/build/app-office-calligra-2.8.3/work/calligr
a-2.8.3/sheets -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I
/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/includ
e/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScr
ipt -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtHelp -I/usr/
include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/inclu
de/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/
usr/share/qt4/mkspecs/default -I/usr/include/qt4    -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Wno-u
nused-parameter -o CMakeFiles/excelimport.dir/__/sidewinder/value.cpp.o -c /var/tmp/paludis/bu
ild/app-office-calligra-2.8.3/work/calligra-2.8.3/filters/sheets/excel/sidewinder/value.cpp
/var/tmp/paludis/build/app-office-calligra-2.8.3/work/calligra-2.8.3/filters/flow/wpg/import/W
PGImport.cpp:19:27: fatal error: libwpg/libwpg.h: No such file or directory
 #include <libwpg/libwpg.h>
                           ^
compilation terminated.
filters/flow/wpg/import/CMakeFiles/calligra_filter_wpg2odg.dir/build.make:80: recipe for targe
t 'filters/flow/wpg/import/CMakeFiles/calligra_filter_wpg2odg.dir/WPGImport.cpp.o' failed
make[2]: Leaving directory '/var/tmp/paludis/build/app-office-calligra-2.8.3/work/build'
make[2]: *** [filters/flow/wpg/import/CMakeFiles/calligra_filter_wpg2odg.dir/WPGImport.cpp.o] 
Error 1
CMakeFiles/Makefile2:60874: recipe for target 'filters/flow/wpg/import/CMakeFiles/calligra_fil
ter_wpg2odg.dir/all' failed
make[1]: *** [filters/flow/wpg/import/CMakeFiles/calligra_filter_wpg2odg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


Reproducible: Always
Comment 1 Andrew Crouthamel 2018-11-11 04:31:29 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Heiko Becker 2018-11-11 10:12:41 UTC
Oh, seems I even wrote the fix but I didn't push it myself and it was missing the BUG keyword: https://git.reviewboard.kde.org/r/118172/diff/