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. Error while building Qt from source
Forum Updated to NodeBB v4.3 + New Features

Error while building Qt from source

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 2.7k Views 2 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.
  • M Offline
    M Offline
    mukul
    wrote on last edited by
    #1

    I am getting these errors while make command is executed. I am building from source by following the website instructions.

    from ../../corelib/global/qglobal.cpp:48:
    ../../../include/QtCore/../../src/corelib/kernel/qvariant.h: In constructor ‘QVariant::QVariant(QVariant&&)’:
    ../../../include/QtCore/../../src/corelib/kernel/qvariant.h:265:25: error: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Werror=deprecated-copy]
    265 | { other.d = Private(); }
    | ^
    ../../../include/QtCore/../../src/corelib/kernel/qvariant.h:380:16: note: because ‘QVariant::Private’ has user-provided ‘QVariant::Private::Private(const QVariant::Private&)’
    380 | inline Private(const Private &other) Q_DECL_NOTHROW
    | ^~~~~~~
    cc1plus: all warnings being treated as errors
    Makefile:1029: recipe for target '.obj/qglobal.o' failed
    make[3]: *** [.obj/qglobal.o] Error 1
    make[3]: Leaving directory '/home/mukul/qt5/qtbase/src/tools/bootstrap'
    Makefile:64: recipe for target 'sub-bootstrap-make_first' failed
    make[2]: *** [sub-bootstrap-make_first] Error 2
    make[2]: Leaving directory '/home/mukul/qt5/qtbase/src'
    Makefile:46: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/mukul/qt5/qtbase'
    Makefile:88: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2

    Please help !!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2
      • which Qt version?
      • which operating system?
      • please specify your configure line

      all warnings being treated as errors

      This can be turned off, for example by not making a developer-build.

      (Z(:^

      1 Reply Last reply
      2
      • M Offline
        M Offline
        mukul
        wrote on last edited by mukul
        #3

        I am building version 5.13 for kde neon. I am building open source version from git.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          From git or from the source tar archive ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            From git or from the source tar archive ?

            M Offline
            M Offline
            mukul
            wrote on last edited by
            #5

            @SGaist from git following website instructions.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Which instructions ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                These? https://wiki.qt.io/Building_Qt_5_from_Git

                As said, do not use -developer-build flag unless you have to. If you are building Qt for own use, it's easier to use tarballs.

                (Z(:^

                M 1 Reply Last reply
                2
                • sierdzioS sierdzio

                  These? https://wiki.qt.io/Building_Qt_5_from_Git

                  As said, do not use -developer-build flag unless you have to. If you are building Qt for own use, it's easier to use tarballs.

                  M Offline
                  M Offline
                  mukul
                  wrote on last edited by
                  #8

                  @sierdzio I haven't used this flag.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mukul
                    wrote on last edited by
                    #9

                    I got the errors after removing the flag too. I am a bit new to this, Can u please tell me how to build from tarballs?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Similar procedure:

                      • Download tarball
                      • Uncompress
                      • Create a build folder outside sources
                      • Go inside build folder
                      • Call configure with full path
                      • Build
                      • Install
                      • Hack

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      2

                      • Login

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