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

qtconnectivity: fails to build for big endian platforms (error: 'bswap_16' was not declared in this scope)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.2
    • 5.4.0
    • None
    • f0bef22496de7d09c1b2ead685ae263dd28f4388

    Description

      Building qtconnectivity fails for big endian platforms because the
      bswap_16 function is not declared. This is the error message:

      In file included from bluez/hcimanager_p.h:52:0,
      from bluez/hcimanager.cpp:35:
      ./bluez/bluez_data_p.h: In function 'quint16 bt_get_le16(const void*)':
      ./bluez/bluez_data_p.h:172:60: error: 'bswap_16' was not declared in
      this scope
      return bswap_16(bt_get_unaligned((const quint16 *) ptr));

      bswap_16 is defined in byteswap.h so we can include this file in order
      to fix this problem.

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            vincent- Vicente Olivert Riera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes