Using Zeus with Mono

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
DRCurran
Posts: 7
Joined: Mon Aug 11, 2014 10:36 pm

Using Zeus with Mono

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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:

Code: Select all

csc.exe -?
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:

Code: Select all

set PATH
(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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This link shows how to setup Zeus to work with Mono: http://www.zeusedit.com/zforum/viewtopic.php?t=7195

Cheers Jussi
DRCurran
Posts: 7
Joined: Mon Aug 11, 2014 10:36 pm

Still having path problems

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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:

Code: Select all

mcs.bat $fn
To fix this issue just change it to be this:

Code: Select all

mcs.bat "$fn"
Cheers Jussi
DRCurran
Posts: 7
Joined: Mon Aug 11, 2014 10:36 pm

Post by DRCurran »

Thanks again, Jussi
I added the quotes and it works.
Dan
Post Reply