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

QtSerialBus: Cannot compile Qt5.6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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

      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
      

        1. config.log
          2 kB
        2. .qmake.cache
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes