Closed ip closed 9 years ago
However, go get golang.org/x/mobile/...
prints other errors:
vanya@vanya-HP-Pavilion-dv6:~/prog/go/src$ go get golang.org/x/mobile/...
# golang.org/x/mobile/gl
In file included from golang.org/x/mobile/gl/gl.go:17:0:
work.h:6:23: fatal error: GLES2/gl2.h: No such file or directory
#include <GLES2/gl2.h>
^
compilation terminated.
# golang.org/x/mobile/exp/audio/al
golang.org/x/mobile/exp/audio/al/al_notandroid.go:22:19: fatal error: AL/al.h: No such file or directory
#include <AL/al.h>
^
compilation terminated.
# golang.org/x/mobile/exp/sprite/portable
golang.org/x/mobile/exp/sprite/portable/portable.go:188: cannot use &m (type *f64.Aff3) as type f64.Aff3 in argument to "golang.org/x/image/draw".ApproxBiLinear.Transform
The first set of errors you are seeing are expected, the go tool is enforcing the custom import paths: https://golang.org/s/go14customimport Use go get golang.org/x/mobile
instead.
The second GL-related errors are probably because your linux installation is missing the relevant GLES packages. See https://github.com/golang/mobile/blob/master/app/x11.go#L15
Thanks.
@crawshaw I tried second suggestion but still getting same error.
what command did you run? please use golang.org/x/mobile, not github.com/golang/mobile
On Thu, Sep 17, 2015 at 3:05 PM, Degendra Sivakoti <notifications@github.com
wrote:
@crawshaw https://github.com/crawshaw I tried second suggestion but still getting same error.
— Reply to this email directly or view it on GitHub https://github.com/golang/go/issues/12457#issuecomment-141190952.
__
@hyangah I was following https://github.com/golang/go/wiki/Mobile tutorial and executed gomobile install golang.org/x/mobile/example/basic. I was able to install apk in my device but when i run it, i only see black screen. Same thing for audio and network example. I was getting "work.h:6:23: fatal error: GLES2/gl2.h: No such file or directory" error when i was executing go install golang.org/x/mobile/example/basic
@ip I tried that option already and it was not working. Now it's working. Thank you.
I am still having problem with mobile. I am only getting black screen. It might be the problem with my device. Thank you @hyangah as well for your time.