Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Queries regarding the running the init-repository after downloading the Qt source code
QtWS25 Last Chance

Queries regarding the running the init-repository after downloading the Qt source code

Scheduled Pinned Locked Moved Unsolved General and Desktop
31 Posts 3 Posters 12.2k Views
  • 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 6 Jul 2016, 07:34 last edited by
    #2

    Hi,

    No there no need to re-clone. Call git pull to update your tree and git submodule update to update the submodules.

    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
    • P Offline
      P Offline
      Pradeep Kumar
      wrote on 6 Jul 2016, 07:40 last edited by
      #3

      @SGaist

      thank you for the reply , i will run the following commands. and proceed to build the source code

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pradeep Kumar
        wrote on 6 Jul 2016, 12:24 last edited by
        #4

        @SGaist

        it is updated, thanks for the reply.

        Now i need to configure http://doc.qt.io/qt-5/configure-options.html
        is the steps mandatory to configure.

        Thanks,

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 Jul 2016, 19:51 last edited by
          #5

          Yes, the first time you build Qt you have to call configure.

          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
          • P Offline
            P Offline
            Pradeep Kumar
            wrote on 7 Jul 2016, 05:08 last edited by
            #6

            i am using the command

            1. configure -developer-build -opensource -nomake examples -nomake tests -confirm-license

            for configuring in Qt path and it specified that

            Qt is configured.

            after configuration it specified to use * make * command.

            is the steps correct.

            1. After configure is completed should i have to use make command or can i use Qt creator to build the source code. both the ways can it be done.

            Thanks,

            Pradeep Kumar
            Qt,QML Developer

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 7 Jul 2016, 06:55 last edited by
              #7

              Unless you plan to add features/fix bugs in Qt, drop the -developer-build option.

              Since you will build all of Qt, just use the make -jX command where X is num_of_core * 2 + 1. That will keep your machine busy.

              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
              • P Offline
                P Offline
                Pradeep Kumar
                wrote on 7 Jul 2016, 08:05 last edited by
                #8
                1. I want to contribute to Qt so asking the questions, will you guide me. I have configured, now i am trying to build it. was my analysis correct about building using make .

                2. second question is how to clean the Qt source code , so that i can configure in another build directory and use make.

                Pradeep Kumar
                Qt,QML Developer

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 7 Jul 2016, 10:30 last edited by
                  #9

                  What analysis ?

                  The best way is to do out of source builds so you don't have any artifacts in the sources and if there's a problem you can just nuke the folder and start again or have several parallel builds.

                  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
                  • P Offline
                    P Offline
                    Pradeep Kumar
                    wrote on 7 Jul 2016, 14:04 last edited by
                    #10

                    i used git submodule foreach --recursive "git clean -dfx" command to clean the clone , so my previous second question is solved.

                    and as you specified i used another build folder and made it separate it separate from source folder.
                    coming to previous first question i used configure command to configure.
                    then i used simply make instead of make -jx , so is their any problem ?.

                    make files got created in build directory.

                    Pradeep Kumar
                    Qt,QML Developer

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 7 Jul 2016, 15:00 last edited by
                      #11

                      No problem with calling only make. The downside is that the compilation will take way longer than if you put all the available power of your machine on it.

                      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
                      • P Offline
                        P Offline
                        Pradeep Kumar
                        wrote on 8 Jul 2016, 13:33 last edited by
                        #12

                        i have few questions

                        1. I didnt run ./init-repository for QtWebkit,QWebkit-examples,QtWebEngine, is this required for building source code through Qt Creator.
                        2. And can we run Qt source code from Qt Creator as Desktop kit configured for linux.
                          3)I am facing issues using Qt creator, i am getting connection terminated, but using make command through terminal, i didnt get connection terminated.

                        please guide me , require your assisstance in building source code through Qt Creator.

                        Pradeep Kumar
                        Qt,QML Developer

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 8 Jul 2016, 13:59 last edited by
                          #13
                          1. No, they are optional modules. If you don't use them, just don't build them as they are pretty big and expensive to build.

                          2. Don't open the whole Qt project in Qt Creator. Only the part you'll be working on. The qtbase module itself is composed of more than 18000 files.

                          Personally, I always build Qt on the console.

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

                          P 1 Reply Last reply 8 Jul 2016, 14:02
                          1
                          • S SGaist
                            8 Jul 2016, 13:59
                            1. No, they are optional modules. If you don't use them, just don't build them as they are pretty big and expensive to build.

                            2. Don't open the whole Qt project in Qt Creator. Only the part you'll be working on. The qtbase module itself is composed of more than 18000 files.

                            Personally, I always build Qt on the console.

                            P Offline
                            P Offline
                            Pradeep Kumar
                            wrote on 8 Jul 2016, 14:02 last edited by
                            #14

                            @SGaist

                            thanks you for your answer,

                            1. But still if i do the changes and want to compile and see the changes what do i do.

                            Pradeep Kumar
                            Qt,QML Developer

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 8 Jul 2016, 14:19 last edited by
                              #15

                              What do you mean by that ?

                              You'll need to run a unit test or a small application that validates your changes.

                              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
                              • P Offline
                                P Offline
                                Pradeep Kumar
                                wrote on 9 Jul 2016, 07:33 last edited by
                                #16

                                i have taken sub modules in Qt, having a query.

                                1. do we need to have desktop kit configured for compiling source code.
                                  or do we need to configure using the qmake , generated by qt source code. ( i am using linux machine).

                                Pradeep Kumar
                                Qt,QML Developer

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 9 Jul 2016, 21:55 last edited by
                                  #17

                                  If you want to build one of the modules through Qt Creator, you have to make a kit with your custom built Qt.

                                  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
                                  1
                                  • P Offline
                                    P Offline
                                    Pradeep Kumar
                                    wrote on 10 Jul 2016, 08:49 last edited by
                                    #18

                                    yes i have configured the kit with custom built of Qt, i have compiled few modules , thanks for the answer.

                                    i found that qtbase submodule is not compiling, because qconfig.h and qconfig.cpp is not found, but when i used make command to build the Qt source code through terminal, i found those classes in build folder, but not in Qt source code.

                                    do i have to copy from build folder to Qt source code, or do i have to run , update and ./init-repository once again for getting those classes for qtbase.?.

                                    the answer will be valuable for compiling the qtbase submodule.

                                    Pradeep Kumar
                                    Qt,QML Developer

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 10 Jul 2016, 22:02 last edited by
                                      #19

                                      For the qtbase module, do the initial build on the command line. Once it's done you can start hacking on it.

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

                                      P 1 Reply Last reply 11 Jul 2016, 06:19
                                      0
                                      • S SGaist
                                        10 Jul 2016, 22:02

                                        For the qtbase module, do the initial build on the command line. Once it's done you can start hacking on it.

                                        P Offline
                                        P Offline
                                        Pradeep Kumar
                                        wrote on 11 Jul 2016, 06:19 last edited by
                                        #20

                                        i have two folders qt5 (which is the source folder) and qt-build(which is the build folder)
                                        i am using qt-build folder to use make command for compilation.
                                        after moving into directory qt-build.

                                        cd qt-build:
                                        after moving to qt-build folder , i used the following command to compile in terminal.

                                        qt-build : make module-qtbase ,

                                        and opened qtbase submodule from qt5(source folder) in Qt creator for compilation, again its showing qconfig.cpp and qconfig.h is not present connection terminated.

                                        so what do i need to do for getting qconfig.h and qconfig.cpp files to qtbase of qt5(source folder) , i observed qconfig.h and qconfig.cpp files are present in qtbase of qt-build folder.

                                        even though compiling in terminal , not able to view in Qt as files are not present.
                                        please guide me o compile this submodule in Qt creator, rest of the sub modules compiled in Qt creator without any errors.

                                        Pradeep Kumar
                                        Qt,QML Developer

                                        1 Reply Last reply
                                        0
                                        • P Offline
                                          P Offline
                                          Pradeep Kumar
                                          wrote on 11 Jul 2016, 09:23 last edited by
                                          #21

                                          i am getting this error

                                          /root/qt5/qtbase/src/corelib/global/qlibraryinfo.cpp:60:23: fatal error: qconfig.cpp: No such file or directory
                                          #include "qconfig.cpp"
                                          ^
                                          compilation terminated.
                                          make[2]: *** [.obj/qlibraryinfo.o] Error 1
                                          make[2]: Leaving directory /root/b/src/corelib' make[1]: *** [sub-corelib-make_first] Error 2 make[1]: Leaving directory /root/b/src'
                                          make: *** [sub-src-make_first] Error 2

                                          i searched for qconfig.h and qconfig.cpp in qtbase submodule of Qt source folder, i didnt find.

                                          but in build directory , i found in the respective qtbase submodule,

                                          please provide necessary help.

                                          should i copy from build folder to source folder?.

                                          Pradeep Kumar
                                          Qt,QML Developer

                                          1 Reply Last reply
                                          0

                                          11/31

                                          7 Jul 2016, 15:00

                                          topic:navigator.unread, 20
                                          • Login

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