Skip to content

Instantly share code, notes, and snippets.

@jmillan
jmillan / libwebrtc_building_notes.md
Last active February 11, 2019 03:02
Libwebrtc building notes

Retrieve libwebrtc commit hash used by Chromium

Disable [chromium-style] compilation errors

Specially when building latests versions

  • Add the following arg to gn gen command: clang_use_chrome_plugins=false
@jmillan
jmillan / consumer_generated.h
Created January 9, 2023 17:37
consumer_generated
// automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_CONSUMER_FBS_CONSUMER_H_
#define FLATBUFFERS_GENERATED_CONSUMER_FBS_CONSUMER_H_
#include "flatbuffers/flatbuffers.h"
// Ensure the included flatbuffers.h is the same version as when this file was
// generated, otherwise it may not be compatible.
@jmillan
jmillan / consumer_generated_build_warnings.txt
Last active January 9, 2023 20:26
consumer_generated build warnings
..\..\..\include/FBS/consumer_generated.h:92:38: warning: inline function 'const flatbuffers::TypeTable* FBS::Consumer::SetPreferredLayersRequestTypeTable()' used but never defined
92 | inline const flatbuffers::TypeTable *SetPreferredLayersRequestTypeTable();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
..\..\..\include/FBS/consumer_generated.h:96:38: warning: inline function 'const flatbuffers::TypeTable* FBS::Consumer::SetPriorityRequestTypeTable()' used but never defined
96 | inline const flatbuffers::TypeTable *SetPriorityRequestTypeTable();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
..\..\..\include/FBS/consumer_generated.h:100:38: warning: inline function 'const flatbuffers::TypeTable* FBS::Consumer::EnableTraceEventRequestTypeTable()' used but never defined
100 | inline const flatbuffers::TypeTable *EnableTraceEventRequestTypeTable();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
..\..\..\include/F
@jmillan
jmillan / response_generated.h
Created January 9, 2023 20:25
response_generated
// automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_RESPONSE_FBS_RESPONSE_H_
#define FLATBUFFERS_GENERATED_RESPONSE_FBS_RESPONSE_H_
#include "flatbuffers/flatbuffers.h"
// Ensure the included flatbuffers.h is the same version as when this file was
// generated, otherwise it may not be compatible.
@jmillan
jmillan / response_generated_build_error.txt
Created January 9, 2023 20:27
reponse_generated build error
..\..\..\subprojects\flatbuffers-22.11.23\include/flatbuffers/verifier.h: In instantiation of 'bool flatbuffers::Verifier::VerifyTable(const T*) [with T = FBS::Consumer::SetPriorityResponse]':
..\..\..\include/FBS/response_generated.h:690:34: required from here
..\..\..\subprojects\flatbuffers-22.11.23\include/flatbuffers/verifier.h:112:29: error: invalid use of incomplete type 'const struct FBS::Consumer::SetPriorityResponse'
112 | return !table || table->Verify(*this);
| ~~~~~~~^~~~~~
@jmillan
jmillan / flatbuffers_msvc_error.txt
Last active January 10, 2023 21:07
flatbuffers msvc error
"cl" "-Ideps/libwebrtc\liblibwebrtc.a.p"
"-I..\..\..\deps\libwebrtc"
"-I..\..\..\subprojects\openssl-3.0.7\include"
"-I..\..\..\subprojects\abseil-cpp-20211102.0"
"-I..\..\..\subprojects\flatbuffers-22.11.23\include"
"-I..\..\..\subprojects\flatbuffers-22.11.23\grpc"
"-I..\..\..\subprojects\libuv-v1.44.2\include"
"-DNDEBUG" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHsc" "/std:c++17" "/permissive-" "/O2" "/Gw" "-DMS_LITTLE_ENDIAN" "-DNOMINMAX" "-DWIN32_LEAN_AND_MEAN" "-D_CRT_SECURE_NO_WARNINGS" "-D_SCL_SECURE_NO_WARNINGS" "-D_ENABLE_EXTENDED_ALIGNED_STORAGE" "/Fddeps/libwebrtc\liblibwebrtc.a.p\libwebrtc_system_wrappers_source_field_trial.cc.pdb" /Fodeps/libwebrtc/liblibwebrtc.a.p/libwebrtc_system_wrappers_source_field_trial.cc.obj "/c" ../../../deps/libwebrtc/libwebrtc/system_wrappers/source/field_trial.cc
C:\Users\jmillan\mediasoup\worker\include\FBS\consumer_generated.h(190): error C2059: syntax error: '='