mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-06-01 07:41:56 +00:00
#11 Improve the build instructions
This commit is contained in:
parent
8e1bbdef0e
commit
c3c1a262fc
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
.vscode
|
.vscode
|
||||||
|
SDL2.dll
|
||||||
|
a2sdl.exe
|
23
README.md
23
README.md
|
@ -240,15 +240,30 @@ Only valid on SDL mode
|
||||||
|
|
||||||
## Building from source
|
## Building from source
|
||||||
|
|
||||||
Besides having a working Go installation, install the SDL2 developer files. Valid for any platform
|
### Linux
|
||||||
|
|
||||||
|
Besides having a working Go installation, install the SDL2 developer files. Run:
|
||||||
|
|
||||||
|
``` terminal
|
||||||
|
git clone github.com/ivanizag/izapple2
|
||||||
|
cd izapple2/frontend/a2sdl
|
||||||
|
go build .
|
||||||
|
```
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
On Windows, CGO needs a gcc compiler. Install [mingw-w64](http://mingw-w64.org/doku.php/download/mingw-builds) and the [SDL2 developer files](https://www.libsdl.org/release/) for mingw-64.
|
||||||
|
|
||||||
Run:
|
Run:
|
||||||
|
|
||||||
``` terminal
|
``` terminal
|
||||||
go get github.com/ivanizag/izapple2/frontend/a2sdl
|
git clone github.com/ivanizag/izapple2
|
||||||
go build github.com/ivanizag/izapple2/frontend/a2sdl
|
cd izapple2\frontend\a2sdl
|
||||||
|
go build .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To run in Windows, copy the file `SDL2.dll` on the same folder as `a2sdl.exe`. The latest `SDL2.dll` can be found in the [Runtime binary for Windows 64-bit](https://www.libsdl.org/download-2.0.php).
|
||||||
|
|
||||||
### Use docker to cross compile for Linux and Windows
|
### Use docker to cross compile for Linux and Windows
|
||||||
|
|
||||||
To create executables for Linux and Windows without installing Go, SDL2 or the Windows cross compilation toosl, run:
|
To create executables for Linux and Windows without installing Go, SDL2 or the Windows cross compilation toosl, run:
|
||||||
|
@ -257,5 +272,3 @@ To create executables for Linux and Windows without installing Go, SDL2 or the W
|
||||||
cd docker
|
cd docker
|
||||||
./build.sh
|
./build.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
To run in Windows, copy the file `SDL2.dll` on the same folder as `izapple2sdl.exe`. The latest `SDL2.dll` can be found in the [Runtime binary for Windows 64-bit](https://www.libsdl.org/download-2.0.php).
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user