Open eeevanyip opened 1 year ago
Hi @anamyip, codecs requires CGO since they use C libraries.
Hi @anamyip, codecs requires CGO since they use C libraries.
How to modify the following command?
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
CGO_ENABLED=1
Cross-compiling with CGO requires a C cross-compiler.
I don't know how to setup it on Mac.
I tried to build the example of examples/webrtc into Linux in the Mac environment, but an error occurred. What is the reason and how to solve it?
Compile webrtc example
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
The following error occurs