ggarber / whip-go

Simple WHIP client for WebRTC streaming from any media source
MIT License
54 stars 18 forks source link

Have you compiled whip-go for windows? #2

Open saket424 opened 2 years ago

saket424 commented 2 years ago

I got whip-go working on linux and mac. Any pointers to getting it to compile in windows, preferably as a statically linked binary?

saket424 commented 2 years ago

I installed mingw 64-bit gcc compiler for cgo and added it to my path and golang version 1.17.3

export PATH=$PATH:'/drives/c/Program Files/Go/bin:/drives/c/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin'

git clone https://github.com/ggarber/whip-go cd whip-go go build go: downloading github.com/pion/mediadevices v0.2.0 go: downloading github.com/pion/webrtc/v3 v3.0.20 go: downloading github.com/pion/datachannel v1.4.21 go: downloading github.com/pion/dtls/v2 v2.0.8 go: downloading github.com/pion/ice/v2 v2.0.16 go: downloading github.com/pion/interceptor v0.0.12 go: downloading github.com/pion/logging v0.2.2 go: downloading github.com/pion/randutil v0.1.0 go: downloading github.com/pion/rtcp v1.2.6 go: downloading github.com/pion/rtp v1.6.2 go: downloading github.com/pion/sctp v1.7.12 go: downloading github.com/pion/sdp/v3 v3.0.4 go: downloading github.com/pion/srtp/v2 v2.0.2 go: downloading github.com/pion/transport v0.12.3 go: downloading golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 go: downloading github.com/pkg/errors v0.9.1 go: downloading github.com/kbinani/screenshot v0.0.0-20191211154542-3a185f1ce18f go: downloading github.com/google/uuid v1.2.0 go: downloading github.com/pion/mdns v0.0.5 go: downloading github.com/pion/stun v0.3.5 go: downloading github.com/pion/turn/v2 v2.0.5 go: downloading github.com/pion/udp v0.1.0 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 go: downloading golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb go: downloading github.com/satori/go.uuid v1.2.0 go: downloading github.com/lxn/win v0.0.0-20201111105847-2a20daff6a55 go: downloading golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad go: downloading golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005

github.com/pion/mediadevices/pkg/frame

cc1: sorry, unimplemented: 64-bit mode not compiled in

gcc --version gcc (GCC) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I tried both gcc 64-bit and 32-bit and got the same error "cc1: sorry, unimplemented: 64-bit mode not compiled in"

go version go version go1.17.3 windows/amd64

what am i missing?

saket424 commented 2 years ago

I tried turning off cgo and get this error instead

CGO_ENABLED=0 go build

whip-go

.\whip.go:33:18: undefined: vpx.NewVP8Params