Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. compiling QT for Android with Q_Object macro
QtWS25 Last Chance

compiling QT for Android with Q_Object macro

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 364 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karateka
    wrote on last edited by
    #1

    I'am trying to build my QT project for Android. In one of my class i declared O_OBJECT macro like this:

    class Scene : public QObject
    {
    Q_OBJECT
    ...
    }
    During compile i have following errors:
    :/qt/6.2.4/android_x86_64/include/QtCore/qnamespace.:56:1: error: Parse error at "attribute"
    make: *** [Makefile:507: moc_scene.cpp] Error 1
    make: *** Waiting for unfinished jobs....

    The process "..\ndk\22.1.7171670\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    Error while building/deploying project flappy (kit: Android Qt 6.2.4 Clang x86_64)
    The kit Android Qt 6.2.4 Clang x86_64 has configuration issues which might be the root cause for this problem.
    When executing step "Make"

    Project is compiling without Q_OBJECT macro declared.

    1 Reply Last reply
    1
    • T Offline
      T Offline
      Tatiana Borisova
      wrote on last edited by
      #2

      "The kit Android Qt 6.2.4 Clang x86_64 has configuration issues which might be the root cause for this problem."
      What kind of KIT issue is there?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved