QGC error for Android

FAILED: Release/libQGroundControl_arm64-v8a.so 
C:\Windows\system32\cmd.exe /C "cd . && C:\Users\Software\AppData\Local\Android\Sdk\ndk\26.1.10909125\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android23 --sysroot=C:/Users/Software/AppData/Local/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -O3 -DNDEBUG  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--gc-sections -Qunused-arguments -Wl,--no-undefined   -Wl,-Bsymbolic -shared  -o Release\libQGroundControl_arm64-v8a.so @CMakeFiles\QGroundControl.rsp && cd ."
ld.lld: error: unable to find library -lpng
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
16:40:30: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1.
16:40:30: Error while building/deploying project QGroundControl (kit: Android Qt 6.8.2 Clang arm64-v8a)
16:40:30: When executing step "Build"


i have this error when i am build the project if any have solution just ping me

Hii, I’ve already done this, so if possible, I can help you. Could you please show me the issue tab?

@bylla_anusha this is the error like clang



Hii, did the Qt5 version of QGroundControl work for you? I tried it on my side and it worked fine.

1 Like

Hi.
But the version of @insidefpv is Qt5 (5.15.2) and for someone, that build android dont work. Can show your config ?

Hello sir,
I’m using Qt 5.15.0, and the Android build is working fine for me.
Here’s my full build setup:

  • Qt Version: 5.15.0
  • OS: Windows 10
  • Android NDK: r21
  • Android SDK: 10
  • JDK: 11
  • Gradle Version: 5.6.4 (from gradle-wrapper.properties)
  • QGroundControl Branch: Stable v4.4

Also, I’ve tested QGC using the Mission Planner simulation method, and it worked correctly for me.

If there’s any potential issue I might have missed or that could occur later, please let me know, sir. I’d really appreciate your guidance.

1 Like