-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Adds dependencies to the README.md #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,3 +143,24 @@ func main() { | |
|
||
The main examples have been moved - you can find them in their [own repository](https://github.com/fyne-io/examples/). | ||
|
||
## Non-standard library dependencies | ||
|
||
Fyne requires the following imports which are not included in the go standard library: | ||
|
||
* github.com/go-gl/gl/v3.2-core/gl | ||
* github.com/go-gl/glfw/v3.2/glfw | ||
* github.com/golang/freetype | ||
* github.com/srwiley/oksvg | ||
* github.com/srwiley/rasterx | ||
* golang.org/x/image/font | ||
|
||
These can be included in your gopath by the following 'get' commands: | ||
|
||
* "go get github.com/go-gl/gl/v3.2-core/gl" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not necessary. A There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my experience it has never pulled in these dependencies There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was that back when you needed to pass -tags gl? Since we moved this to the default driver it should indeed be downloading the dependencies at the same time. I will try on a fresh installation and see what happens. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right it does not work. go get -u github.com/fyne-io/fyne
cd $GOPATH/src/github.com/fyne-io/fyne
go get -u ./... |
||
* "go get github.com/go-gl/glfw/v3.2/glfw" | ||
* "go get github.com/golang/freetype" | ||
* "go get github.com/srwiley/oksvg" | ||
* "go get github.com/srwiley/rasterx" | ||
* "go get golang.org/x/image/font" | ||
|
||
You will also require a GCC compiler if you do not have one, this can be included by installing TDM-GCC. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assumes a Windows user, which is not necessarily the case. This could very well be a Darwin/Linux/*BSD/other user. Also, TDM-GCC is not necessarily the best way to handle Windows CGO support (I had not even heard of it before now). If we even think that we need to explain this, we should link to the Go wiki: https://github.com/golang/go/wiki/WindowsBuild There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if this could be phrased more along the lines of "Fyne uses CGo, which requires a C compiler to be installed. If you don't already have one installed you can ...". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, we may be able to remove CGo dependency on windows in the near future 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just rephrase this as "dependencies". This would be more succinct.