godot-go icon indicating copy to clipboard operation
godot-go copied to clipboard

Error on android

Open vahid-sohrabloo opened this issue 6 years ago • 1 comments

Description

I tried to compile for Android. I have many problems with libiconv but finaly I fixed bug when I run game on android give me this error

No implementation found for void org.godotengine.godot.GodotLib.initialize(org.godotengine.godot.Godot, boolean, java.lang.Object, boolean) (tried Java_org_godotengine_godot_GodotLib_initialize and Java_org_godotengine_godot_GodotLib_initialize__Lorg_godotengine_godot_Godot_2ZLjava_lang_Object_2Z)

I build shared library with this command

CC="$PWD/android/toolchainarm64/bin/aarch64-linux-android-gcc" \
    CXX="$PWD/android/toolchainarm64/bin/aarch64-linux-android-g++" \
    CGO_ENABLED=1  \
    GOOS=android GOARCH=arm64   \
    go build   -buildmode=c-shared -o lib/libgodot_android.so src/*.go

Details

Go version 1.10.2
Godot version 3.0.2
Godot-Go version/commit hash 1746202a2001f65ff7eb635b8cd7fc2a6ea64ca2
OS android 7

vahid-sohrabloo avatar May 25 '18 21:05 vahid-sohrabloo

Hi @vahid-sohrabloo,

Unfortunately I haven't personally tried doing any Android work with godot-go, so it might not yet be possible. I've done a little bit of work on other projects in the past with gomobile, and I think I've seen that error before when exporting a type that wasn't supported: https://godoc.org/golang.org/x/mobile/cmd/gobind#hdr-Type_restrictions

ShadowApex avatar May 26 '18 05:05 ShadowApex