{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13803","labels_url":"https://api.github.com/repos/golang/go/issues/13803/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13803/comments","events_url":"https://api.github.com/repos/golang/go/issues/13803/events","html_url":"https://github.com/golang/go/issues/13803","id":124634479,"number":13803,"title":"x/mobile/exp/audio compilation issue on Mac","user":{"login":"mattetti","id":113,"avatar_url":"https://avatars.githubusercontent.com/u/113?v=3","gravatar_id":"","url":"https://api.github.com/users/mattetti","html_url":"https://github.com/mattetti","followers_url":"https://api.github.com/users/mattetti/followers","following_url":"https://api.github.com/users/mattetti/following{/other_user}","gists_url":"https://api.github.com/users/mattetti/gists{/gist_id}","starred_url":"https://api.github.com/users/mattetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattetti/subscriptions","organizations_url":"https://api.github.com/users/mattetti/orgs","repos_url":"https://api.github.com/users/mattetti/repos","events_url":"https://api.github.com/users/mattetti/events{/privacy}","received_events_url":"https://api.github.com/users/mattetti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rakyll","id":108380,"avatar_url":"https://avatars.githubusercontent.com/u/108380?v=3","gravatar_id":"","url":"https://api.github.com/users/rakyll","html_url":"https://github.com/rakyll","followers_url":"https://api.github.com/users/rakyll/followers","following_url":"https://api.github.com/users/rakyll/following{/other_user}","gists_url":"https://api.github.com/users/rakyll/gists{/gist_id}","starred_url":"https://api.github.com/users/rakyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakyll/subscriptions","organizations_url":"https://api.github.com/users/rakyll/orgs","repos_url":"https://api.github.com/users/rakyll/repos","events_url":"https://api.github.com/users/rakyll/events{/privacy}","received_events_url":"https://api.github.com/users/rakyll/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":434,"closed_issues":326,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2016-01-11T23:58:17Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":4,"created_at":"2016-01-03T07:20:11Z","updated_at":"2016-01-11T23:58:17Z","closed_at":"2016-01-11T23:58:17Z","body":"I tried to compile the audio example from my mac to build an apk and getting a compilation error due to openAL headers not being available.\r\n\r\n```\r\n# golang.org/x/mobile/exp/audio/al\r\n../../exp/audio/al/al_android.go:13:19: fatal error: AL/al.h: No such file or directory\r\n #include <AL/al.h>\r\n```\r\n\r\nGo version (1.6 beta):\r\n`go version devel +8db371b Thu Dec 17 22:45:50 2015 +0000 darwin/amd64` \r\n\r\nOS X: `10.10.5 (14F1021)`\r\n\r\nXcode:\r\n```\r\nxcodebuild -version\r\nXcode 6.3.2\r\nBuild version 6D2105\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/170736806","html_url":"https://github.com/golang/go/issues/13803#issuecomment-170736806","issue_url":"https://api.github.com/repos/golang/go/issues/13803","id":170736806,"user":{"login":"mattetti","id":113,"avatar_url":"https://avatars.githubusercontent.com/u/113?v=3","gravatar_id":"","url":"https://api.github.com/users/mattetti","html_url":"https://github.com/mattetti","followers_url":"https://api.github.com/users/mattetti/followers","following_url":"https://api.github.com/users/mattetti/following{/other_user}","gists_url":"https://api.github.com/users/mattetti/gists{/gist_id}","starred_url":"https://api.github.com/users/mattetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattetti/subscriptions","organizations_url":"https://api.github.com/users/mattetti/orgs","repos_url":"https://api.github.com/users/mattetti/repos","events_url":"https://api.github.com/users/mattetti/events{/privacy}","received_events_url":"https://api.github.com/users/mattetti/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T23:58:17Z","updated_at":"2016-01-11T23:58:17Z","body":"I'm building the example using the information from `main.go`:\r\n\r\n`$ gomobile build golang.org/x/mobile/example/audio`\r\n\r\nGomobile doesn't seem to accept shared build flags as the documentation seems to indicate. I can't figure out what version of gomobile I have installed, but I noticed something else odd:\r\n\r\n```\r\n$ gomobile build -target=android golang.org/x/mobile/example/basic\r\nusage: gomobile [package]\r\n\r\nBuild compiles and encodes the app named by the import path.\r\n\r\nThe named package must define a main function.\r\n\r\nIf an AndroidManifest.xml is defined in the package directory, it is\r\nadded to the APK file. Otherwise, a default manifest is generated.\r\n\r\nIf the package directory contains an assets subdirectory, its contents\r\nare copied into the APK file.\r\n\r\nThese build flags are shared by the build, install, and test commands.\r\nFor documentation, see 'go help build':\r\nTODO:\r\n\t-a\r\n\t-tags 'tag list'\r\n```\r\n\r\nI've removed the gomobile binary (I couldn't even get a version using the version flag) and reinstalled gomobile which solved the problem. I'm really sorry, it looks like I had an old version installed, maybe in gobin.\r\n"}}