Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meson not working within MSYS2 environment #8173

Closed
radioactiveman opened this issue Jan 9, 2021 · 5 comments
Closed

Meson not working within MSYS2 environment #8173

radioactiveman opened this issue Jan 9, 2021 · 5 comments

Comments

@radioactiveman
Copy link
Contributor

Describe the bug
Meson does not work for me within a MSYS2 environment. Any command fails with an error about a wrong Python installation.
According to the documentation, Meson should work after installing the MinGW Python. What am I missing here?

To Reproduce
Run the commands below in a MinGW shell (MSYS2 MinGW 32-bit):

$ pacman -Syu
$ pacman -S meson
$ pacman -S mingw-w64-i686-python3
$ meson --version
ERROR: This python3 seems to be msys/python on MSYS2 Windows, which is known to have path semantics incompatible with Meson
ERROR: Please install and use mingw-w64-i686-python3 and/or mingw-w64-x86_64-python3 with Pacman
$ command -v python
/mingw32/bin/python

$ python --version
Python 3.8.7

Expected behavior
Meson should use the Python which works as exptected.

System parameters

  • Windows 10 1809
  • Python 3.8.7
  • Meson 0.56.0
@radioactiveman
Copy link
Contributor Author

Hello @lazka, @nirbheek,

are you able to reproduce this?
What else needs to be done besides installing mingw-python?

Thanks.

@lazka
Copy link
Contributor

lazka commented Jan 9, 2021

you need to install mingw meson and be in a mingw shell. https://packages.msys2.org/base/mingw-w64-meson

@radioactiveman
Copy link
Contributor Author

$ pacman -S mingw-w64-i686-meson mingw-w64-i686-pkg-config

Thanks, Meson is working fine now. 👍

@dtromb
Copy link

dtromb commented Jan 24, 2024

you need to install mingw meson and be in a mingw shell. https://packages.msys2.org/base/mingw-w64-meson

So in other words, MSYS2 is not supported by meson at all? Is there no way to run meson in a build process from an MSYS2 shell?

@lazka
Copy link
Contributor

lazka commented Jan 25, 2024

So in other words, MSYS2 is not supported by meson at all? Is there no way to run meson in a build process from an MSYS2 shell?

No, everything should work. If something doesn't, file a bug and feel free to ping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants