godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.74k stars 576 forks source link

libary libplayer.so for android not runing #352

Open IuryBorges1993 opened 4 years ago

IuryBorges1993 commented 4 years ago

I created one libary libplayer.so, notruning in android, only in linux.

Comands used:

generateing player.os:

./ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang -fPIC -o src/player.os -c src/player.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers

generating gdlibrary.os:

./ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang -fPIC -o src/gdlibrary.os -c src/gdlibrary.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers

only libplayer.so

./ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang -o bin/android/libplayer.so -shared src/player.os src/gdlibrary.os -Lgodot-cpp/bin -lgodot-cpp.android.debug.arm64v8

Project in github: https://github.com/IuryBorges1993/port-demo-kinematic_character-para-android

only android

detail: my phone is architecture arm64

2shady4u commented 4 years ago

Did you debug remotely using ADB? Does it crash? Is there an error?

What version of NDK?