keroserene / go-webrtc

WebRTC for Go
Other
455 stars 76 forks source link

How to run latest commit with Windows? (branch-heads/64) #83

Open Zentendo opened 6 years ago

Zentendo commented 6 years ago

When I try to go get github.com/keroserene/go-webrtc, I get this error:

go get github.com/keroserene/go-webrtc
# github.com/keroserene/go-webrtc
ctestenums.cc:2:10: fatal error: webrtc/api/peerconnectioninterface.h: No such file or directory
 #include "webrtc/api/peerconnectioninterface.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Same when I try to run demo.go or chat.go

ctestenums.cc:2:10: fatal error: webrtc/api/peerconnectioninterface.h: No such file or directory
 #include "webrtc/api/peerconnectioninterface.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
uumaro commented 6 years ago

Building for Windows doesn't work yet. The upgrade to branch-heads/64 was one necessary step, but more work is required.

If you want to try it yourself, you will need to add a compiler flag to look for header files in the include/ directory. (For other platforms, the necessary flags are added by #cgo directives in the source code, or in a .pc file.) But also, there is not yet a precompiled webrtc library for Windows (#57), so you will have to compile one yourself. See build.sh for some guidance, though build.sh does not yet support Windows either.

arlolra commented 6 years ago

include "webrtc/api/peerconnectioninterface.h"

Note that that doesn't look like the latest commit, since the webrtc/ path was removed.