英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论