Bug 275187 - Build error when building Calligra against Qt 4.8
Summary: Build error when building Calligra against Qt 4.8
Status: RESOLVED FIXED
Alias: None
Product: calligracommon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 08:34 UTC by Raymond Wooninck
Modified: 2011-09-08 14:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Wooninck 2011-06-08 08:34:16 UTC
Version:           unspecified (using Devel) 
OS:                Linux

When Calligra is build against Qt 4.8, the following error is generated :

/usr/src/packages/BUILD/calligra-2.3.79.git20110607/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp:153:26: error: ambiguous overload for 'operator<<' in '(&(& operator<<(QDebug, const QBrush&)((*(const QBrush*)(& KDChart::BackgroundAttributes::brush() const()))).QDebug::operator<<(((const char*)"pixmapmode=")))->QDebug::operator<<(((int)(& ba)->KDChart::BackgroundAttributes::pixmapMode())))->QDebug::operator<<(((const char*)"pixmap=")) << KDChart::BackgroundAttributes::pixmap() const()'
/usr/src/packages/BUILD/calligra-2.3.79.git20110607/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp:153:26: note: candidates are:
/usr/include/QtCore/qvariant.h:606:22: note: QDebug operator<<(QDebug, const QVariant&)
/usr/include/QtGui/qbrush.h:171:21: note: QDebug operator<<(QDebug, const QBrush&)
make[2]: *** [plugins/chartshape/kdchart/src/CMakeFiles/kdchart.dir/KDChartBackgroundAttributes.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/calligra-2.3.79.git20110607/build'
make[1]: *** [plugins/chartshape/kdchart/src/CMakeFiles/kdchart.dir/all] Error 2

Building against Qt 4.7 goes fine. 

Reproducible: Always

Steps to Reproduce:
1. Install Qt 4.8
2. Compile Calligra
Comment 1 Anne-Marie Mahfouf 2011-06-08 17:13:23 UTC
It would be better to report such errors to Qt people so they could tell you if it's a Qt problem and if not, how to fix the code to support Qt 4.8. Most developers use Qt 4.7 and not 4.8 yet.
Maybe also use the build system mailing list instead, it would really be more useful.
Comment 2 Jaroslav Reznik 2011-09-08 12:17:59 UTC
https://bugreports.qt.nokia.com//browse/QTBUG-19703 - closed as invalid as there's no QDebug operator<<(QDebug, const QPixmap&), still I don't get it as I can't find one in 4.7 branch...
Comment 3 Cyrille Berger 2011-09-08 14:28:10 UTC
And fixed in calligra master: http://quickgit.kde.org/?p=calligra.git&a=commit&h=accabfeac22e869e5a248a764a64096d107e4c7c