-
i find that pion is pure Go code and support many platforms . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Pion is Pure Go, so is easy to cross compile! If you are doing Mobile gomobile is the best way to do it. For a Linux server with an Intel or AMD CPU:
For a Raspberry Pi 1:
For a BeagleBone or a Raspberry Pi 2 or later:
For a 64-bit ARM board (Olimex Olinuxino-A64, Pine64, etc.):
For a 32-bit MIPS board with no hardware floating point (WNDR3800, etc.):
|
Beta Was this translation helpful? Give feedback.
Pion is Pure Go, so is easy to cross compile!
If you are doing Mobile gomobile is the best way to do it.
For a Linux server with an Intel or AMD CPU:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-s -w'
For a Raspberry Pi 1:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags='-s -w'
For a BeagleBone or a Raspberry Pi 2 or later:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags='-s -w'
For a 64-bit ARM board (Olimex Olinuxino-A64, Pine64, etc.):
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags='-s -w'
For a 32-bit MIPS board with no hardware floating point (WNDR3800, etc.):
CGO_ENABLED=0 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags='-s…