QT Creator QGC Custom Build Error - Release Mode (with fresh repo)

Hello,

I am trying to build a custom version of QGC. When using QT Creator, I am able to build using the “/custom” directory when the Build is set to Debug.

However, when setting the Build to Release, QT Creator fails to build the custom QGC with the following errors: (using Ubuntu)

{standard input}: Assembler messages:
{standard input}: Warning: end of file in string; '"' inserted
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [Makefile:236567: qrc_qgcresources.o] Error 1
make: *** Waiting for unfinished jobs....
23:30:34: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.12.6 GCC 64bit)
When executing step "Make"
23:30:35: Elapsed time: 02:16.

This happens even when using a fresh clone of the repository (no changes made) and following the custom build steps in the readme. Is this supposed to happen?

Is there another way to build a Release version of the QGC custom app, perhaps by CLI or something else? I would like a more stable build (not the daily) to test on.

Finally, is there a difference between QT Creator Debug and Release builds besides the “Daily” added into the application name?

Thanks!

It usually tends to crash around moc …/qgroundcontrol/src/MissionManager/Section.h

Below is another common error.

moc /home/dev/test/qgroundcontrol/src/MissionManager/SimpleMissionItem.h
moc /home/dev/test/qgroundcontrol/src/MissionManager/Section.h
moc /home/dev/test/qgroundcontrol/src/MissionManager/SpeedSection.h
{standard input}: Assembler messages:
{standard input}: Warning: end of file not at end of a line; newline inserted
{standard input}:726: Error: unknown pseudo-op: `.asci'
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [Makefile:236567: qrc_qgcresources.o] Error 1
make: *** Waiting for unfinished jobs....
23:47:27: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.12.6 GCC 64bit)
When executing step "Make"

Hi

  1. What is the GCC version you are using?
  2. Do you installed ‘‘make’’ in the ubuntu?

4.3.1. I use the the Daily builds.

Yes, make is installed. It works for “Debug” build in QT Creator, but not for “Release” build.

I think you did not install all the QT completely, for example qt chart