无法在Windows上编译/安装插件。

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

Cant compile/install plugin on Windows

问题

我一直在尝试安装这个东西,我已经安装了go和git,但是当我按照指示输入以下命令时:

go get github.com/anaminus/rbxplugin
go install github.com/anaminus/rbxplugin

在CMD中,我只得到错误信息。

有没有办法有人可以为我编译成exe或其他格式,这样我就可以使用它了?

它也无法在eclipse中编译。我已经在git上尝试过,并设置了我的Gitroot和项目位置,但仍然无法安装它。

这是github项目。我正在尝试编译它:

英文:

I've been trying to install this, I installed go, and also git, but when I follow the instructions to write:

go get github.com/anaminus/rbxplugin
go install github.com/anaminus/rbxplugin

into CMD I just get errors.

Is there any way someone can compile this for me into an exe or something so I can use it?

It wont compile with eclipse either. I have tried this on git, and also set my Gitroot and project location, it still wont install it.

This is the github project. I am trying to compile :

答案1

得分: 1

你看到的错误是因为代码有问题。

src\github.com\anaminus\rbxplugin\rbxplugin.go:54: 无法将client(类型为http.Client)作为参数类型rbxweb.Client传递给asset.Upload
src\github.com\anaminus\rbxplugin\rbxplugin.go:54: 赋值计数不匹配:3 = 2
src\github.com\anaminus\rbxplugin\rbxplugin.go:70: 未定义:rbxweb.DoRawPost
src\github.com\anaminus\rbxplugin\rbxplugin.go:97: 无法将client(类型为http.Client)作为参数类型rbxweb.Client传递给asset.Upload
src\github.com\anaminus\rbxplugin\rbxplugin.go:97: 赋值计数不匹配:3 = 2
src\github.com\anaminus\rbxplugin\rbxplugin.go:111: 未定义:rbxweb.Login

你需要让项目所有者修复这些编译错误,或者你可以fork该项目并自行修复。

并不是github上的每个项目都能保证能正常工作。

英文:

The errors you are seeing are because the code is broken.

src\github.com\anaminus\rbxplugin\rbxplugin.go:54: cannot use client (type *http.Client) as type *rbxweb.Client in argument to asset.Upload
src\github.com\anaminus\rbxplugin\rbxplugin.go:54: assignment count mismatch: 3 = 2
src\github.com\anaminus\rbxplugin\rbxplugin.go:70: undefined: rbxweb.DoRawPost
src\github.com\anaminus\rbxplugin\rbxplugin.go:97: cannot use client (type *http.Client) as type *rbxweb.Client in argument to asset.Upload
src\github.com\anaminus\rbxplugin\rbxplugin.go:97: assignment count mismatch: 3 = 2
src\github.com\anaminus\rbxplugin\rbxplugin.go:111: undefined: rbxweb.Login

You will either need to get the project owner to fix these compilation errors or fork the project and fix them yourself.

Not every project on github is guaranteed to actually work.

huangapple
  • 本文由 发表于 2015年8月26日 09:08:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/32216448.html
匿名

发表评论

匿名网友

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

确定