Using Zeus with Mono

Find Tips and tricks on how to better use the Zeus editor. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
jussij
Site Admin
Posts: 2446
Joined: Fri Aug 13, 2004 5:10 pm

Using Zeus with Mono

Postby jussij » Tue Aug 12, 2014 11:16 am

Below are the steps to getting Zeus to work with the Mono C# compiler.

More details of that compiler can be found here: http://www.mono-project.com/docs/about- ... es/csharp/

1) Download and install Mono for Windows from here:

http://www.go-mono.com/mono-downloads/download.html

The installer should be run in the default folder location:

Code: Select all

C:\Program Files\Mono-3.2.3

2) Make sure this bin folder is in the PATH:

Code: Select all

C:\Program Files\Mono-3.2.3\bin\

Changing the PATH is done by opening the Windows Control Panel, selecting the System icon and using the Environment button found in the Advanced settings.

To test the PATH setting, start Zeus, use the Tools, DOS Command Line menu and type in this command line:

Code: Select all

mcs.bat -?

3) Start the Zeus editor, edit the C# Document Type using the Options, Editor Options menu and in the Compiler section use the following as the compiler command line:

Code: Select all

mcs.bat $fn

4) Create the following c:\temp\Hello.cs file to test out the compiler:

Code: Select all

using System;

public class HelloWorld
{
   static public void Main ()
   {
      Console.WriteLine ("Hello Mono World");
   }
}

5) With that file as the active document run the Zeus compile and the result should be the following executable:

Code: Select all

 Directory of c:\temp

12/08/2014  07:28 PM             3,072 hello.exe

6) To run the executable first create the following tool inside Tools section of the C# Document Type:

Code: Select all

       Menu: Run '$fb.exe'
    Program: mono.exe $fb.exe
    Capture Stdout and stderr

With the c:\temp\Hello.cs as the active file, you will be able to run the matching executable using this new tool menu. After running the executable you should see this output captured inside Zeus:

Code: Select all

Hello Mono World

Cheers Jussi
Last edited by jussij on Sat Aug 16, 2014 6:03 am, edited 2 times in total.

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

re: Missing Obvous

Postby DRCurran » Tue Aug 12, 2014 9:39 pm

Jussi-

First, thanks for the help! I think the crucial part was getting the bin subdirectory in the path. Am up and running now and learning a great deal more of the Zeus IDE.

Haven't messed with path statements in ages. Parts of DOS lurk in the depths of Windows. The Zeus install took care of path options automatically.

Dan

jussij
Site Admin
Posts: 2446
Joined: Fri Aug 13, 2004 5:10 pm

Postby jussij » Tue Aug 12, 2014 11:29 pm

Hi Dan,

Code: Select all

Am up and running now and learning a great deal more of the Zeus IDE.

It does take a little time to get the hang of Zeus. Unlike most other IDEs that do a lot of hand holding, Zeus will require you to get your hands a little dirty ;)

Code: Select all

Haven't messed with path statements in ages. Parts of DOS lurk in the depths of Windows.

Yep that PATH is still there.

One trick I use a lot is to just create a simple batch file to set up the PATH and other environment details and then run Zeus from inside that batch file.

I then just add the batch file to the desktop, give it a nice icon and then run Zeus using that icon (hint: setup the batch file to run minimised).

An example of just such a batch file is the one I created to setup the Microsoft C/C++ environment which can be found here:

Code: Select all

C:\Program Files (x86)\Zeus\ze.cmd

Cheers Jussi


Return to “Tutorials, Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 2 guests