Building Godot with msys2

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Hyperbolic

Hello!
I’m trying to build Godot with msys2, but I get the following error:

scons: Reading SConscript files ...
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11' found
X11 not found.. x11 disabled.
No valid target platform selected.
The following were detected:
        haiku
        server

Please run scons again with argument: platform=<string>
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.

I have no idea how to solve this problem. I would like to use msys2 because I have everything installed (python2.7, scons). I’m using this command to build:

scons platform=windows tools=no target=release bits=64

It looks like the build expects “X11” (i.e. the X Windowing System) instead of Windows. In the configurations for msys2, it may think that it’s in a Unix environment (like GNU/Linux). Maybe play around with environment variables?

Ertain | 2018-04-16 20:58