Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Facing issue while building
Forum Updated to NodeBB v4.3 + New Features

Facing issue while building

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 426 Views 1 Watching
  • 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
    KirankumarC
    wrote on last edited by KirankumarC
    #1
    /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
          |                ^~~~~~~
    
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      2
      • K Offline
        K Offline
        KirankumarC
        wrote on last edited by
        #3

        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);
              |                                      ^~~
        
        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by sierdzio
          #4

          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.

          (Z(:^

          1 Reply Last reply
          2
          • K Offline
            K Offline
            KirankumarC
            wrote on last edited by KirankumarC
            #5

            Thank you so much @sierdzio for helping me, while building the project accidentlly selected 64bit GCC compiler instead of 32bit arm-gcc. I followed the steps mentioned in here. Now my project builds without any error.

            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