eirslett / mediasoup-client-native-cpp

An attempt at a native C++ client library for MediaSoup
MIT License
21 stars 5 forks source link

Support linux or windows #2

Open laowangnj opened 6 years ago

laowangnj commented 6 years ago

In that case,it will be useful for performance test

eirslett commented 6 years ago

I only have access to Macos, but I’m sure it should be compatible, the libraries that are used work on all platforms?

ghost commented 3 years ago

I have just build de projec. i got use of undeclared identifier 'MAX_PATH' error.

[ 99%] Building CXX object mediasoup/CMakeFiles/mediasoup.dir/util/Process.cpp.o
/Users/said/mediasoup-cpp/mediasoup/util/Process.cpp:40:16: error: use of undeclared identifier 'MAX_PATH'
                char exePath[MAX_PATH] = { 0 };
                             ^
/Users/said/mediasoup-cpp/mediasoup/util/Process.cpp:41:23: error: use of undeclared identifier 'MAX_PATH'
                size_t exePathLen = MAX_PATH;

I have initialized the variable size_t MAX_PATH = 10; and still have an error

/Users/said/mediasoup-cpp/mediasoup/util/Process.cpp:41:16: error: variable-sized object may not be initialized
                char exePath[MAX_PATH] = {0};
                             ^~~~~~~~

The code working for you in macos ?