kipi plugins build failed on Launchpad ppa

Asked by Alan Pater

I have been trying (unsuccesfully) to build a patched version of kipi-plugins in order to test a patch I made for https://bugs.kde.org/show_bug.cgi?id=313203

It appears to fail while trying to build the flickrexport plugin.

[ 66%] Built target kipiplugin_flickrexport
make[2]: Leaving directory `/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu'
dh_auto_build: make -j2 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
******************************************************************************
Build finished at 20140419-2322
FAILED [dpkg-buildpackage died]
******************************************************************************

Is there something I can do to work around this?

PS: The failed build is here: https://launchpad.net/~alan-pater/+archive/dwc/+build/5921490

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu kipi-plugins Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pater (alan-pater) said :
#1

Cooler would be to learn how to build just kipi-plugins, instead of the whole suite of digikam pacakages.

Even cooler, how to build just the metadataeditor plugin ....

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#2

I think the error message in your buildlog is a few pages before the snippet that you included in your question:

cd /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/metadataedit && /usr/bin/x86_64-linux-gnu-g++ -DAREA_CODE_GENERAL=51000 -DAREA_CODE_LOADING=51001 -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=13 -DKDE_DEFAULT_DEBUG_AREA=51000 -DKDE_DEPRECATED_WARNINGS -DMAKE_KIPIPLUGIN_METADATAEDIT_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -DNDEBUG -DQT_NO_DEBUG -fPIC -I/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/metadataedit -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/common/libkipiplugins -I/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/common/libkipiplugins -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/common/libkipiplugins/dialogs -I/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/common/libkipiplugins/dialogs -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/common/libkipiplugins/widgets -I/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/common/libkipiplugins/widgets -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/common/libkipiplugins/tools -I/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/common/libkipiplugins/tools -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/common/libkipiplugins/tools/imageio -I/build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/extra/kipi-plugins/common/libkipiplugins/tools/imageio -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/exif -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/iptc -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp -I/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/plugin -I/usr/include/opencv -I/usr/include/KDE -I/usr/include/qt4/phonon -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/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -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/include/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 -o CMakeFiles/kipiplugin_metadataedit.dir/xmp/xmpcredits.cpp.o -c /build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp: In member function 'void KIPIMetadataEditPlugin::XMPCredits::applyMetadata(QByteArray&)':
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:512:5: error: 'else' without a previous 'if'
     else
     ^
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:521:5: error: 'else' without a previous 'if'
     else
     ^
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:530:5: error: 'else' without a previous 'if'
     else
     ^
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:539:5: error: 'else' without a previous 'if'
     else
     ^
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:548:5: error: 'else' without a previous 'if'
     else
     ^
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:557:5: error: 'else' without a previous 'if'
     else
     ^
/build/buildd/digikam-3.5.0/extra/kipi-plugins/metadataedit/xmp/xmpcredits.cpp:566:5: error: 'else' without a previous 'if'
     else
     ^
make[3]: *** [extra/kipi-plugins/metadataedit/CMakeFiles/kipiplugin_metadataedit.dir/xmp/xmpcredits.cpp.o] Error 1

I have no idea what the root cause for that error is.

Revision history for this message
Alan Pater (alan-pater) said :
#3

Thanks Manfred Hampl, that solved my question.