# Unable to compile QGC for Android

**URL:** <https://discuss.px4.io/t/unable-to-compile-qgc-for-android/30339>\
**Category:** Development\
**Created:** [January 9, 2023, 4:34pm UTC](https://discuss.px4.io/t/unable-to-compile-qgc-for-android/30339 "2023-01-09T16:34:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aryan\_Ghadge1](https://discuss.px4.io/user_avatar/discuss.px4.io/aryan_ghadge1/32/11909_2.png) [@Aryan\_Ghadge1](https://discuss.px4.io/u/Aryan_Ghadge1)\
**Post date:** [January 9, 2023, 4:34pm UTC](https://discuss.px4.io/t/unable-to-compile-qgc-for-android/30339/1 "2023-01-09T16:34:45Z")

</div>

Hello, I’m trying to run the QGC build for Android on QT. The Desktop build works just fine with MSCV 2019. When I try to compile the android build, i get the following error:

/usr/bin/sh: C:UsersaryanAppDataLocalAndroidSdkndk21.3.6528147/toolchains/llvm/prebuilt/windows-x86\_64/bin/clang++: No such file or directory  
/usr/bin/sh: C:UsersaryanAppDataLocalAndroidSdkndk21.3.6528147/toolchains/llvm/prebuilt/windows-x86\_64/bin/clang++: No such file or directory  
make[1]: \*\*\* [Makefile.Arm64-v8a:2411: arm64-v8a/qrc\_qgroundcontrol.obj] Error 127  
make[1]: \*\*\* [Makefile.Armeabi-v7a:2411: armeabi-v7a/qrc\_qgroundcontrol.obj] Error 127

I cant’t solve this error. The android SDK’s are installed correctly and the compiler paths are also correct. In fact even other QT examples build fine for android, its just QGC which gives an error… I cant understand why it is utilizing that invalid path without any slashes in it. Any help would be appreciated, thank you.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [January 9, 2023, 9:58pm UTC](https://discuss.px4.io/t/unable-to-compile-qgc-for-android/30339/2 "2023-01-09T21:58:41Z")

</div>

> [@Aryan\_Ghadge1](#):
>
> C:UsersaryanAppDataLocalAndroidSdkndk

Looks like something is going wrong with the windows paths. There should be `/` or `\` between the directories there.

---

<div class="post-metadata">

**Author:** ![uavflier](https://discuss.px4.io/letter_avatar_proxy/v4/letter/u/73ab20/32.png) [@uavflier](https://discuss.px4.io/u/uavflier)\
**Post date:** [September 28, 2023, 4:08pm UTC](https://discuss.px4.io/t/unable-to-compile-qgc-for-android/30339/3 "2023-09-28T16:08:42Z")

</div>

Hey, I’ve had the same problem while building QGC on Windows 10, did you have solved it?

---

<div class="post-metadata">

**Author:** ![SgNic](https://discuss.px4.io/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@SgNic](https://discuss.px4.io/u/SgNic)\
**Post date:** [February 15, 2024, 5:16am UTC](https://discuss.px4.io/t/unable-to-compile-qgc-for-android/30339/4 "2024-02-15T05:16:19Z")

</div>

Hi @Aryan_Ghadge1, I am also facing the same issue. I am using the following dependencies:

- SDK: 12.0
- NDK: 23.1.7779620 (r23b)
- JDK: 21
- QGCS: 4.2.6 / 4.2.8
- Qt: 5.15.2
- Configuration: Android Multi ABI
- Compilers: Android Clang (C, arm, NDK 23.1.7779620) and Android Clang (C++, arm, NDK 23.1.7779620)
- Platform Linker Flag: -target arm-linux-androideabi
- Build Device: Desktop
- ABIs: armeabi-v7a

08:18:51: Starting: “C:\Users\Chris.L\AppData\Local\Android\Sdk\ndk\23.1.7779620\prebuilt\windows-x86\_64\bin\make.exe” -j4  
rcc D:/Projects/AewaGCS4.2.8/qgroundcontrol/qgroundcontrol.qrc  
/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86\_64/bin/clang++: No such file or directory  
rcc D:/Projects/AewaGCS4.2.8/qgroundcontrol/qgcresources.qrc  
make: \*\*\* [Makefile:2413: armeabi-v7a/qrc\_qgroundcontrol.obj] Error 127  
make: \*\*\* Waiting for unfinished jobs…  
/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86\_64/bin/clang++: No such file or directory  
make: \*\*\* [Makefile:2504: armeabi-v7a/qrc\_qgcresources.obj] Error 127  
08:18:52: The process “C:\Users\Chris.L\AppData\Local\Android\Sdk\ndk\23.1.7779620\prebuilt\windows-x86\_64\bin\make.exe” exited with code 2.  
Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)  
When executing step “Make”  
08:18:52: Elapsed time: 00:13.
