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
Forum Updated to NodeBB v4.3 + New Features

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 13.9k 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.
  • SGaistS SGaist
    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.

    Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          • Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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

              Pradeep KumarP 1 Reply Last reply
              0
              • SGaistS SGaist

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

                Pradeep KumarP Offline
                Pradeep KumarP Offline
                Pradeep Kumar
                wrote on 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
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on 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
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #22

                    No, don't copy anything around, these are generated files.

                    Use the Import build option when configuring the project.

                    In any case, what part of qtbase do you plan to hack on ?

                    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
                    • Pradeep KumarP Offline
                      Pradeep KumarP Offline
                      Pradeep Kumar
                      wrote on last edited by
                      #23

                      @SGaist

                      i posted the previous question because i was compiling the sub modules using the configured kit of custom built Qt,

                      more than 25 sub modules was compiled, so was eager to know why qtbase was not compiling , because of qconfig files, any other configuration has to be done for the qtbase submodule?. for compiling using Qt creator.

                      Pradeep Kumar
                      Qt,QML Developer

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

                        qtbase is a special case. Like the name implies it contains all the code which the other modules are built upon.

                        Again, what part of qtbase do you plan to work on ?

                        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
                        • Pradeep KumarP Offline
                          Pradeep KumarP Offline
                          Pradeep Kumar
                          wrote on last edited by
                          #25

                          Yes qtbase is a special module which is the base.

                          And i was able to compile with the kit configured from the customized built of Qt source code,of the qmake used.

                          Thanks friends for your solutions provided which helped me to compile the qt5 Source code.

                          Thanks,

                          Pradeep Kumar
                          Qt,QML Developer

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

                            Good

                            Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                            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
                            • Pradeep KumarP Offline
                              Pradeep KumarP Offline
                              Pradeep Kumar
                              wrote on last edited by
                              #27

                              @SGaist

                              Thank you so much for your guidance which helped me to build Qt source code.
                              It is good to learn about using custom built Qt.

                              Thank You.

                              Pradeep Kumar
                              Qt,QML Developer

                              1 Reply Last reply
                              0
                              • Pradeep KumarP Offline
                                Pradeep KumarP Offline
                                Pradeep Kumar
                                wrote on last edited by
                                #28

                                Hi,

                                As again coming back to Qt source code after a long time,
                                i was following the same steps as i followed earlier on how to configure the qt.
                                Earlier it was working.

                                Again i cloned qt5.9

                                while configuring i got the error as

                                user@user-Inspiron-3558:~/Documents/qtsourcecode_contibution/qt-build$ ../qt5/configure -developer-build -opensource -nomake examples -nomake tests

                                • cd qtbase
                                • /home/user/Documents/qtsourcecode_contibution/qt5/qtbase/configure -top-level -developer-build -opensource -nomake examples -nomake tests
                                  Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH,
                                  and QMAKEFEATURES environment variables prior to building Qt.

                                Why i am getting this error?. do i need to do any other configuration?.

                                Thanks,

                                Pradeep Kumar
                                Qt,QML Developer

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

                                  Do you have any of these environment variables defined ?

                                  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
                                  • Pradeep KumarP Offline
                                    Pradeep KumarP Offline
                                    Pradeep Kumar
                                    wrote on last edited by
                                    #30

                                    HI,

                                    how do i check how these variables defined, and where it has to be defined?.

                                    Thanks,

                                    Pradeep Kumar
                                    Qt,QML Developer

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • Pradeep KumarP Pradeep Kumar

                                      HI,

                                      how do i check how these variables defined, and where it has to be defined?.

                                      Thanks,

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on last edited by jsulm
                                      #31

                                      @Pradeep-Kumar In the same terminal: call "env" and see whether any of those variables is in the output.
                                      Or just do:

                                      echo $QMAKESPEC
                                      

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      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 Extensions
                                      • Unsolved