I downloaded Mono and installed it on Win 7 64bit
I went to this site to follow the instructions http://www.mono-project.com/Mono_Basics
I opened up the mono command prompt and compiled and ran the console hello world
then I tried to compile the windowed hello world example with
gmcs hello.cs -pkg:gtk-sharp-2.0
and I get this
C:\Code\NoControl\Mono>gmcs hello.cs -pkg:gtk-sharp-2.0
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/pango-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/atk-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/gdk-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/gtk-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/glib-sharp.dll' could not be found
Compilation failed: 5 error(s), 0 warnings
How do I fix this?
This is the similar to the question here cannot compile hello.cs for gtk# using mono command prompt which was not answered.
- Does -pkg work on Windows?
- Do I have to download something extra?
- The abbreviated path mentions ~1.8/ should it say something like ~10.8
being that my version of mono is 2.10.8?
These were helpful answers for pointing out the root cause of the problem. However, the simplest solution by far is to install Mono into a folder that doesn’t have spaces in the name. While installing, just select something like “C:\SDK\Mono”. Problem solved, and no funky work-arounds necessary.