Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78763

5.13 & 5.14: widgets/widgets/tablet not compiled on QNX

    XMLWordPrintable

Details

    • QNX
    • d5c4cd7a251096482037e55b9d0a1b590264649b

    Description

      Install Qt5.14.0 QNX binaries with online installer (on linux or Windows), build example widgets/widgets/tablet (I used Creator). Build fails with following message:

      qcc -Vgcc_ntoarmv7le -c -mfpu=neon -Wno-psabi -lang-c++ -g -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../tablet -I. -I/home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include -I/home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtWidgets -I/home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtGui -I/home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore -I. -I/opt/qnx700/target/qnx7/usr/include -I/opt/qnx700/target/qnx7/usr/include/freetype2 -I/home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/mkspecs/qnx-armle-v7-qcc -o tabletcanvas.o ../tablet/tabletcanvas.cpp
      ../tablet/tabletcanvas.cpp: In member function 'void TabletCanvas::updateBrush(const QTabletEvent*)':
      ../tablet/tabletcanvas.cpp:259:60: error: call of overloaded 'abs(int)' is ambiguous
                   m_color.setAlpha(std::max(std::abs(vValue - 127),
                                                                  ^
      In file included from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/qmath.h:55:0,
                       from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/QtMath:1,
                       from ../tablet/tabletcanvas.cpp:55:
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:664:1: note: candidate: float std::__1::abs(float)
       abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:668:1: note: candidate: double std::__1::abs(double)
       abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:672:1: note: candidate: long double std::__1::abs(long double)
       abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
       ^
      ../tablet/tabletcanvas.cpp:260:60: error: call of overloaded 'abs(int)' is ambiguous
                                             std::abs(hValue - 127)));
                                                                  ^
      In file included from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/qmath.h:55:0,
                       from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/QtMath:1,
                       from ../tablet/tabletcanvas.cpp:55:
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:664:1: note: candidate: float std::__1::abs(float)
       abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:668:1: note: candidate: double std::__1::abs(double)
       abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:672:1: note: candidate: long double std::__1::abs(long double)
       abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
       ^
      ../tablet/tabletcanvas.cpp:287:59: error: call of overloaded 'abs(int)' is ambiguous
                   m_pen.setWidthF(std::max(std::abs(vValue - 127),
                                                                 ^
      In file included from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/qmath.h:55:0,
                       from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/QtMath:1,
                       from ../tablet/tabletcanvas.cpp:55:
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:664:1: note: candidate: float std::__1::abs(float)
       abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:668:1: note: candidate: double std::__1::abs(double)
       abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:672:1: note: candidate: long double std::__1::abs(long double)
       abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
       ^
      ../tablet/tabletcanvas.cpp:288:59: error: call of overloaded 'abs(int)' is ambiguous
                                            std::abs(hValue - 127)) / 12);
                                                                 ^
      In file included from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/qmath.h:55:0,
                       from /home/joaijala/RTA/qt5/5.14.0/qnx7_armv7/include/QtCore/QtMath:1,
                       from ../tablet/tabletcanvas.cpp:55:
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:664:1: note: candidate: float std::__1::abs(float)
       abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:668:1: note: candidate: double std::__1::abs(double)
       abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
       ^
      /opt/qnx700/target/qnx7/usr/include/c++/v1/cmath:672:1: note: candidate: long double std::__1::abs(long double)
       abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
       ^
      cc: /opt/qnx700/host/linux/x86_64/usr/lib/gcc/arm-unknown-nto-qnx7.0.0eabi/5.4.0/cc1plus error 1
      Makefile:1409: recipe for target 'tabletcanvas.o' failed
      make: *** [tabletcanvas.o] Error 1
      16:37:40: The process "/opt/qnx700/host/linux/x86_64/usr/bin/make" exited with code 2.
      Error while building/deploying project tablet (kit: Qt 5.14.0 for QNX 7.0.0 ARMv7)
      The kit Qt 5.14.0 for QNX 7.0.0 ARMv7 has configuration issues which might be the root cause for this problem.
      When executing step "Make"
      16:37:40: Elapsed time: 00:01.
      

      I tried to compile randomly picked widgets/widgets/tooltip and that compiles fine on same environment.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes