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

Error on android #40

Open
vahid-sohrabloo opened this issue May 25, 2018 · 1 comment
Open

Error on android #40

vahid-sohrabloo opened this issue May 25, 2018 · 1 comment

Comments

@vahid-sohrabloo
Copy link

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 1746202
OS android 7
@ShadowApex
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants