neikeq/GodotSharp

How and how to compile?

cjmxp opened this issue · 8 comments

cjmxp commented

$ scons p=osx target=debug tools=yes mono_glue=no
scons: Reading SConscript files ...
Could not detect MinGW. Ensure its binaries are in your PATH or that MINGW32_PREFIX or MINGW64_PREFIX are properly defined.
Package mono-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono-2' found
OSError: 'pkg-config mono-2 --cflags --libs' exited 1:
File "/Users/cjmxp/MyWork/godot/SConstruct", line 369:
config.configure(env)
File "./modules/mono/config.py", line 126:
env.ParseConfig('pkg-config mono-2 --cflags --libs')
File "/usr/local/lib/scons-2.3.0/SCons/Environment.py", line 1554:
return function(self, self.backtick(command))
File "/usr/local/lib/scons-2.3.0/SCons/Environment.py", line 596:
raise OSError("'%s' exited %d" % (command, status))

cjmxp commented

I have installed the Mono for Mac OS X is available as a Mac Package (.Pkg)

I could be wrong, but you may need to restart before that'll work. Also, make sure you're on commit 5195935 as the next merged commit breaks the mono build.

cjmxp commented

build mono 2.0? mac mono 2.0 Compile failed... I'm going to crash...

cjmxp commented

Godot has been torturing me ......

cjmxp commented

I was thinking, "if it doesn't work, I'll use c++ to write games. Go his Scripte

Can you find mono-2.pc in your system? Some locations I can think of are:
/usr/local/lib/pkgconfig/
/opt/local/lib/pkgconfig/
/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/
If you find it, check echo $PKG_CONFIG_PATH to see if it includes that path. If it does not, then add it export PKG_CONFIG_PATH="/the/path/to/pkgconfig":$PKG_CONFIG_PATH and hopefully that should fix it.

if it is not giving you the version number with mono -V you haven't installed it or it's not in the path.

you could use brew to install mono to which sets up the path properly.

I've been able to get it working on my mac laptop.
I have both mono and the mono-mdk cask installed via brew, not sure which one I have symlinked.