Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

INTERFACES.md edition #4

Closed
wants to merge 1 commit into from
Closed

INTERFACES.md edition #4

wants to merge 1 commit into from

Conversation

iRmantou
Copy link

@iRmantou iRmantou commented Mar 4, 2017

I hope i could make the shogun Windows installation process become more accurate. If u find something wrong, please tell me. : )

Copy link
Member

@vigsterkr vigsterkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great stuff! thanks!
could you make those changes plz

INSTALL.md Outdated
@@ -57,8 +57,29 @@ Shogun is part of [homebrew-science](https://github.com/Homebrew/homebrew-scienc
$ sudo brew install shogun

###Windows <a name="windows"></a>
Shogun natively compiles under Windows using MSVC, see the [CI build](https://ci.appveyor.com/project/vigsterkr/shogun). We currently do not support a binary
installer. If you are interested in packaging, documenting, or contributing otherwise, please contact us.
We currently do not support a Shogun binary on Windows platform. Shogun natively compiles under Windows using MSVC.We recommend using "Visual Studio 14 2015" which has a good support for C++11. If you do not want to install the whole IDE,you can just use MSBuild to build shogun. Running CMD as administrator with the following commands:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know i'm nitpicking a bit but could you please make spaces between the comma and fullstop. like at using MSVC.We or whole IDE,you

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the develop readme for how to contribute to documentation.

This is our main point of contact with new people so it needs to be as precise and clean as possible. Avoid redundancy and unnecessary sentences. Be concise

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,I will do these again and pay more attention on these places!3Q!

INSTALL.md Outdated
```
cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DBUILD_META_EXAMPLES=ON -DENABLE_TESTING=ON ..
```
This requires [PLY for Python](https://pypi.python.org/pypi/ply) package `python-ply` which you can use `pip install ply` to install it, and [ctags](http://ctags.sourceforge.net/), package `ctags`. Or you can ignore these two packages and use `-DBUILD_META_EXAMPLES=OFF` to continue. You can get the using of `DBUILD_META_EXAMPLES` on the [Examples](#manual-examples)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BUILD_META_EXAMPLES instead of DBUILD_META_EXAMPLES.

and for the last sentence use rather like: `For further information regarding the BUILD_META_EXAMPLES parameter please check out the Examples manual...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll change it right now

INSTALL.md Outdated
@@ -57,7 +57,7 @@ Shogun is part of [homebrew-science](https://github.com/Homebrew/homebrew-scienc
$ sudo brew install shogun

###Windows <a name="windows"></a>
We currently do not support a Shogun binary on Windows platform. Shogun natively compiles under Windows using MSVC. It is recommended to use " Visual Studio 14 2015 " which has a good support for C++11, or you can only use " MSBuild " to build Shogun. Run CMD as administrator with the following commands:
We currently do not support a Shogun binary on Windows platform. Shogun natively compiles under Windows using MSVC. It is recommended to use " Visual Studio 14 2015 " or " MSBuild " to build Shogun which both have good support to C++11. Run CMD as administrator with the following commands:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

support for and use, i.e. **** for emphasizing things.

"we currently do not provide a Shogun binary for Windows platform."

@karlnapf
Copy link
Member

Also please read the develop.md readme on how your commits can be squashed

Signed-off-by: iRmantou <irbaozi@gmail.com>
@iRmantou
Copy link
Author

I am sorry for many commits, I have squashed them and read develop.md carefully, this won't happen again

@vigsterkr
Copy link
Member

@iRmantou that's ok... nobody was born with git skills....

@vigsterkr
Copy link
Member

@karlnapf care to take a peep on it?

@@ -57,8 +57,27 @@ Shogun is part of [homebrew-science](https://github.com/Homebrew/homebrew-scienc
$ sudo brew install shogun

###Windows <a name="windows"></a>
Shogun natively compiles under Windows using MSVC, see the [CI build](https://ci.appveyor.com/project/vigsterkr/shogun). We currently do not support a binary
installer. If you are interested in packaging, documenting, or contributing otherwise, please contact us.
We currently do not support a Shogun binary on Windows platform. Shogun natively compiles under Windows using MSVC. It is recommended to use " Visual Studio 14 2015 " or " MSBuild " to build Shogun which both have good support to C++11.
Copy link
Member

@karlnapf karlnapf Mar 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"We currently do not offer a pre-compiled binary for Windows. If you are interested in packaging, documenting, or contributing otherwise, please contact us. For compiling Shogun natively compiles under Windows using MSVC, see below."

(You are in the precompiled binaries section here, the compiling from source section is below)

installer. If you are interested in packaging, documenting, or contributing otherwise, please contact us.
We currently do not support a Shogun binary on Windows platform. Shogun natively compiles under Windows using MSVC. It is recommended to use " Visual Studio 14 2015 " or " MSBuild " to build Shogun which both have good support to C++11.

Run CMD as administrator with the following commands:
Copy link
Member

@karlnapf karlnapf Mar 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The git cloning is already described above, so this is not really needed here.


Run CMD as administrator with the following commands:
```
git clone https://github.com/shogun-toolbox/shogun.git C:\projects\shogun
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use a $ sign for code, check out the other parts of the readme

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karlnapf $ only makes sense in *NIX world... not in case of windows...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah ok. I just dont like this triple quotation marks to make markdown render it as code

cd C:\projects\shogun
md build && cd build
```
You need [CMake](https://cmake.org/download/) to build Shogun. If you need Shogun examples in build, please see [Examples](#manual-examples).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already described above

git submodule -q update --init
```
Move to the source tree root and create the build directory.
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already described above

```
You need [CMake](https://cmake.org/download/) to build Shogun. If you need Shogun examples in build, please see [Examples](#manual-examples).
```
cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON ..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the crucial part.
You need to move this to the "Compiling by hand" section below.
Add a subsection called Windows and put the cmake and compile command there. It just needs to be these two lines as the rest is already described

```
msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Release /p:Platform=x64
```
Note: If you use `/m` in msbuild command without specifying the number, it may occur out of memory errors. See [CI build](https://ci.appveyor.com/project/vigsterkr/shogun) as a reference and [Compiling manually](#manual) for more details. If you are interested in packaging, documenting, or contributing otherwise, please contact us.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Note: If you use /m in msbuild command without specifying the number, it may occur out of memory errors. See CI build as a setup reference."

Copy link
Member

@karlnapf karlnapf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls move your instructions to the "Compiling by hand section, under a new subsection called "Windows". Just put the cmake and compile command. Reference this in the TOC on top.

```
Compile
```
msbuild "C:\projects\shogun\build\shogun.sln" /verbosity:minimal /t:Clean /p:Configuration=Release /p:Platform=x64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the $ for code snippets, as in the rest of the readme

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I have been working on #3686 and I have sent a pr about it, I want to finish this after #3686, but I see u have added these to docs. Thank u : )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I hope you dont mind I took your changes, I was doing a general edit of the files and thought I might just include it.
Thanks a lot for that, it will be helpful for people

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy to help this,thank u too

@karlnapf karlnapf closed this Mar 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants