Meson WinError 2's

  • Holly866_668
    26th Jan 2023 Member 0 Permalink

    I'm having the same problem as this user, except that I'm using the x64 native prompt for VS 2022. Does it have to be VS 2019?

     

    The Meson build system
    Version: 1.0.0
    Source dir: C:\Users\18607\Downloads\The-Powder-Toy-master\The-Powder-Toy-master
    Build dir: C:\Users\18607\Downloads\The-Powder-Toy-master\The-Powder-Toy-master\build-debug
    Build type: native build
    Project name: the-powder-toy
    Project version: the.cake.is.a.lie

    meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
    The following exception(s) were encountered:
    Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
    Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
    Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
    Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
    Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
    Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
    Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"

    A full log can be found at C:\Users\18607\Downloads\The-Powder-Toy-master\The-Powder-Toy-master\build-debug\meson-logs\meson-log.txt

     

     

    I've tried installing "Desktop development with C++" and still get the slew of WinError's.

  • jacob1
    26th Jan 2023 Developer 0 Permalink
    The 2022 prompt should work, there is no need for 2019.

    But anyway, these errors imply that either you aren't running from the vs developer prompt, or your install is corrupted. Hard for me to say for sure what the problem is.
  • Holly866_668
    26th Jan 2023 Member 0 Permalink

    Closing and reopening the prompt after the install worked (maybe it wasn't detecting something from that).

  • LBPHacker
    26th Jan 2023 Developer 0 Permalink
    Ah yeah, you have to close the prompt, it's basically just the standard prompt but with a VS environment script run when you open it, and if that script isn't run again, it's not guaranteed to see whatever new things you install.