neikeq / GodotSharp

Moved to the Godot repo: https://github.com/godotengine/godot/tree/master/modules/mono
MIT License
60 stars 8 forks source link

How and how to compile? #48

Open cjmxp opened 6 years ago

cjmxp commented 6 years ago

$ 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 6 years ago

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

NathanWarden commented 6 years ago

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 6 years ago

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

cjmxp commented 6 years ago

Godot has been torturing me ......

cjmxp commented 6 years ago

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

neikeq commented 6 years ago

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.

toger5 commented 6 years ago

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.

hcorion commented 6 years ago

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.