Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Qt Source Code
Qt 6.12 LTS is out! See what's new in the release blog

Building Qt Source Code

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 2 Posters 8.9k 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #4
    • where you've got Qt code from? Git, single zip, tarball?
    • what operating system are you using?
    • there is no need to run -developer-build (unless you want to contribute to Qt)
    • which Qt version are you building?
    • please run the configure with verbose flag set, that should give more info on where and why the compilation failed

    (Z(:^

    1 Reply Last reply
    1
    • Vinod KuntojiV Offline
      Vinod KuntojiV Offline
      Vinod Kuntoji
      wrote on last edited by
      #5
      • I got the code from Git
      • I am using version Ubuntu
      • I tried without -developer -build option, but still i am getting core dumped.
      • I cloned from qt 5.11 branch
      • How to use the verbose flag? Please explain me.

      C++, Qt, Qt Quick Developer,
      PthinkS, Bangalore

      sierdzioS 1 Reply Last reply
      0
      • Vinod KuntojiV Vinod Kuntoji
        • I got the code from Git
        • I am using version Ubuntu
        • I tried without -developer -build option, but still i am getting core dumped.
        • I cloned from qt 5.11 branch
        • How to use the verbose flag? Please explain me.
        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #6

        @Vinod-Kuntoji said in Building Qt Source Code:

        • How to use the verbose flag? Please explain me.

        I don't remember to be honest. Please run ./configure -help and look for the flag. It was either -v or -verbose I think, or something similar.

        OK, on Ubuntu I recommend running this command before configuring:

        sudo apt build-dep qt5-qmake
        

        That should pull all Qt dependencies which you need.

        Also, remember not to run configure on the same source twice. You need to clean up previous build before running configure again. Best way to do it is to build out-of-source, for example:

        mkdir build
        cd build
        ./../configure <your configure flags> -prefix $PWD
        

        If you want the output files (Qt installation) in a separate dir, you can specify something else in -prefix.

        (Z(:^

        1 Reply Last reply
        4
        • Vinod KuntojiV Offline
          Vinod KuntojiV Offline
          Vinod Kuntoji
          wrote on last edited by Vinod Kuntoji
          #7

          @sierdzio,
          I am getting following error
          You cannot make a shadow build from a source tree containing a previous build.
          Cannot proceed.

          C++, Qt, Qt Quick Developer,
          PthinkS, Bangalore

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

            Well the message is clear - your build dir is dirty. Remove Qt source code, download it and try again.

            (Z(:^

            1 Reply Last reply
            1
            • Vinod KuntojiV Offline
              Vinod KuntojiV Offline
              Vinod Kuntoji
              wrote on last edited by
              #9

              @sierdzio ,

              Thank you. I will try.

              C++, Qt, Qt Quick Developer,
              PthinkS, Bangalore

              1 Reply Last reply
              0
              • Vinod KuntojiV Offline
                Vinod KuntojiV Offline
                Vinod Kuntoji
                wrote on last edited by Vinod Kuntoji
                #10

                @sierdzio ,

                I cloned Qt5 from git again. Now i am getting make errors.
                make[3]: *** [.obj/qfilesystemengine_unix.o] Error 1
                make[3]: *** Waiting for unfinished jobs....
                make[3]: Leaving directory /home/user/qt5/qtbase/src/tools/bootstrap' make[2]: *** [sub-bootstrap-make_first] Error 2 make[2]: Leaving directory /home/user/qt5/qtbase/src'
                make[1]: *** [sub-src-make_first] Error 2
                make[1]: Leaving directory `/home/user/qt5/qtbase'
                make: *** [module-qtbase-make_first] Error 2

                C++, Qt, Qt Quick Developer,
                PthinkS, Bangalore

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

                  Please post earlier lines from your output. These do not show what the problem is.

                  (Z(:^

                  Vinod KuntojiV 1 Reply Last reply
                  0
                  • sierdzioS sierdzio

                    Please post earlier lines from your output. These do not show what the problem is.

                    Vinod KuntojiV Offline
                    Vinod KuntojiV Offline
                    Vinod Kuntoji
                    wrote on last edited by
                    #12

                    @sierdzio

                    /home/user/qt5/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:110:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ defined but not used [-Werror=unused-function]
                    static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
                    ^

                    C++, Qt, Qt Quick Developer,
                    PthinkS, Bangalore

                    sierdzioS 1 Reply Last reply
                    0
                    • Vinod KuntojiV Vinod Kuntoji

                      @sierdzio

                      /home/user/qt5/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:110:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ defined but not used [-Werror=unused-function]
                      static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
                      ^

                      sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #13

                      @Vinod-Kuntoji said in Building Qt Source Code:

                      @sierdzio

                      /home/user/qt5/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:110:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ defined but not used [-Werror=unused-function]
                      static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
                      ^

                      Sounds like you're still using -developer-build and warnings are errors. Since 5.11 is not yet released, such build failures are to be expected.

                      (Z(:^

                      1 Reply Last reply
                      1

                      • Login

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