How to build for ARMv5 with Gomobile?

(Felix Ableitner) #1

I am trying to replace an existing Go build with Gomobile. However, it seems there is no way to compile for ARMv5 with Gomobile. The old build is doing something like this:

export GOARCH=arm
export GOARM=5
go build

gobind {
    pkg = ""

This places the library in armeabi-v7a folder in the apk, which indicates that it is an ARMv7 binary.

enter image description here

Is there any way to generate an ARMv5 library instead? I tried to set GOARM=5 in the gobind block of build.gradle, but that results in an error:

Could not set unknown property 'GOARM' for object of type

(anon58176343) #2

Maybe you can raise this as an issue on Github:

Go Mobile GitHub Issues

(Felix Ableitner) #3

Okay will do that. I just wanted to be sure I’m not missing something before I open an issue.

(system) closed #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.