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

Q_OS_ANDROID not defined for MOC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.6.0
    • Build tools: qmake
    • None

      When building for android (on Windows platform) the variable Q_OS_ANDROID is not defined when MOC is run. This can cause problems, in particular if the selection of a base class depends upon this define.

      The work around is to modify the makefile, adding -DANDROID to the DEFINES= line.

      It would be better if this were added to the appropriate .conf file.

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

            ogoffart Olivier Goffart (Woboq GmbH)
            nethers David Netherwood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes