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

fatal error: api/peerconnectioninterface.h: No such file or directory #4

Closed
dsnopek opened this issue Oct 15, 2019 · 8 comments
Closed

Comments

@dsnopek
Copy link
Contributor

dsnopek commented Oct 15, 2019

I've been trying to compile this with the latest Godot sources, and I've been getting this error:

In file included from src/WebRTCLibDataChannel.cpp:1:0:
src/WebRTCLibDataChannel.hpp:6:10: fatal error: api/peerconnectioninterface.h: No such file or directory
 #include "api/peerconnectioninterface.h" // interface for all things needed from WebRTC
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I can't seem to find the peerconnectioninterface.h file in the Godot source, or godot-cpp or godot_headers. What am I missing?

@dsnopek
Copy link
Contributor Author

dsnopek commented Oct 15, 2019

Ah, is this the library that needs to get put in lib/webrtc:

https://github.com/aisouard/libwebrtc

Still building it, but I'll see if I can get the resulting libraries in the right place and get the GDNative library building.

@dsnopek
Copy link
Contributor Author

dsnopek commented Oct 15, 2019

Hm. Trying to compile https://github.com/aisouard/libwebrtc leads to this error:

0> Failed to fetch file gs://chromium-gn/2d79b4acffac0b084f250a9699f670d41f164864 for src/buildtools/linux64/gn, skipping. [Err: /home/dsnopek/prj/libwebrtc/out/depot_tools/src/depot-tools/external_bin/gsutil/gsutil_4.26/gsutil/third_party/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
  warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
Failure: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727).
]

I Google'd a bunch of other people having that error some years ago, but I couldn't find a solution yet...

@dsnopek
Copy link
Contributor Author

dsnopek commented Oct 15, 2019

Or should I be working off of this one?

https://webrtc.org/native-code/development/

Seems more "upstream-y" but it's harder to get started, more tools and things are needed. I'll dig into it more when I have chance...

@Faless
Copy link
Collaborator

Faless commented Oct 15, 2019 via email

@dsnopek
Copy link
Contributor Author

dsnopek commented Oct 16, 2019

Thanks! I'll give that a try later

@dsnopek
Copy link
Contributor Author

dsnopek commented Oct 16, 2019

Using https://github.com/sourcey/webrtc-builds seemed to work! I copied the resulting files into lib/webrtc, and I got past that original error!

I'm still getting some compilation error, but it's back in Godot stuff, and I'm still looking into it. In any case, it's not related to this issue anymore! If I can't work out this new error, I'll open a new issue. :-)

@dsnopek dsnopek closed this as completed Oct 16, 2019
@shintiger
Copy link

How do you build https://github.com/sourcey/webrtc-builds with branch-head/68?
I got error:Cound not get branch revision

@token-cjg
Copy link

I encountered the same problem as shintiger. After managing to get things to build, I came across the error in this issue, then searched the issues for this project and came across this thread.

Some amateur sleuthing for the above error suggests that it looks like the old way of getting Chromium code has been obsoleted. This uses things that look familiar from this codebase, like ninga, gclient, out directories, etc.

Therefore it appears that scripts will need to be updated to get the Chromium code using this new approach.

I'll file a separate issue for this in this repo, as this one appears to have been closed.

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

4 participants