vircadia-native-core icon indicating copy to clipboard operation
vircadia-native-core copied to clipboard

Android build error

Open lymluck opened this issue 4 years ago • 4 comments

Execution failed for task ':interface:externalNativeBuildDebug'.

Build command failed. Error while executing process D:\Android with arguments {SDK\cmake\3.10.2.4988404\bin\cmake.exe --build D:\vircadiaProj\android\apps\interface.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib} [1/914] Automatic MOC and RCC for target shared [2/913] Linking CXX shared library android-build\libs\arm64-v8a\libshared_arm64-v8a.so FAILED: android-build/libs/arm64-v8a/libshared_arm64-v8a.so cmd.exe /C "cd . && "D:\Android SDK\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" --target=aarch64-none-linux-android24 --gcc-toolchain="D:/Android SDK/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64" --sysroot="D:/Android SDK/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot" -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -fno-strict-aliasing -Wno-unused-parameter -std=c++14 -O0 -fno-limit-debug-info -DDEBUG -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libshared_arm64-v8a.so -o android-build\libs\arm64-v8a\libshared_arm64-v8a.so @CMakeFiles/shared.rsp && cd ." D:/Qt/5.15.2/msvc2019_64/bin/Qt5Guid.dll: file not recognized: File format not recognized clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

lymluck avatar Dec 27 '21 12:12 lymluck

android-build\libs\arm64-v8a\libshared_arm64-v8a.so

lymluck avatar Dec 29 '21 13:12 lymluck

This bit is very interesting:

D:/Qt/5.15.2/msvc2019_64/bin/Qt5Guid.dll: file not recognized: File format not recognized

It's calling clang: D:\Android SDK\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" --target=aarch64-none-linux-android24

So my guess so far is that it's trying to use an Intel library to build an ARM binary, that's obviously not going to work.

daleglass avatar Jan 02 '22 20:01 daleglass

Only libshared_ arm64-v8a. So can't compile, others can

lymluck avatar Jan 04 '22 15:01 lymluck

Hello! Is this still an issue?

stale[bot] avatar Jul 03 '22 17:07 stale[bot]