英文:
How do I build Go-SDL on windows?
问题
有人成功做过这个吗?
英文:
Has anyone been successful doing this?
答案1
得分: 1
只需在根目录中调用make命令,即可正常工作,前提是:
1)您已设置了GOROOT环境变量
2)您可以访问安装go的目录
我两者都没有。第一个问题可以通过使用gomake而不是make来轻松解决。问题是,我没有将go目录的bin目录添加到root用户的PATH中,所以我不得不启动一个root终端,将go bin目录导出到PATH,然后在Go-SDL目录中调用gomake。
我的情况似乎相当特殊,但也许可以帮到您。
英文:
It should work by just calling make in the root directory if:
- You have the GOROOT env variable set
- You have access to the directory in which go is installed
I had neither. Point one can easily be solved by using gomake instead of make. The problem is that i haven't added the bin directory of the go directory to the root users PATH, so i had to start up a root termianl, export the go bin directory to the PATH and then call gomake in the Go-SDL directory.
My case seems to be pretty special though, but maybe it can help.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论