Closed anadahz closed 6 years ago
$ go get github.com/keroserene/go-webrtc results in the following error:
$ go get github.com/keroserene/go-webrtc
can't load package: package github.com/keroserene/go-webrtc: /home/user/src/github.com/keroserene/go-webrtc/datachannel.go: malformed #cgo argument: -L${SRCDIR}/lib
$ go env
GOARCH="amd64" GOBIN="/home/user/go/bin" GOCHAR="6" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/user" GORACE="" GOROOT="/usr/lib/go" GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1"
Resolved by updating go version to 1.7.4 (go version go1.7.4 linux/amd64).
go version go1.7.4 linux/amd64
$ go get github.com/keroserene/go-webrtc
results in the following error:$ go env