add cross-compiling docs

This commit is contained in:
vcaesar 2018-08-03 08:01:41 -04:00
parent 814c5e6980
commit 0870447e4d
3 changed files with 29 additions and 1 deletions

View File

@ -26,6 +26,7 @@ This is a work in progress.
- [Installation](#installation)
- [Update](#update)
- [Examples](#examples)
- [Cross-compiling](#Cross-compiling)
- [Plans](#plans)
- [Donate](#donate)
- [Contributors](#contributors)
@ -257,6 +258,19 @@ func main() {
}
```
## Cross-compiling
##### Windows64 to win32
```Go
SET CGO_ENABLED=1
SET GOARCH=386
go build main.go
```
#### Ohter to windows
```Go
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -x ./
```
## Plans
- Update Find an image on screen, read pixels from an image
- Update Window Handle

View File

@ -23,6 +23,7 @@ QQ 群: 595877611
- [Installation](#installation)
- [Update](#update)
- [Examples](#examples)
- [Cross-compiling](#Cross-compiling)
- [Plans](#plans)
- [Donate](#donate)
- [Contributors](#contributors)
@ -254,6 +255,19 @@ func main() {
}
```
## Cross-compiling
##### Windows64 to win32
```Go
SET CGO_ENABLED=1
SET GOARCH=386
go build main.go
```
#### Ohter to windows
```Go
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -x ./
```
## Plans
- 更新 Find an image on screen, read pixels from an image
- 更新 Window Handle

View File

@ -1 +1 @@
C language dependent package, better compilation.
C language dependent package, better to compilation.