Page 1 of 1
Using Zeus with Mono
Posted: Mon Aug 11, 2014 11:07 pm
by DRCurran
I am unable to use the Mono compiler mcs.exe. I have placed the full path link to the Mono directory. I then moved that towards the beginning of the path statement. Zeus loads and works fine otherwise.
Missing something obvious!
DC
Posted: Mon Aug 11, 2014 11:15 pm
by jussij
Missing something obvious!
It does sound like something obvious
Here are a few things I would try.
(1) Turn on the Tool Debug Option
Use the
Options, Editor Options menu and turn on the
Debug tools, macros and executables option.
If you now run the compile it will show extra debug information and you can see that output using the
Macros, Macro Debug Output menu.
(2) Test the PATH Using the Zeus Command Line
For me if I use the
Tools, DOS Command Line menu and run this analagous C# command:
I see this output:
Code: Select all
Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.5420
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
Visual C# 2008 Compiler Options
- OUTPUT FILES -
/out:<file> Specify output file name (default: base name of file with main class or first file)
/target:exe Build a console executable (default) (Short form: /t:exe)
...
That test shows that the csc.exe is in the PATH and you should see something similar.
You can also see the PATH using the same
Tools, DOS Command Line menu and running this command:
(3) Test Using the DOS Shell.
Use the
Tools, DOS Shell menu to open a DOS shell. That shell will have the exact same PATH as Zeus.
Now try to run the msc.exe command in that shell and see what happens.
If you still can't get the compiler running just post some of the output produced above and I will see if there is something obvious in that output.
Cheers Jussi
Posted: Tue Aug 12, 2014 11:19 am
by jussij
This link shows how to setup Zeus to work with Mono:
http://www.zeusedit.com/zforum/viewtopic.php?t=7195
Cheers Jussi
Still having path problems
Posted: Tue Sep 23, 2014 9:29 pm
by DRCurran
When compiling a GTK# sample program I get the following errors-
Using document type compiler options....
error CS2001: Source file `C:\Program' could not be found
error CS2001: Source file `Files' could not be found
error CS2001: Source file `(x86)\Mono-3.2.3\samples\gtk-sharp-2.0\GtkDemo\DemoApplicationWindow.cs' could not be found
Compilation failed: 3 error(s), 0 warnings
The compiler is breaking the path into tokens at the start.
Any thoughts?
Thanks,
Dan
Posted: Wed Sep 24, 2014 12:14 am
by jussij
Any thoughts?
This is a common issue when it comes to the command line and long file names that contain whitespace and the fix is to always wrap these long file names inside quotes.
So in this case in the
Mono Document Type the compiler command line will be something like this:
To fix this issue just change it to be this:
Cheers Jussi
Posted: Thu Sep 25, 2014 9:33 pm
by DRCurran
Thanks again, Jussi
I added the quotes and it works.
Dan