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

QtSerialBus: Cannot compile Qt5.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.1
    • 5.6.0
    • SerialBus: CAN Bus
    • None
    • Ubuntu 12.04, gcc 4.7.3, Linux 3.2.0-101-generic-pae i686 i686 i386 GNU/Linux

    Description

      When compiling Qt5 (tag v5.6.0) I'm failing on qtserialbus submodule.

      Error message(s):

      socketcanbackend.cpp: In member function 'bool SocketCanBackend::applyConfigurationParameter(int, const QVariant&)':
      socketcanbackend.cpp:215:46: error: 'CAN_RAW_FD_FRAMES' was not declared in this scope
      socketcanbackend.cpp: In member function 'virtual bool SocketCanBackend::writeFrame(const QCanBusFrame&)':
      socketcanbackend.cpp:342:47: error: 'CAN_MAX_DLEN' was not declared in this scope
      socketcanbackend.cpp:343:53: error: 'CANFD_MAX_DLEN' was not declared in this scope
      socketcanbackend.cpp:358:9: error: 'canfd_frame' was not declared in this scope
      socketcanbackend.cpp:358:21: error: expected ';' before 'frame'
      socketcanbackend.cpp:359:9: error: 'frame' was not declared in this scope
      socketcanbackend.cpp: In member function 'void SocketCanBackend::readSocket()':
      socketcanbackend.cpp:552:28: error: aggregate 'SocketCanBackend::readSocket()::canfd_frame frame' has incomplete type and cannot be defined
      socketcanbackend.cpp:559:37: error: 'CANFD_MTU' was not declared in this scope
      socketcanbackend.cpp:559:67: error: 'CAN_MTU' was not declared in this scope
      socketcanbackend.cpp:563:79: error: invalid use of incomplete type 'struct SocketCanBackend::readSocket()::canfd_frame'
      socketcanbackend.cpp:552:16: error: forward declaration of 'struct SocketCanBackend::readSocket()::canfd_frame'
      socketcanbackend.cpp:585:26: error: 'CANFD_MAX_DLEN' was not declared in this scope
      

      Attached files: config.log and .qmake.cache (inside qtserialbus)

      Original configure call for Qt5:

      ./configure -opensource -confirm-license -debug -nomake tests -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -sysconfdir /etc/xdg -openssl -no-gtkstyle -dbus -prefix /opt/qt560
      

      Attachments

        1. config.log
          2 kB
        2. .qmake.cache
          0.1 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-51932
          # Subject Branch Project Status CR V

          Activity

            People

              ablasche Alex Blasche
              cstenger Christian Stenger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes