diff --git a/Windows.md b/Windows.md index 0d90455..ab554f6 100644 --- a/Windows.md +++ b/Windows.md @@ -23,28 +23,6 @@ You also can get Git via [Scoop](http://scoop.sh/). scoop install git ``` -## Install C compiler - -**This step is no longer required as of 1.9.** - -For Ebiten 1.8 and before, compilation requires a C compiler like GCC to compile third party libraries used by Ebiten. You would need C compiler like [MinGW](http://www.mingw.org/) on Windows. Visual Studio is not tested. - -### Option 1. MinGW official - -Get the installer from [MinGW](http://www.mingw.org/) (or [MinGW-w64](http://mingw-w64.org/) for 64bit Windows) and install it, then set `PATH` environment variable. It might be hard to find where to download the installer, and in this case, using scoops would be a good option. - -### Option 2. Scoop - -You also can get MinGW via [Scoop](http://scoop.sh/). This is the easiest way. - -```sh -scoop install gcc -``` - -### Option 3. TDM GCC - -Get the installer from [TDM GCC](http://tdm-gcc.tdragon.net/download) and install it. `PATH` will be set by the install so you don't have to care. The problem is that TDM GCC is not updated recently, and the last update was in 2015. - ## Run examples To check installation finished correctly, let's execute an example. @@ -53,40 +31,3 @@ To check installation finished correctly, let's execute an example. cd %GOPATH%\src\github.com\hajimehoshi\ebiten\examples go run -tags=example rotate\main.go ``` - -# Windows Subsystem for Linux - -1. Install 'Windows for Subsystem for Linux (https://docs.microsoft.com/en-us/windows/wsl/install-win10) -2. Install 'Ubuntu' via Windows Store - -In the Ubuntu: - -1. Set up (add a new user) -2. `sudo apt update` -3. `sudo apt upgrade` -4. `sudo apt install mingw-w64` -5. Install Linux 'Go' downloaded from https://golang.org (Linux version is required. The download directory is typically `/mnt/c/Users/(yourname)/Downloads`) - -If you use go modules, that's done! Ebiten will be downloaded automatically if your lib depends on Ebiten. For example: - -```sh -mkdir test -cd test -go mod init example.com/m - -# When cross-compiling, cgo is disabled by default. -CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows go get github.com/hajimehoshi/ebiten@master -CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows go build -tags=example github.com/hajimehoshi/ebiten/examples/rotate -``` - -Then copy `rotate.exe` to somewhere and open this from Windows. - -If you don't, let's go-get: - -```sh -GO111MODULE=off go get -u github.com/hajimehoshi/ebiten/... -``` - -# Cross Compiling - -It is possible to cross-compile Ebiten games for windows, see: [[Cross Compiling]] \ No newline at end of file