修正说明.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
3c3c945c31
commit
217f1ca834
|
@ -85,7 +85,7 @@ func PrintTest(strInput string) {
|
|||
编译 Go Plugin 命令,生成 print.so:
|
||||
|
||||
```bash
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc go build -buildmode=plugin
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc go build -buildmode=plugin -o print.so print.go
|
||||
```
|
||||
|
||||
再新建 main 包用于测试:
|
||||
|
@ -120,7 +120,7 @@ func main() {
|
|||
编译 main 包:
|
||||
|
||||
```bash
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gc
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc go build
|
||||
```
|
||||
|
||||
需要将 print.so 和 main 程序一起上传到目标系统。
|
||||
|
|
Loading…
Reference in New Issue