FAQ
(in case this is the place to report,)

gomobile installs and init's ok but wont build anything, i guess this is
caused by me having various versions of go in my home dir (not in
/usr/local), inc. obviously 1.5beta, caused by what looks like hard-wired
references not using $GOROOT.

$ gomobile build golang.org/x/mobile/example/basic
error reading OpenAL library: cannot find package "encoding/binary" in any
of:
     /usr/local/go/src/encoding/binary (from $GOROOT)
     /home/simon/googleAppengine/gocode/src/encoding/binary (from $GOPATH)

$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/simon/googleAppengine/gocode"
GORACE=""
GOROOT="/home/simon/googleAppengine/go1.5"
GOTOOLDIR="/home/simon/googleAppengine/go1.5/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
$

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Simon place at Jul 10, 2015 at 12:53 am
    should say i duplicated the go1.5 dir into /usr/local/go, and the build
    then went fine, examples all work on my phone.


    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • David Crawshaw at Jul 12, 2015 at 4:14 pm
    Thanks, this is https://golang.org/issue/11672. I'll fix it as soon as
    I finish submitting my current stack of gomobile CLs. But in general
    try to avoid setting GOROOT.
    On Thu, Jul 9, 2015 at 8:53 PM, simon place wrote:
    should say i duplicated the go1.5 dir into /usr/local/go, and the build then
    went fine, examples all work on my phone.


    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 10, '15 at 12:42a
activeJul 12, '15 at 4:14p
posts3
users2
websitegolang.org

2 users in discussion

Simon place: 2 posts David Crawshaw: 1 post

People

Translate

site design / logo © 2022 Grokbase