go-webrtc icon indicating copy to clipboard operation
go-webrtc copied to clipboard

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

Open Zentendo opened this issue 6 years ago • 2 comments

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.

Zentendo avatar Apr 06 '18 16:04 Zentendo

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.

uumaro avatar Apr 06 '18 16:04 uumaro

#include "webrtc/api/peerconnectioninterface.h"

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

arlolra avatar Apr 06 '18 17:04 arlolra