A project build on Raspbian.
-
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.
-
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.
-
@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.
-
@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.
-
@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.
@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?
-
@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?
-
@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.
@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
makeor 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!
-
- 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 -
@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
makeor 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!
@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
makeor whatever from the command line or from QtCreator.May be the GUI itself loads some extra?
-
@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.@jenya7 said in A project build on Raspbian.:
• $ cd my/dir/
• $ qmake -project
• $ qmake
• $ makeThis is not what I suggested, please reread...
-
@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
makeor whatever from the command line or from QtCreator.May be the GUI itself loads some extra?
@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... -
@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...