Hello, I've been trying to manually compile the master branch for the Godot engine to directly generate an executable, but I'm having trouble when trying to generate an executable supporting the mono environment.
I have tried following the guide in the docs, but I can't get pass the Generate the Glue part. Whenever I run the command:
$ scons p=osx tools=yes module_mono_enabled=yes mono_glue=no
I get the following output:
scons: Reading SConscript files ...
Package monosgen-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `monosgen-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'monosgen-2' found
OSError: 'pkg-config monosgen-2 --libs-only-L' exited 1:
File "/Users/ericdesedas/Development/projects/godot/godot_source/SConstruct", line 398:
File "./modules/mono/config.py", line 162:
tmpenv.ParseConfig('pkg-config monosgen-2 --libs-only-L')
File "/usr/local/Cellar/scons/3.0.1/libexec/scons-local/SCons/Environment.py", line 1557:
return function(self, self.backtick(command))
File "/usr/local/Cellar/scons/3.0.1/libexec/scons-local/SCons/Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
I tried following the error's instructions about adding the
PKG_CONFIG_PATH variable, but I still get the same error.
I have already checked the following possible issues:
- I already have the latest mono version installed (
which was installed via the official mac package (not using the
- Already set the
MONO_PATH env variable (pointing to
just to make sure my installation was going to play nice with the
editor. I can run the official beta build provided in the latest
- I defined the
PKG_CONFIG_PATH env variable (pointing to
and I can confirm that the path contains the file
(the one the error is complaining about).
- I can compile without mono doing the typical
scons p=osx command.
Is there anything else I need to do so that I can compile the source code?