-
-
Notifications
You must be signed in to change notification settings - Fork 82
Fix GTK for Windows links in README #218
Fix GTK for Windows links in README #218
Conversation
@@ -32,7 +32,7 @@ __gtk__ expects __GTK+__, __GLib__ and __Cairo__ development files to be install | |||
### Windows | |||
|
|||
Install [mingw-w64](http://mingw-w64.yaxm.org/) (select the win32 threading model) and download a __GTK+__ SDK: | |||
* The GNOME project has an official distribution of GTK+ 3.6: [x86](http://www.gtk.org/download/win32.php), [x64](http://www.gtk.org/download/win64.php). | |||
* The GNOME project has official distributions of GTK+ 3.4 upto 3.10: http://win32builder.gnome.org/ |
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.
I'd prefer if the link was put "inside" "3.4 upto 3.10". Example:
The GNOME project has official distributions of GTK+ 3.4 upto 3.10.
In second thought it seems a bit weird... What form do you prefer @gkoz?
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.
What about "The GNOME project has official distributions of GTK+ 3.4 upto 3.10" ?
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.
Oh perfect!
Thanks! Once we confirmed my note, I'll merge. |
68d4845
to
bf38259
Compare
OK I updated the PR like we discussed, should be ready to merge. |
Didn't you want to add a howto as well ? |
Ah sorry, didn't see your comment on #216 until now. Yeah I can do it in this PR as well. |
Then ping me when it's done please, github doesn't notify when a PR has been updated. |
a3083db
to
e08165e
Compare
OK I added a first version of the HowTo. A few points to note:
|
![Screenshot](rust_setup.png) | ||
|
||
If you're not sure, check if your Rust installation has `gcc.exe` and `ld.exe` | ||
in its `bin` directory, you may get a linking error `ld: cannot find -limm32`. |
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.
This sentence seems slightly broken now. And I think it's now safe to say that the presence of those files will definitely cause the error.
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.
Yes you're right. Will fix that.
It makes sense to remove them but maybe later after we have some feedback about the msys2 way.
I can test this on 64-bit later. BTW you don't need a local VM, appveyor allows rdp access. |
|
||
#### 1. msys2 toolchain | ||
|
||
This method is recommended according to the [gtk project] |
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.
gtk
should probably be spelled GTK+
here.
Ah that's awesome I didn't now that! 😄 This can save me a lot of time while trying to get this to build with AppVeyor! |
@gkoz I tried to address all your points. Tell me if I should squash the commits or if there are any other issues. |
Please keep the first commit and squash other in the second one please. |
18b6281
to
a6bd09a
Compare
@GuillaumeGomez Squashed it. Is it OK like that? |
Some grammar nits... |
"Linker and platform libraries" in the Rust setup. | ||
![Screenshot](rust_setup.png) | ||
|
||
If you already installed Rust, check if your Rust installation has `gcc.exe` |
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.
"If you already have installed"
Yeah sorry about that. I'm not a native english speaker and my grammar is poor 😢 |
![Screenshot](rust_setup.png) | ||
|
||
If you already installed Rust, check if your Rust installation has `gcc.exe` | ||
and `ld.exe` in its `bin` directory. In that case remove those executables, |
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.
" In" -> " In"
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.
I assume you mean I should remove the double space? That's actually my vim setup auto formatting the sentences with two spaces after the period.
$ pacman -S mingw-w64-x86_64-toolchain | ||
``` | ||
- Install the gtk3 package | ||
``` |
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.
Add an empty line before "```".
e8ca0c0
to
b16afdd
Compare
Looks good 👍 |
or follow these steps: | ||
|
||
- Install and update [msys2](https://msys2.github.io/) | ||
- Install the mingw toolchain |
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.
Please add ":" at the end of this sentence.
Seems good to me too. Once you have fixed my last notes, we merge. |
Explain how to install the msys2 toolchain as an alternative to using wingw-w64 with a GTK distribution. Also add a note about how to correctly install Rust so there is no conflict with the linker provided by rust.
b16afdd
to
1a58951
Compare
@GuillaumeGomez Done :) |
Thanks a lot for your contribution @rnestler! I merge. |
Fix GTK for Windows links in README
Happy to help! Thanks for your work on gtk-rs! |
- Install the mingw toolchain: | ||
|
||
```Shell | ||
$ pacman -S mingw-w64-x86_64-toolchain |
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.
Does this actually work? I've tried this in appveyor and it didn't because the msys2 mingw is incorrect flavor, it's not win32+dwarf/seh. I ended up using mingw-builds, the installer linked at http://mingw-w64.org/doku.php/download/mingw-builds
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.
I wasn't using the msys2-provided gtk though but the same distributions as before.
Temporary fix for issue gtk-rs#210
Fixes issue #216