英文:
Golang for Android on Windows?
问题
我还没有看到明确说明不能使用Windows的内容,但是所有的指南都涉及运行.sh文件。有人成功编译过任何类型的用于Android的Go代码吗,无论是库还是完整的本地活动?
英文:
I haven't read anything explicitly stating that you can't use Windows but everything that does walk you through what to do seems to involve running a .sh file. Has anybody had any luck compiling any kind of Go for Android, whether it be a library or a full native activity?
答案1
得分: 1
不,整个过程都与Linux相关(在Dockerfile中使用了FROM ubuntu:12.04
)。
这意味着你需要在Windows上拥有一个符合Docker标准的环境(例如boot2docker),以便执行以下命令:
docker run -v $GOPATH/src:/src mobile /bin/bash -c 'cd /src/your/project && ./make.bash'
英文:
No, the all process is tied to Linux (FROM ubuntu:12.04
in the Dockerfile).
That means you would need to have on Windows a Docker-compliant environment (like a boot2docker) in order to launch the
docker run -v $GOPATH/src:/src mobile /bin/bash -c 'cd /src/your/project && ./make.bash'
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论