Q_Object macro Does't work for android
Solved
Mobile and Embedded
-
Re: compiling QT for Android with Q_Object macro
hello eveyone.
I create a empty QML project then I add a .h/.cpp file to the project and can compile it successfully but when I adding Q_Object on the class in a .cpp file and trying to compile it give me this error.:/Qt6.2/6.2.4/android_armv7/include/QtCore/qnamespace.:56:1: error: Parse error at "__attribute__" make: *** [Makefile:566: moc_junk.cpp] Error 1 make: *** Waiting for unfinished jobs.... 21:22:40: The process "D:\android\SDK4\ndk\23.1.7779620\prebuilt\windows-x86_64\bin\make.exe" exited with code 2. Error while building/deploying project FQT (kit: Android Qt 6.2.4 Clang armeabi-v7a) When executing step "Make"
I try to clean the project and rerun the qmake but doesn't work for me.
I can build without Q_Object macro but when i add the macro it give me error.
enyone have any idea how solve this problem -
@abdoll78 said in Q_Object macro Does't work for android:
error: Parse error at "attribute"
https://forum.qt.io/topic/133614/qt6-2-1-moc-exe-includes-wrong-directory/4
-