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

Static android build error on redefinition of boolean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.1.0 Beta 1
    • Core: Other
    • None
    • Android

      The qtbase/src/3rdparty/libjpeg/src/jmorecfg.h header conditionally creates a typedef for boolean (see around line 242). If HAVE_BOOLEAN is not defined, it typedefs it to int. The Android NDK (I'm using 21.3.6528147 if it matters) creates the same typedef but to the type uint8_t. This causes a typedef redefinition error. If I hack that file locally to avoid the redefinition, the build does succeed.

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

            thiago Thiago Macieira
            crscott Craig Scott
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes