-
Notifications
You must be signed in to change notification settings - Fork 29
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
webrtc::StatsCollector::GetReport missing #9
Comments
@amitu Have you found a solution to the reported issue? I have the same issue when I am trying to compile and link libwebrtc as a part of nodejs source. I have tried to add node-webrtc source to be compiled as a native module in nodejs. It passed the compilation, however it fails in a link phase with the following errors (just a few of them):
I checked how it’s done in node_webrtc and it looks that it’s using ‘-undefined dynamic_lookup’ switch. However, when I tried to add this switch, link was successful, but then on the first attempt to execute the program I got the following error:
|
Mac OS X change clang c++ standard lib from libstdc++ to libc++. When you compile node-webrtc with -stdlib=libstdc++ or -stdlib=libc++, clang may generate different function signature. This is part of my binding.gyp file , may be help. |
@gtlbupt Thanks for the suggestion, but it didn't help. Actually what I don't understand is why it passes link when it's compiled as a part of node-webrtc and it doesn't when it's included in nodejs source. I am using exactly the same .cc sources from node-wrtc moved into nodejs environment and I have copied all the flags/defines from binding.gyp. Another issue is the original question by @amitu: where GetReport is defined? Since I don't see it defined in the code, I would expect it to fail in both cases (as a part of node-wrtc and as a part of nodejs). Looks like I am missing something. |
I am still not sure why it didn't work on Mac, but on Linux I was able to pass the link with the following directive
It looks that the missing symbols are not really in use, so probably the clean way is to stub them. But for now it works well as it is. |
I am getting this error when I am building it using cgo.
I am quite confused. I see GetReport being declared and called, but can not find where is it defined.
Here is a bit more details in log:
The text was updated successfully, but these errors were encountered: