Add windows build guide

```powershell
$env:Path="E:\kendryte-toolchain\bin;C:\Program Files\CMak
e\bin" +  $env:Path

mkdir build && cd build
cmake -G "MinGW Makefiles" ../../../..
make
```
fix/double
Rui Huang 2019-04-11 20:11:32 +08:00 committed by GitHub
parent ec40447584
commit 62681344d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -10,6 +10,8 @@ If you have any questions, please be free to contact us.
If you want to start a new project, for instance, `hello_world`, you only need to:
- Linux and OSX
`mkdir` your project in `src/`, `cd src && mkdir hello_world`, then put your codes in it, and build it.
```bash
@ -17,6 +19,29 @@ mkdir build && cd build
cmake .. -DPROJ=<ProjectName> -DTOOLCHAIN=/opt/riscv-toolchain/bin && make
```
- Windows
Download and install latest CMake.
[Download cmake-3.14.1-win64-x64.msi](https://github.com/Kitware/CMake/releases/download/v3.14.1/cmake-3.14.1-win64-x64.msi)
Download and install latest toolchain.
[Download kendryte-toolchain-win-i386-8.2.0-20190409.tar.xz](https://github.com/kendryte/kendryte-gnu-toolchain/releases/download/v8.2.0-20190409/kendryte-toolchain-win-i386-8.2.0-20190409.tar.xz)
Open a Windows Powershell, cd to Project directory.
`mkdir` your project in `src/`, `cd src && mkdir hello_world`, then put your codes in it, and build it.
```powershell
$env:Path="E:\kendryte-toolchain\bin;C:\Program Files\CMak
e\bin" + $env:Path
mkdir build && cd build
cmake -G "MinGW Makefiles" ../../../..
make
```
You will get 2 key files, `hello_world` and `hello_world.bin`.
1. If you are using JLink to run or debug your program, use `hello_world`