Error During Android Build Process

Hello,

I encountered the following error during the Android build process:

Does anyone have any information or insights related to this issue? Any help would be greatly appreciated.

Thank you.

13:44:35: Starting: "C:\Users\AstroX\AppData\Local\Android\Sdk\ndk\25.1.8937393\prebuilt\windows-x86_64\bin\make.exe" -j8
rcc E:/QGroundControl/qgroundcontrol/qgcresources.qrc
rcc E:/QGroundControl/qgroundcontrol/qgroundcontrol.qrc
rcc E:/QGroundControl/qgroundcontrol/qgcimages.qrc
rcc E:/QGroundControl/qgroundcontrol/resources/InstrumentValueIcons/InstrumentValueIcons.qrc
lrelease E:/QGroundControl/qgroundcontrol/translations/qgc_source_uk_UA.ts
rcc E:/QGroundControl/qgroundcontrol/src/FirmwarePlugin/APM/APMResources.qrc
rcc E:/QGroundControl/qgroundcontrol/src/UTMSP/dummy/utmsp_dummy.qrc
rcc E:/QGroundControl/qgroundcontrol/src/FirmwarePlugin/PX4/PX4Resources.qrc
Updating '.qm/qgc_source_uk_UA.qm'...
    Generated 3285 translation(s) (0 finished and 3285 unfinished)
    Ignored 3 untranslated source text(s)
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
make: *** [Makefile:4300: qrc_utmsp_dummy.obj] Error 127
make: *** Waiting for unfinished jobs....
make: *** [Makefile:4161: qrc_InstrumentValueIcons.obj] Error 127
make: *** [Makefile:4291: qrc_PX4Resources.obj] Error 127
make: *** [Makefile:3855: qrc_qgcimages.obj] Error 127
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
make: *** [Makefile:3643: qrc_qgcresources.obj] Error 127
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
make: *** [Makefile:3547: qrc_qgroundcontrol.obj] Error 127
/usr/bin/sh: line 1: C:UsersAstroXAppDataLocalAndroidSdkndk25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
make: *** [Makefile:4243: qrc_APMResources.obj] Error 127
13:44:38: The process "C:\Users\AstroX\AppData\Local\Android\Sdk\ndk\25.1.8937393\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
Error while building/deploying project qgroundcontrol (kit: Android Qt 6.6.3 Clang armeabi-v7a)
The kit Android Qt 6.6.3 Clang armeabi-v7a has configuration issues which might be the root cause for this problem.
When executing step "Make"
13:44:38: Elapsed time: 00:14.


Hey, i am also trying to run gcs, by any chance were you able to run custom example?

You are using JDK17, but needs to be JDK11 as per build instructions.

Both the standard GCS and custom GCS are unable to recognize the ‘/’.

The JDK 11 version also does not recognize the ‘/’.

As mentioned in your fault report:
“The kit Android Qt 6.6.3 Clang armeabi-v7a has configuration issues which might be the root cause for this problem”

So it appears to be some sort of configuration fault in the Android kit.

Another thing that can happen is that your system settings conflict with the JDK version selected in QT. You can check what version your system uses by going in Konsole (Linux) and entering:
java --version
Or for Windows prompt just google relevant command.
This will then tell you which Java version the system uses and you might have to temporary switch your system to Java 11 until you have build QGC.

Note: I’ve been most successful in the past using NDK version 19 or 21.

Are you building from master or stable branch?

1 Like

Thank you for the detailed response. I couldn’t find the reason why the separator ‘/’ disappears in the file path, so I decided to format the existing PC.

using an another PC, I managed to successfully build the Android version using Stable_V4.3, Qt 5.15.2, JDK 11, NDK 21, and build-tool 30, despite receiving numerous warning messages during the build process.

1 Like

Glad you were successful in the build, thanks for reporting back.