Forums

Installation for Mono on Windows.

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Installation for Mono on Windows.

Postby kemiisto » Wed Nov 24, 2010 2:33 pm

Hi! :)

I would like to compile Cobra and use it on Mono rather than .NET. However I didn't find any information on how to do that. Simple changes in install-from-workspace.bat adding "mono" at the beginning of the line

Code: Select all
@mono Snapshot\cobra.exe -debug -ert:yes InstallFromWorkspace.cobra -- %*


results in

Image

Is it possible?
kemiisto
 
Posts: 3

Re: Installation for Mono on Windows.

Postby Charles » Wed Nov 24, 2010 6:13 pm

I compile Cobra with Mono on both Mac and Linux. Especially on Mac on a regular basis.

Can't say I do it much on Windows. I'll poke around and see what I can find.

What version of Windows are you on?
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Installation for Mono on Windows.

Postby kemiisto » Wed Nov 24, 2010 6:46 pm

Charles wrote:I compile Cobra with Mono on both Mac and Linux. Especially on Mac on a regular basis.

Yep, on *nix it works just out-of-the-box.

Charles wrote:What version of Windows are you on?

Good old XP.
kemiisto
 
Posts: 3

Re: Installation for Mono on Windows.

Postby Charles » Wed Nov 24, 2010 7:27 pm

I upgraded a Mac box from 2.8 to 2.8.1 and it still worked.

However, I also found this:

http://www.mono-project.com/Roadmap

"""
Unsupported technologies

Some of the .NET technologies have been either deprecated, are too Windows-specific or are very large efforts and our community is unable to produce viable implementations for them.

If someone cares deeply about these APIs and implements them, we would likely bundle them with Mono, but they are not actively being worked on. There might be some code for these on our SVN repository, but the code is not suitable for production use nor do we recommend that developers building cross platform applications depend on it.

...

System.EnterpriseServices
"""

I'm guessing they don't have a Windows-based implementation for that API so they don't ship it. I'll accept patches to the installer to work around that, but don't have time to work on it myself right now.

Keep in mind that Cobra itself is pure .NET bytecode so you shouldn't have issues building it with Mono vs. Windows and then using it on the other. If you do, let me know.

I've even taken OpenGL programs and libs built on Mac and run them on Windows without mods.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Installation for Mono on Windows.

Postby kemiisto » Fri Nov 26, 2010 12:08 pm

Charles wrote:Keep in mind that Cobra itself is pure .NET bytecode so you shouldn't have issues building it with Mono vs. Windows and then using it on the other. If you do, let me know.

I've even taken OpenGL programs and libs built on Mac and run them on Windows without mods.

I didn't believe in .NET/Mono interchangeability for already compiled executables for a long time. But now it seems to work quite well. :roll:

Initial idea was to give GTK# a try on Windows. Did not succeed in using GTK# for .NET. So decided to use Mono. I've copied binaries from Mac OS X build to Windows and after executing

Code: Select all
gacutil -i Cobra.Lang.dll

was able to run 390-GTK.cobra from HowTo folder.

Thanks.
kemiisto
 
Posts: 3

Re: Installation for Mono on Windows.

Postby Charles » Fri Nov 26, 2010 4:33 pm

Cool. Let us know how your GTK# experience goes on Mac. I had some problems with it way back which were traced to bugs in GTK+ on Mac. Things have probably improved though so I'm curious to hear how it goes, good or bad.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 14 guests