mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
add cross-compiling docs
This commit is contained in:
parent
814c5e6980
commit
0870447e4d
14
README.md
14
README.md
@ -26,6 +26,7 @@ This is a work in progress.
|
|||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
- [Update](#update)
|
- [Update](#update)
|
||||||
- [Examples](#examples)
|
- [Examples](#examples)
|
||||||
|
- [Cross-compiling](#Cross-compiling)
|
||||||
- [Plans](#plans)
|
- [Plans](#plans)
|
||||||
- [Donate](#donate)
|
- [Donate](#donate)
|
||||||
- [Contributors](#contributors)
|
- [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
|
## Plans
|
||||||
- Update Find an image on screen, read pixels from an image
|
- Update Find an image on screen, read pixels from an image
|
||||||
- Update Window Handle
|
- Update Window Handle
|
||||||
|
14
README_zh.md
14
README_zh.md
@ -23,6 +23,7 @@ QQ 群: 595877611
|
|||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
- [Update](#update)
|
- [Update](#update)
|
||||||
- [Examples](#examples)
|
- [Examples](#examples)
|
||||||
|
- [Cross-compiling](#Cross-compiling)
|
||||||
- [Plans](#plans)
|
- [Plans](#plans)
|
||||||
- [Donate](#donate)
|
- [Donate](#donate)
|
||||||
- [Contributors](#contributors)
|
- [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
|
## Plans
|
||||||
- 更新 Find an image on screen, read pixels from an image
|
- 更新 Find an image on screen, read pixels from an image
|
||||||
- 更新 Window Handle
|
- 更新 Window Handle
|
||||||
|
@ -1 +1 @@
|
|||||||
C language dependent package, better compilation.
|
C language dependent package, better to compilation.
|
Loading…
Reference in New Issue
Block a user