QGCS 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.
10:44:07: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1.
10:44:07: Error while building/deploying project QGroundControl (kit: Android Qt 6.8.2 Clang arm64-v8a)
10:44:07: When executing step "Build"
10:44:07: Elapsed time: 08:59.
I have the error when I am build the project for android please if any have solutions please ping me.
-
@InsideFPV said in QGCS error for Android:
ld.lld: error: unable to find library -lpng
Linker cannot find libpng library.
Do you link to libpng explicitly (in your CMakeLists.txt file)? -
@InsideFPV said in QGCS error for Android:
please give me solution
Please answer my question first: do you link to libpng explicitly (in your CMakeLists.txt file)?