[Interest] Qt6 build on Raspi

Frank Mertens frank at cyblogic.de
Fri Mar 8 09:20:24 CET 2024


On 3/8/24 08:21, Alexander Carôt via Interest wrote:
> Hi all,
> 
> when compiling qt6 from the current git sources on my Raspi via
> 
> cmake --build .
> 
> it turn out that the machine freezes after having compiled about 500 sources: The build is stuck and I cannot ssh to the Raspi from another terminal window anymore, however, I can still ping it.
> 
> Originally I did a
> 
> cmake --build . --parallel 4
> 
> and then stepwise decreased the amount of threads to 1, however, it did not make any difference.
> 
> Can anyone help with how to resolve ? I don't care about the duration unless it continues to comopletely freeze.
> 

Hi Alexander,

I usually do not build on the Raspberry directly. Modern compilers take ever more memory.
Another problem might be parallelism of the optimizing link stage.
Checkout CMAKE_JOB_POOL_LINK and CMAKE_JOB_POOK_COMPILE.
You probably have to limit both to not run out of memory.

Best regards,
Frank.

PS: Leave me a message if you need pointers for good yocto recipes for Qt6 and raspi.


More information about the Interest mailing list