Facing issue while building
-
/opt/phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qvariant.h:259: warning: implicitly-declared ‘QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy] ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qvariant.h:259:25: warning: implicitly-declared ‘QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy] 259 | { other.d = Private(); } | ^ ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qvariant.h:374:16: note: because ‘QVariant::Private’ has user-provided ‘QVariant::Private::Private(const QVariant::Private&)’ 374 | inline Private(const Private &other) Q_DECL_NOTHROW | ^~~~~~~
-
You can safely ignore this warning. Or if you want it gone - update to newer Qt, the warning is popping up only with old Qt versions like Qt 5.12.
Plus please, when you post something on this forum: wrap code in code tags:
``` code(); ```
And... if you have a question, ask it. It's not pleasant to guess what the OP might be asking about.
-
Thank so much for the replay @sierdzio now I am getting following error.
/opt/phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qvariant.h:248: error: expected ‘,’ or ‘...’ before ‘apt’ In file included from ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qlocale.h:37, from ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qtextstream.h:40, from ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qdebug.h:42, from ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/QDebug:1, from ../test/main.cpp:2: ../../../phytec/sysroots/cortexa8hf-neon-phytec-linux-gnueabi/usr/include/qt5/QtCore/qvariant.h:248:38: error: expected ‘,’ or ‘...’ before ‘apt’ 248 | QVariant(const QModelIndex &sudo apt install qt511-meta-fullmodelIndex); | ^~~
-
That's completely unrelated. Seems like you accidentally pasted
sudo apt install qt511-meta-full
into that file. Remove it so that the line reads:QVariant(const QModelIndex &modelIndex);
and it will work.