Sure thing, although it seems that .log files and .txt files are not allowed to be uploaded, and having the log inline exceeds the post length limit, so I’ve uploaded the full log to Mozilla’s Pastebin Mozilla Community Pastebin/U9X2PwW4 (Plain Code)
Additionally, I tried creating a fresh Windows 10 VM and following the instructions in the Mediasoup documentation to install the requirements but encountered the exact same issue.
Looks like you have have not installed Visual Studio C++ compiler or not activated VisualStudio environment (and Meson was not able to find it on its own):
Visual Studio environment is needed to run Ninja
Try to activate it explicitly or simply run under VisualStudio shell (there should be a shortcut for it).
If that helps, report it to Meson folks upstream to improve/implement its detection.
As I mentioned in my original post, I have installed the Visual Studio C++ compiler. Additionally, I already tried using the Visual Studio Native Tools Command Prompt (the one that opens with the following message) and had the exact same issue.
According to discussion there installing just the components you have requested may not be enough, try to install other components as well (Build Tools for Visual Studio 2022 was mentioned there specifically). According to logs it does detect the compiler itself correctly.
Windows generally is a pain to work with as a developer, I’m sorry you have to deal with this.
Haha it’s fine, if I’m being honest it depends on the languages you use. I find Python to be the most miserable on Windows, but other languages like Node.js and Rust are completely fine. C++ is also usually fine too but I think in this case Python seems to be messing things up. Thank you for helping me regardless though.
I wasn’t aware that there was a Build Tools for VS 2022, I already had the 2017 version so I’ve now installed the 2022 version (and even tried uninstalling the 2017 version) and unfortunately I’m still having the exact same issue. I can confirm something is happening because at some point I had neither installed and the error changed to definitely complain about the lack of a compiler.
Meson logs feels incomplete. Error still looks similar. Not sure what else it could be, have you tried installing all visual studio components that are available in there?