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. A project build on Raspbian.
Qt 6.12 LTS is out! See what's new in the release blog

A project build on Raspbian.

Scheduled Pinned Locked Moved Unsolved General and Desktop
23 Posts 6 Posters 6.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.
  • SGaistS SGaist

    Hi,

    Building code can be very memory hungry depending on a lot independent things such as your actual code base, the number of libraries you use, the number of headers your include, the content of the headers you include, etc. Building is not just translating your text file to machine code.

    JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #13

    @SGaist Could be true. I just tested my app. With 4 threads, make uses about 10% of total memory. But my app needs more than that.

    SGaistS 1 Reply Last reply
    0
    • JoeCFDJ JoeCFD

      @SGaist Could be true. I just tested my app. With 4 threads, make uses about 10% of total memory. But my app needs more than that.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #14

      @JoeCFD we don't know what the OP is trying to build so it could be completely at odds with regard to your own reference.

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

      JoeCFDJ 1 Reply Last reply
      0
      • SGaistS SGaist

        @JoeCFD we don't know what the OP is trying to build so it could be completely at odds with regard to your own reference.

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #15

        @SGaist True. I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

        J Christian EhrlicherC 2 Replies Last reply
        0
        • JoeCFDJ JoeCFD

          @SGaist True. I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

          J Offline
          J Offline
          jenya7
          wrote on last edited by
          #16

          @JoeCFD said in A project build on Raspbian.:

          @SGaist True. I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

          How do I build from a command line?

          jsulmJ 1 Reply Last reply
          0
          • J jenya7

            @JoeCFD said in A project build on Raspbian.:

            @SGaist True. I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

            How do I build from a command line?

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

            @jenya7

            • Open a terminal
            • Create a build folder
            • Change into build folder
            • Call: qmake PATH_TO_PROJECT_FOLDER
            • Call: make
            mkdir build
            cd build
            qmake PATH_TO_YOUR_PROJECT_FOLDER
            make
            

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

            J 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @SGaist True. I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by Christian Ehrlicher
              #18

              @JoeCFD said in A project build on Raspbian.:

              I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

              This is nonsense - there is no difference if you call make or whatever from the command line or from QtCreator.

              With 4 threads, make uses about 10% of total memory. But my app needs more than that.

              And how do you know the RAM size of the OP? How do you know what headers and libraries are used?

              Stop spreading fud!

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              J 1 Reply Last reply
              0
              • jsulmJ jsulm

                @jenya7

                • Open a terminal
                • Create a build folder
                • Change into build folder
                • Call: qmake PATH_TO_PROJECT_FOLDER
                • Call: make
                mkdir build
                cd build
                qmake PATH_TO_YOUR_PROJECT_FOLDER
                make
                
                J Offline
                J Offline
                jenya7
                wrote on last edited by
                #19

                @jsulm
                I did
                • $ cd my/dir/
                • $ qmake -project
                • $ qmake
                • $ make
                It basted my pro file. Removed lines
                QT += core gui network xml bluetooth
                greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                and I got a lot of errors.

                jsulmJ 1 Reply Last reply
                0
                • Christian EhrlicherC Christian Ehrlicher

                  @JoeCFD said in A project build on Raspbian.:

                  I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

                  This is nonsense - there is no difference if you call make or whatever from the command line or from QtCreator.

                  With 4 threads, make uses about 10% of total memory. But my app needs more than that.

                  And how do you know the RAM size of the OP? How do you know what headers and libraries are used?

                  Stop spreading fud!

                  J Offline
                  J Offline
                  jenya7
                  wrote on last edited by jenya7
                  #20

                  @Christian-Ehrlicher said in A project build on Raspbian.:

                  @JoeCFD said in A project build on Raspbian.:

                  I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

                  This is nonsense - there is no difference if you call make or whatever from the command line or from QtCreator.

                  May be the GUI itself loads some extra?

                  jsulmJ 1 Reply Last reply
                  0
                  • J jenya7

                    @jsulm
                    I did
                    • $ cd my/dir/
                    • $ qmake -project
                    • $ qmake
                    • $ make
                    It basted my pro file. Removed lines
                    QT += core gui network xml bluetooth
                    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                    and I got a lot of errors.

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

                    @jenya7 said in A project build on Raspbian.:

                    • $ cd my/dir/
                    • $ qmake -project
                    • $ qmake
                    • $ make

                    This is not what I suggested, please reread...

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

                    1 Reply Last reply
                    0
                    • J jenya7

                      @Christian-Ehrlicher said in A project build on Raspbian.:

                      @JoeCFD said in A project build on Raspbian.:

                      I suspect Qt Creator may have some sort of deadlock issue in update. Often I feel like it is slow with Qt Creator to build. Therefore, I run make from command line almost all the time.

                      This is nonsense - there is no difference if you call make or whatever from the command line or from QtCreator.

                      May be the GUI itself loads some extra?

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

                      @jenya7 said in A project build on Raspbian.:

                      May be the GUI itself loads some extra?

                      What extra?
                      QtCreator does the same thing I described before: it calls qmake and then make.
                      You can even see it in QtCreator...

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

                      J 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @jenya7 said in A project build on Raspbian.:

                        May be the GUI itself loads some extra?

                        What extra?
                        QtCreator does the same thing I described before: it calls qmake and then make.
                        You can even see it in QtCreator...

                        J Offline
                        J Offline
                        jenya7
                        wrote on last edited by
                        #23

                        well...the command line works. seems faster, but don't relay on my subjective analysis. I'll see if it helps.

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