type_traits bug

117 views
Skip to first unread message

Michael IV

unread,
Nov 7, 2017, 12:52:02 PM11/7/17
to discuss...@googlegroups.com
When I enable  turn h264  in webrtc.gni

I am getting an errors thrown by the following static_assert:

class Test4 {
  int* data();
  size_t size();
};
static_assert(!HasDataAndSize<Test4, int>::value,
              ".data() and .size() are private");

Is is supposed to be like that? 

Niels Moller

unread,
Nov 8, 2017, 3:29:03 AM11/8/17
to discuss...@googlegroups.com
No. It would be helpful with some additional information, including

* webrtc version you're trying to build
* platform and compiler used
* failing compilation command, and complete error message
* details of any special settings or modifications you've done to the build.

Also note that editing webrtc.gni shouldn't be needed, the recommended
way to tweak build settings is to use run gn args, or explicitly edit
the args.gn file in the build directory. I don't really understand
h264-related build settings, but when I want to build with h264
support, I usually set

rtc_use_h264 = true
ffmpeg_branding = "Chrome"

If the problem persists, please file a bug on bugs.webrtc.org.

Regards,
/Niels

bryan.c...@gmail.com

unread,
Apr 25, 2019, 12:34:20 AM4/25/19
to discuss-webrtc
I am getting an error here trying to make a Win32 console app:

Error (active) E1574 static assertion failed with ".data() and .size() are private" StreamingHostWin webrtc\src\rtc_base\type_traits.h 70
Error (active) E2512 the argument to a feature-test macro must be a simple identifier StreamingHostWin webrtc\src\third_party\abseil-cpp\absl\base\attributes.h 508
Error (active) E2512 the argument to a feature-test macro must be a simple identifier StreamingHostWin webrtc\src\third_party\abseil-cpp\absl\base\attributes.h 532
Error (active) E2512 the argument to a feature-test macro must be a simple identifier StreamingHostWin webrtc\src\third_party\abseil-cpp\absl\base\attributes.h 601
Error (active) E1574 static assertion failed with "Not compliant with std::is_trivially_copy_assignable; Standard: true, Implementation: false" StreamingHostWin webrtc\src\third_party\abseil-cpp\absl\meta\type_traits.h 338


* webrtc version you're trying to build 
m74

* platform and compiler used 
Windows 10, Visual C++ 2017

* failing compilation command, and complete error message 
compiling in VC10, but generating the webrtc project with: 
gn gen out/x64/Release --args="is_debug=false target_winuwp_version=\"8.1\" target_cpu=\"x64\" target_winuwp_family=\"desktop\" use_rtti=true is_clang=false rtc_build_tools=false rtc_include_tests=false rtc_build_examples=false"

* details of any special settings or modifications you've done to the build. 
gn gen out/x64/Release --args="is_debug=false target_winuwp_version=\"8.1\" target_cpu=\"x64\" target_winuwp_family=\"desktop\" use_rtti=true is_clang=false rtc_build_tools=false rtc_include_tests=false rtc_build_examples=false"

Ken Gilmer

unread,
Jul 2, 2019, 3:38:35 AM7/2/19
to discuss-webrtc
I am also getting these errors in Windows with Visual Studio 2017.  Any suggestions or advice on resolution would be greatly appreciated!
Reply all
Reply to author
Forward
0 new messages