Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android compiling error. #364

Closed
rork-lab opened this issue Dec 31, 2019 · 1 comment
Closed

Android compiling error. #364

rork-lab opened this issue Dec 31, 2019 · 1 comment
Labels
bug This has been identified as a bug

Comments

@rork-lab
Copy link

OS Windows 10.

scons platform=android generate_bindings=yes target=release ANDROID_NDK_ROOT="G:/android-ndk-r20b" android_arch=arm64v8 use_llvm=yes
OK.
or without use_llvm.
scons platform=android generate_bindings=yes target=release ANDROID_NDK_ROOT="G:/android-ndk-r20b" android_arch=arm64v8
OK

G:/android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android29-clang -fPIC -o src/GodotLibrary.os -c src/GodotLibrary.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers
OK.

G:/android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android29-clang -o bin/libtest_arm64.so -shared src/GodotLibrary.os -Lgodot-cpp/bin -lG:/SimpleLibrary/godot-cpp/bin/libgodot-cpp.android.release.arm64v8.a
Error.

G:\android-ndk-r20b\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lG:/SimpleLibrary/godot-cpp/bin/libgodot-cpp.android.release.arm64v8.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

But, compiling for armv7 (android_arch=armv7, use armv7a-linux-androideabi29-clang) is OK.

@rork-lab
Copy link
Author

rork-lab commented Jan 2, 2020

Lib name "libgodot-cpp.android.release.arm64v8.a"
Use -L./godot-cpp/bin -lgodot-cpp.android.release.arm64v8

@rork-lab rork-lab closed this as completed Jan 2, 2020
@Calinou Calinou added the bug This has been identified as a bug label Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This has been identified as a bug
Projects
None yet
Development

No branches or pull requests

2 participants