x/mobile: 3rd party lib. dependency problem #21901
Howdy, ladies and gentlemen! Hope you're doing great.
I'm having an dependency issue trying to cross-compile to android, while importing a 3rd party library (go-sdl2, I opened a issue there as well). A vanilla gomobile app build just fine targeting android/arm, also regular x86 build including go-sdl2 also works fine.
It is probably not issue of the gomobile toolchain, maybe the build steps get lost after a certain level of indirection?
My program include go-sdl2, which contains sdl/mouse.go, which include <SDL_syswm.h>, which include <X11/Xlib.h>. I don't have experience building C programs, so I beg pardon if it is a trivial mistake.
A quick spoiler of the build error.
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
The proper place to ask for help would be https://github.com/golang/go/wiki/Questions, the issue tracker is only for bugs.
You are linking against the linux's SDL instead of the android version. You first need to figure out how to compile SDL with the NDK and then how to get gomobile to use that version instead of the system's. Why are you using both of them together btw.