Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have you compiled whip-go for windows? #2

Open
saket424 opened this issue Nov 29, 2021 · 2 comments
Open

Have you compiled whip-go for windows? #2

saket424 opened this issue Nov 29, 2021 · 2 comments

Comments

@saket424
Copy link

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
Copy link
Author

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
Copy link
Author

I tried turning off cgo and get this error instead

CGO_ENABLED=0 go build

whip-go

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant