I'm trying to create a Mac bundle with Mono. When I execute:
mkbundle file.exe --deps -o FILE
I get this during compilation:
fatal error: "mono/metadata/mono-config.h" file not found
Am I missing something?
I'm trying to create a Mac bundle with Mono. When I execute:
mkbundle file.exe --deps -o FILE
I get this during compilation:
fatal error: "mono/metadata/mono-config.h" file not found
Am I missing something?
Try reinstalling Mono Development Kit (MDK). Do not install Mono Runtime Environment (MRE) on top of MDK. MDK will suffice.
Then, if you're using Windows (but I guess you're on OSX -- but just to mention): you will need a Unix-like toolchain for mkbundle to to work.
Excerpt: from their site
I had this same problem on my Mac. I solved it by setting pkg-config.
Just a heads up, for Mac you have to...
...as stated here An issue when running mono 2.10.2 mkbundle on Mac OS X snow leopard but on Mountain Lion, I had to do this instead so that the app could run on Lion.
The key is the preceding error (
sh: pkg-config: command not found
), note that pkg-config is stored at '/Library/Frameworks/Mono.framework/Commands'.Solution (see here and here):
Prepend the "/Library/Frameworks/Mono.framework/Commands" folder to your PATH variable:
In addition (as proposed by aiapatag and the objective-c runtime and CoreFoundation framework solution proposed here).