Bug#639771: fritzing: FTBFS: src/partsbinpalette/graphicsflowlayout.cpp:83:63: error: no matching function for call to 'qMax(double&, qreal)'
Source: fritzing
Version: 0.6.3b-2
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
Justification: FTBFS
User: debian-arm@lists.debian.org
Usertags: eabi
X-Debbugs-CC: debian-superh@lists.debian.org
Hi,
fritzing FTBFS on armel and sh4. Probably this will FTBFS in armhf.
armel:
https://buildd.debian.org/status/fetch.php?pkg=fritzing&arch=armel&ver=0.6.3b-2&stamp=1314423039
sh4:
http://buildd.debian-ports.org/status/fetch.php?pkg=fritzing&arch=sh4&ver=0.6.3b-2&stamp=1314462968
-----
/usr/include/qt4/QtCore/qstring.h: At global scope:
/usr/include/qt4/QtCore/qstring.h:187:17: note: the mangling of
'va_list' has changed in GCC 4.4
g++ -c -pipe -g -O2 -g -O2 -Wall -Wall -W -D_REENTRANT -DQT_WEBKIT
-DLINUX_32 -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XML_LIB
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql
-I/usr/include/qt4/QtSvg -I/usr/include/qt4 -Isrc/lib/boost_1_43_0
-Irelease -o release/graphicsflowlayout.o
src/partsbinpalette/graphicsflowlayout.cpp
src/partsbinpalette/graphicsflowlayout.cpp: In member function 'int
GraphicsFlowLayout::doLayout(const QRectF&)':
src/partsbinpalette/graphicsflowlayout.cpp:83:63: error: no matching
function for call to 'qMax(double&, qreal)'
src/partsbinpalette/graphicsflowlayout.cpp:83:63: note: candidate is:
/usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T>
const T& qMax(const T&, const T&)
make[2]: *** [release/graphicsflowlayout.o] Error 1
make[2]: Leaving directory
`/build/buildd-fritzing_0.6.3b-2-armel-ctm7HT/fritzing-0.6.3b'
make[1]: *** [release] Error 2
-----
I made a patch which revised this problem.
Could you apply this patch?
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
diff --git a/src/partsbinpalette/graphicsflowlayout.cpp b/src/partsbinpalette/graphicsflowlayout.cpp
index b93fa41..c22a92b 100644
--- a/src/partsbinpalette/graphicsflowlayout.cpp
+++ b/src/partsbinpalette/graphicsflowlayout.cpp
@@ -80,7 +80,7 @@ int GraphicsFlowLayout::doLayout(const QRectF &rect) {
item->setGeometry(QRectF(QPoint(x, y), item->preferredSize()));
x = nextX;
- lineHeight = qMax(lineHeight, item->preferredSize().height());
+ lineHeight = qMax(qreal(lineHeight), item->preferredSize().height());
}
m_lastWidth = rect.width();
Reply to: