Bug#570848: ams: FTBFS: error: no matching function for call to 'min(qreal&, double)'

Arnaud Patard (Rtp) arnaud.patard at rtp-net.org
Sun Feb 21 21:50:16 UTC 2010


Reinhard Tartler <siretart at tauware.de> writes:

Hi,

> Package: ams
> Severity: serious
>
> relevant log:
>
> g++ -D_REENTRANT -DLADSPA_PATH=\"/usr/lib/ladspa:/usr/local/lib/ladspa\" -DTRANSLATIONSDIR=\"/usr/share/ams/translations\" -DHAVE_CONFIG_H -I.    -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL   -Wall -g -O2 -c -o canvasfunction.o canvasfunction.cpp
> In file included from /usr/include/qt4/QtCore/qobject.h:48,
>                  from /usr/include/qt4/QtCore/qiodevice.h:46,
>                  from /usr/include/qt4/QtCore/qdatastream.h:45,
>                  from /usr/include/qt4/QtCore/qpair.h:45,
>                  from /usr/include/qt4/QtGui/qbrush.h:45,
>                  from canvasfunction.cpp:4:
> /usr/include/qt4/QtCore/qstring.h:91: note: the mangling of 'va_list' has changed in GCC 4.4
> canvasfunction.cpp: In member function 'void CanvasFunction::mouseMoveEvent(int, QGraphicsSceneMouseEvent*)':
> canvasfunction.cpp:37: error: no matching function for call to 'min(qreal&, double)'
> canvasfunction.cpp:38: error: no matching function for call to 'max(qreal&, double)'
> canvasfunction.cpp:39: error: no matching function for call to 'min(qreal&, double)'
> canvasfunction.cpp:40: error: no matching function for call to 'max(qreal&, double)'
> canvasfunction.cpp:61: error: no matching function for call to 'min(qreal, double)'
> canvasfunction.cpp:62: error: no matching function for call to 'max(qreal, double)'
> canvasfunction.cpp:72: error: no matching function for call to 'min(qreal, double)'
> canvasfunction.cpp:73: error: no matching function for call to 'max(qreal, double)'
> canvasfunction.cpp:83: error: no matching function for call to 'min(qreal, double)'
> canvasfunction.cpp:84: error: no matching function for call to 'max(qreal, double)'
> canvasfunction.cpp:94: error: no matching function for call to 'min(qreal, double)'
> canvasfunction.cpp:95: error: no matching function for call to 'max(qreal, double)'
>
> the affected code however reads like this:
>
> ,----
> | void CanvasFunction::mouseMoveEvent(int p, QGraphicsSceneMouseEvent *event)
> | {
> |   qreal x = event->scenePos().x();
> |   qreal y = event->scenePos().y();
> | 
> |   x = std::min(x, 5.0 * FUNCTION_SCALE);
> |   x = std::max(x, -5.0 * FUNCTION_SCALE);
> |   y = std::min(y, 5.0 * FUNCTION_SCALE);
> |   y = std::max(y, -5.0 * FUNCTION_SCALE);
> | 
> |   switch (*function.mode) {
> `----
>
> not sure what this problem could mean. Perhaps debian armel people can
> comment on this?

hmm... my guess this issue is similar to this one :
http://wiki.debian.org/ArmEabiFixes#qreal.28qMin.2CqMax.2CQt.29

Maybe adding a cast will solve your issue.

Hope this helps,
Arnaud





More information about the pkg-multimedia-maintainers mailing list