Window demo npm install failed

Hi,

I tried to use windows 11 & VS2022 to build the demo, but after npm install, it build failed.

Here is an build error “error C2371: ‘ssize_t’: redefinition; different basic types”, it seems both usrsctplib\usrsctp.h and worker/include/common.cpp defines ssize_t?

Could you please have a look of below log?

using npm@8.19.4
using node@v16.20.0
GNU Make 3.81

npm ERR! FAILED: mediasoup-worker.exe.p/src_Worker.cpp.obj
npm ERR! “cl” “-Imediasoup-worker.exe.p” “-I.” “-I…....” “-I…....\include” “-Isubprojects\abseil-cpp-20211102.0” “-I…....\subprojects\abseil-cpp-20211102.0” “-I…....\subprojects\openssl-3.0.7\include” “-I…....\subprojects\openssl-3.0.7\crypto” “-I…....\subprojects\openssl-3.0.7\crypto\modes” “-I…....\subprojects\openssl-3.0.7\crypto\ec\curve448” “-I…....\subprojects\openssl-3.0.7\crypto\ec\curve448\arch_32” “-I…....\subprojects\openssl-3.0.7\providers\common\include” “-I…....\subprojects\openssl-3.0.7\providers\implementations\include” “-Isubprojects\openssl-3.0.7\generated-config\archs\VC-WIN32\no-asm” “-I…....\subprojects\openssl-3.0.7\generated-config\archs\VC-WIN32\no-asm” “-I…....\subprojects\openssl-3.0.7\generated-config\archs\VC-WIN32\no-asm\include” “-I…....\subprojects\openssl-3.0.7\generated-config\archs\VC-WIN32\no-asm\crypto” “-I…....\subprojects\openssl-3.0.7\generated-config\archs\VC-WIN32\no-asm\providers\common\include” “-I…....\subprojects\nlohmann_json-3.10.5\single_include” “-I…....\subprojects\libuv-v1.44.2\include” “-Isubprojects\libsrtp-2.5.0\include” “-I…....\subprojects\libsrtp-2.5.0\include” “-Isubprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib” “-I…....\subprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib” “-Isubprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib\netinet” “-I…....\subprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib\netinet” “-Isubprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib\netinet6” “-I…....\subprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib\netinet6” “-Ideps/libwebrtc” “-I…....\deps\libwebrtc” “-I…....\deps\libwebrtc\libwebrtc” “-I…....\subprojects\wingetopt-1.00\src” “-DNDEBUG” “/MD” “/nologo” “/showIncludes” “/utf-8” “/W2” “/EHsc” “/std:c++14” “/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” “-DMS_EXECUTABLE” “/Fdmediasoup-worker.exe.p\src_Worker.cpp.pdb” /Fomediasoup-worker.exe.p/src_Worker.cpp.obj “/c” …/…/…/src/Worker.cpp
npm ERR! C:\Users\zeiss\AppData\Local\npm-cache_cacache\tmp\git-cloneOFfpLl\worker\include\RTC/RTCP/ReceiverReport.hpp(80): warning C4146: unary minus operator applied to unsigned type, result still unsigned
npm ERR! C:\Users\zeiss\AppData\Local\npm-cache_cacache\tmp\git-cloneOFfpLl\worker\include\RTC/RTCP/Sdes.hpp(35): warning C4200: nonstandard extension used: zero-sized array in struct/union
npm ERR! C:\Users\zeiss\AppData\Local\npm-cache_cacache\tmp\git-cloneOFfpLl\worker\include\RTC/RTCP/Sdes.hpp(35): note: This member will be ignored by a defaulted constructor or copy/move assignment operator
npm ERR! …....\subprojects\usrsctp-4e06feb01cadcd127d119486b98a4bd3d64aa1e7\usrsctplib\usrsctp.h(79): error C2371: ‘ssize_t’: redefinition; different basic types
npm ERR! C:\Users\zeiss\AppData\Local\npm-cache_cacache\tmp\git-cloneOFfpLl\worker\include\common.hpp(16): note: see declaration of ‘ssize_t’
npm ERR! C:\Users\zeiss\AppData\Local\npm-cache_cacache\tmp\git-cloneOFfpLl\worker\include\RTC/RTCP/FeedbackRtpTransport.hpp(304): warning C4146: unary minus operator applied to unsigned type, result still unsigned
npm ERR! …....\deps\libwebrtc\libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.h(55): warning C4244: ‘return’: conversion from ‘float’ to ‘int’, possible loss of data
npm ERR! …....\deps\libwebrtc\libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.h(61): warning C4244: ‘return’: conversion from ‘float’ to ‘int’, possible loss of data
npm ERR! [1165/1304] Compiling C++ object mediasoup-worker.exe.p/src_DepLibUV.cpp.obj
npm ERR! ninja: build stopped: subcommand failed.
npm ERR! make: Leaving directory `/c/Users/zeiss/AppData/Local/npm-cache/_cacache/tmp/git-cloneOFfpLl/worker’
npm ERR! npm verb cli C:\Program Files\nodejs\node.exe C:\Users\zeiss\AppData\Roaming\nvm\v16.20.0\node_modules\npm\bin\npm-cli.js
npm ERR! npm info using npm@8.19.4
npm ERR! npm info using node@v16.20.0