Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

How and how to compile? #48

Open
cjmxp opened this issue Sep 26, 2017 · 8 comments
Open

How and how to compile? #48

cjmxp opened this issue Sep 26, 2017 · 8 comments

Comments

@cjmxp
Copy link

cjmxp commented Sep 26, 2017

$ 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
Copy link
Author

cjmxp commented Sep 26, 2017

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

@NathanWarden
Copy link
Contributor

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
Copy link
Author

cjmxp commented Sep 26, 2017

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

@cjmxp
Copy link
Author

cjmxp commented Sep 26, 2017

Godot has been torturing me ......

@cjmxp
Copy link
Author

cjmxp commented Sep 26, 2017

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

@neikeq
Copy link
Owner

neikeq commented Sep 26, 2017

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
Copy link

toger5 commented Oct 3, 2017

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
Copy link

hcorion commented Oct 3, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants