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

Q_OS_ANDROID not defined for MOC

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes