如何在Windows上构建Go-SDL?

huangapple go评论85阅读模式
英文:

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:

  1. You have the GOROOT env variable set
  2. 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.

huangapple
  • 本文由 发表于 2010年12月14日 01:52:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/4431827.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定