I’m, I’m trying to build mediasoup-broadcaster-demo,
I launched the following command:
cmake . -Bbuild -DLIBWEBRTC_INCLUDE_PATH:PATH=/home/foo/src/webrtc-checkout/src -DLIBWEBRTC_BINARY_PATH:PATH=/home/foo/src/webrtc-checkout/src/out/m84/obj -DCMAKE_USE_OPENSSL=ON -DOPENSSL_INCLUDE_DIR:PATH=/usr/include/
[ 81%] Building CXX object libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Logger.cpp.o
In file included from /home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:3:
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:55:8: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
55 | enum class LogLevel : uint8_t
| ~~~~ ^~~~~
| -----
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:55:14: error: use of enum ‘LogLevel’ without previous declaration
55 | enum class LogLevel : uint8_t
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:55:25: error: ‘uint8_t’ was not declared in this scope; did you mean ‘u_int8_t’?
55 | enum class LogLevel : uint8_t
| ^~~~~~~
| u_int8_t
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:56:3: error: default member initializer for unnamed bit-field
56 | {
| ^
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:67:23: error: ‘LogLevel’ has not been declared
67 | virtual void OnLog(LogLevel level, char* payload, size_t len) = 0;
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:72:15: error: ‘LogLevel’ has not been declared
72 | void OnLog(LogLevel level, char* payload, size_t len) override;
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:75:27: error: ‘LogLevel’ has not been declared
75 | static void SetLogLevel(LogLevel level);
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/include/Logger.hpp:80:10: error: ‘LogLevel’ does not name a type
80 | static LogLevel logLevel;
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:12:10: error: ‘LogLevel’ in ‘class mediasoupclient::Logger’ does not name a type
12 | Logger::LogLevel Logger::logLevel = Logger::LogLevel::LOG_NONE;
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:16:35: error: variable or field ‘SetLogLevel’ declared void
16 | void Logger::SetLogLevel(Logger::LogLevel level)
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:16:35: error: ‘LogLevel’ is not a member of ‘mediasoupclient::Logger’
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:33:40: error: variable or field ‘OnLog’ declared void
33 | void Logger::DefaultLogHandler::OnLog(LogLevel /*level*/, char* payload, size_t /*len*/)
| ^~~~~~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:33:40: error: ‘LogLevel’ was not declared in this scope
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:33:60: error: expected primary-expression before ‘char’
33 | void Logger::DefaultLogHandler::OnLog(LogLevel /*level*/, char* payload, size_t /*len*/)
| ^~~~
/home/manangel/mediasoup-broadcaster-demo/deps/libmediasoupclient/src/Logger.cpp:33:89: error: expected primary-expression before ‘)’ token
33 | dler::OnLog(LogLevel /*level*/, char* payload, size_t /*len*/)
| ^
make[2]: *** [libmediasoupclient/CMakeFiles/mediasoupclient.dir/build.make:128: libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Logger.cpp.o] Error 1
make[2]: Leaving directory '/home/manangel/mediasoup-broadcaster-demo/build'
make[1]: *** [CMakeFiles/Makefile2:1271: libmediasoupclient/CMakeFiles/mediasoupclient.dir/all] Error 2
make[1]: Leaving directory '/home/manangel/mediasoup-broadcaster-demo/build'
make: *** [Makefile:130: all] Error 2
make: Leaving directory '/home/manangel/mediasoup-broadcaster-demo/build'