-
Notifications
You must be signed in to change notification settings - Fork 199
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
[BUG] Native plugin compiling fails on Windows (webrtc.lib error LNK2019: unresolved external symbol __std_reverse_copy_trivially_copyable_4) #441
Comments
SolutionFor any developers having this issue, building the project using Visual Studio 2019 by opening As stated in the first page of documentation for using the
Once Open up Additional NotesCMake, whose purpose is to simplify cross-platform development of C/C++ projects, has 2 uses:
CMake generating a build system means it creates a Visual Studio C++ project ready for you to use, for building and for development. However, the above issue is caused by CMake doing a bad job at its second use, building the project. The good news is you can just build it yourself via a different method. By opening This error is likely caused by having multiple Visual C++ compilers on your computer and so isn't specific to this project. |
I've made a PR #443 that adds a message for this workaround in the native plugin README. I'll leave this issue open unless you guys think #443 is an adequate solution to this issue or you guys come up with your own. A change to the CMake is probably the "full" solution, but probably unnecessary effort. I'm not knowledgeable enough on CMake to know if it's the solution or not. |
This seems like related helpful info tensorflow/tensorflow#17012 |
Right, this issue should be fixed by changing |
@rollersteaam |
Sure thing :) |
Describe the bug
Running
build_plugin_win.cmd
fails with a linker error. It might not have been able to link a dependency.To Reproduce
Steps to reproduce the behavior:
build_plugin_win.cmd
Expected behavior
Building succeeds.
Screenshots
Environment (please complete the following information):
Additional context
Full error message:
Weirdly, opening the
webrtc.sln
file in thebuild64
folder in Visual Studio 2019 and building ALL_BUILD completely succeeds.My guess is that CMake is linking to an old version of the Microsoft Standard Library (STL) which lacks a definition of
__std_reverse_copy_trivially_copyable_4
. This would match the issue found in #434 where the wrong version of Direct3D was automatically included by CMake, causing build errors about missing code.The text was updated successfully, but these errors were encountered: