GodotSharp icon indicating copy to clipboard operation
GodotSharp copied to clipboard

How and how to compile?

Open cjmxp opened this issue 6 years ago • 8 comments

$ 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 avatar Sep 26 '17 05:09 cjmxp

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

cjmxp avatar Sep 26 '17 05:09 cjmxp

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.

NathanWarden avatar Sep 26 '17 10:09 NathanWarden

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

cjmxp avatar Sep 26 '17 11:09 cjmxp

Godot has been torturing me ......

cjmxp avatar Sep 26 '17 11:09 cjmxp

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

cjmxp avatar Sep 26 '17 11:09 cjmxp

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.

neikeq avatar Sep 26 '17 13:09 neikeq

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.

toger5 avatar Oct 03 '17 17:10 toger5

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.

hcorion avatar Oct 03 '17 18:10 hcorion